1(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+aTx":function(t,e,n){var i,r;r=this,void 0===(i=(function(){return r.svg4everybody=function(){function t(t,e,n){if(n){var i=document.createDocumentFragment(),r=!e.hasAttribute("viewBox")&&n.getAttribute("viewBox");r&&e.setAttribute("viewBox",r);for(var o=n.cloneNode(!0);o.childNodes.length;)i.appendChild(o.firstChild);t.appendChild(i)}}function e(e){e.onreadystatechange=function(){if(4===e.readyState){var n=e._cachedDocument;n||((n=e._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=e.responseText,e._cachedTarget={}),e._embeds.splice(0).map(function(i){var r=e._cachedTarget[i.id];r||(r=e._cachedTarget[i.id]=n.getElementById(i.id)),t(i.parent,i.svg,r)})}},e.onreadystatechange()}function n(t){for(var e=t;"svg"!==e.nodeName.toLowerCase()&&(e=e.parentNode););return e}return function(i){var r,o=Object(i),a=window.top!==window.self;r="polyfill"in o?o.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&a;var s={},l=window.requestAnimationFrame||setTimeout,u=document.getElementsByTagName("use"),c=0;r&&function i(){for(var a=0;a<u.length;){var h=u[a],d=h.parentNode,p=n(d),f=h.getAttribute("xlink:href")||h.getAttribute("href");if(!f&&o.attributeName&&(f=h.getAttribute(o.attributeName)),p&&f){if(r)if(!o.validate||o.validate(f,p,h)){d.removeChild(h);var g=f.split("#"),m=g.shift(),v=g.join("#");if(m.length){var y=s[m];y||((y=s[m]=new XMLHttpRequest).open("GET",m),y.send(),y._embeds=[]),y._embeds.push({parent:d,svg:p,id:v}),e(y)}else t(d,p,document.getElementById(v))}else++a,++c}else++a}(!u.length||u.length-c>0)&&l(i,67)}()}}()}).apply(e,[]))||(t.exports=i)},"+tJ4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(t){return function(e){for(var n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.closed||e.complete()}}},"+umK":function(t,e,n){"use strict";function i(){}n.d(e,"a",function(){return i})},"/WYv":function(t,e,n){"use strict";function i(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return i})},"0/uQ":function(t,e,n){"use strict";var i=n("6blF"),r=n("/WYv"),o=n("2ePl"),a=n("xTla"),s=n("En8+"),l=n("IUTb"),u=n("pugT"),c=n("S5XQ"),h=n("u67D"),d=n("JcRv"),p=n("Fxb1");function f(t,e){if(!e)return t instanceof i.a?t:new i.a(Object(p.a)(t));if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new i.a(e?function(n){var i=new u.a;return i.add(e.schedule(function(){var r=t[a.a]();i.add(r.subscribe({next:function(t){i.add(e.schedule(function(){return n.next(t)}))},error:function(t){i.add(e.schedule(function(){return n.error(t)}))},complete:function(){i.add(e.schedule(function(){return n.complete()}))}}))})),i}:Object(d.a)(t))}(t,e);if(Object(r.a)(t))return function(t,e){return new i.a(e?function(n){var i=new u.a;return i.add(e.schedule(function(){return t.then(function(t){i.add(e.schedule(function(){n.next(t),i.add(e.schedule(function(){return n.complete()}))}))},function(t){i.add(e.schedule(function(){return n.error(t)}))})})),i}:Object(c.a)(t))}(t,e);if(Object(o.a)(t))return Object(l.a)(t,e);if(function(t){return t&&"function"==typeof t[s.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(e?function(n){var i,r=new u.a;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(function(){i=t[s.a](),r.add(e.schedule(function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(t){return void n.error(t)}e?n.complete():(n.next(t),this.schedule())}}))})),r}:Object(h.a)(t))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}n.d(e,"a",function(){return f})},"1kbU":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("CcnG"),r=(n("z4fs"),n("DC8U"));e.ColorPickerDirective=function(){function t(t,e,n,r,o,a){this.injector=t,this.cfr=e,this.appRef=n,this.vcRef=r,this.elRef=o,this.service=a,this.cpPosition="right",this.cpPositionOffset="0%",this.cpPositionRelativeToArrow=!1,this.cpOutputFormat="hex",this.cpPresetLabel="Preset colors",this.cpPresetEmptyMessage="No colors added",this.cpPresetEmptyMessageClass="preset-empty-message",this.cpMaxPresetColorsLength=6,this.cpCancelButton=!1,this.cpCancelButtonClass="cp-cancel-button-class",this.cpCancelButtonText="Cancel",this.cpOKButton=!1,this.cpOKButtonClass="cp-ok-button-class",this.cpOKButtonText="OK",this.cpAddColorButton=!1,this.cpAddColorButtonClass="cp-add-color-button-class",this.cpAddColorButtonText="Add color",this.cpRemoveColorButtonClass="cp-remove-color-button-class",this.cpFallbackColor="#fff",this.cpHeight="auto",this.cpWidth="230px",this.cpIgnoredElements=[],this.cpDialogDisplay="popup",this.cpSaveClickOutside=!0,this.cpAlphaChannel="enabled",this.cpUseRootViewContainer=!1,this.cpInputChange=new i.EventEmitter(!0),this.cpToggleChange=new i.EventEmitter(!0),this.cpSliderChange=new i.EventEmitter(!0),this.cpSliderDragEnd=new i.EventEmitter(!0),this.cpSliderDragStart=new i.EventEmitter(!0),this.colorPickerCancel=ne
1w i.EventEmitter(!0),this.colorPickerSelect=new i.EventEmitter(!0),this.colorPickerChange=new i.EventEmitter(!1),this.presetColorsChange=new i.EventEmitter(!0),this.ignoreChanges=!1,this.created=!1}return t.prototype.ngOnChanges=function(t){t.cpToggle&&(t.cpToggle.currentValue&&this.openDialog(),!t.cpToggle.currentValue&&this.dialog&&this.dialog.closeColorPicker()),t.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(t.colorPicker.currentValue),this.dialog.setColorFromString(t.colorPicker.currentValue,!1)),this.ignoreChanges=!1),(t.cpPresetLabel||t.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)},t.prototype.ngOnInit=function(){this.colorPicker=this.colorPicker||this.cpFallbackColor||"rgba(0, 0, 0, 1)"},t.prototype.ngOnDestroy=function(){void 0!==this.cmpRef&&this.cmpRef.destroy()},t.prototype.openDialog=function(){if(this.colorPicker=this.colorPicker||this.cpFallbackColor||"rgba(0, 0, 0, 1)",this.created)this.dialog&&this.dialog.openDialog(this.colorPicker);else{this.created=!0;var t=this.vcRef;if(this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){var e=this.injector.get(this.appRef.componentTypes[0]);(t=e.vcRef||e.viewContainerRef||this.vcRef)===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")}var n=this.cfr.resolveComponentFactory(r.ColorPickerComponent),o=i.ReflectiveInjector.fromResolvedProviders([],t.parentInjector);this.cmpRef=t.createComponent(n,0,o,[]),this.cmpRef.instance.setDialog(this,this.elRef,this.colorPicker,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpOutputFormat,this.cpPresetLabel,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpPresetColors,this.cpMaxPresetColorsLength,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpHeight,this.cpWidth,this.cpIgnoredElements,this.cpDialogDisplay,this.cpSaveClickOutside,this.cpAlphaChannel,this.cpUseRootViewContainer),this.dialog=this.cmpRef.instance,this.vcRef!==t&&this.cmpRef.changeDetectorRef.detectChanges()}},t.prototype.toggle=function(t){this.cpToggleChange.emit(t)},t.prototype.colorChanged=function(t,e){void 0===e&&(e=!0),this.ignoreChanges=e,this.colorPickerChange.emit(t)},t.prototype.colorCanceled=function(){this.colorPickerCancel.emit()},t.prototype.colorSelected=function(t){this.colorPickerSelect.emit(t)},t.prototype.presetColorsChanged=function(t){this.presetColorsChange.emit(t)},t.prototype.inputFocus=function(){var t=this;0===this.cpIgnoredElements.filter(function(e){return e===t.elRef.nativeElement}).length&&this.openDialog()},t.prototype.inputChange=function(t){this.dialog?this.dialog.setColorFromString(t,!0):(this.colorPicker=t||this.cpFallbackColor||"rgba(0, 0, 0, 1)",this.colorPickerChange.emit(this.colorPicker))},t.prototype.inputChanged=function(t){this.cpInputChange.emit(t)},t.prototype.sliderChanged=function(t){this.cpSliderChange.emit(t)},t.prototype.sliderDragEnd=function(t){this.cpSliderDragEnd.emit(t)},t.prototype.sliderDragStart=function(t){this.cpSliderDragStart.emit(t)},t.decorators=[{type:i.Directive,args:[{selector:"[colorPicker]",host:{"(click)":"inputFocus()","(focus)":"inputFocus()","(input)":"inputChange($event.target.value)"}}]}],t.propDecorators={colorPicker:[{type:i.Input,args:["colorPicker"]}],cpToggle:[{type:i.Input,args:["cpToggle"]}],cpPosition:[{type:i.Input,args:["cpPosition"]}],cpPositionOffset:[{type:i.Input,args:["cpPositionOffset"]}],cpPositionRelativeToArrow:[{type:i.Input,args:["cpPositionRelativeToArrow"]}],cpOutputFormat:[{type:i.Input,args:["cpOutputFormat"]}],cpPresetLabel:[{type:i.Input,args:["cpPresetLabel"]}],cpPresetEmptyMessage:[{type:i.Input,args:["cpPresetEmptyMessage"]}],cpPresetEmptyMessageClass:[{type:i.Input,args:["cpPresetEmptyMessageClass"]}],cpPresetColors:[{type:i.Input,args:["cpPresetColors"]}],cpMaxPresetColorsLength:[{type:i.Input,args:["cpMaxPresetColorsLength"]}],cpCancelButton:[{type:i.Input,args:["cpCancelButton"]}],cpCancelButtonClass:[{type:i.Input,args:["cpCancelButtonClass"]}],cpCancelButtonText:[{type:i.Input,args:["cpCancelButtonText"]}],cpOKButton:[{type:i.Input,args:["cpOKButton"]}],cpOKButtonClass:[{type:i.Input,args:["cpOKButtonClass"]}],cpOKButtonText:[{type:i.Input,args:["cpOKButtonText"]}],cpAddColorButton:[{type:i.Input,args:["cpAddColorButton"]}],cpAddColorButtonClass:[{type:i.Input,args:["cpAddColorButtonClass"]}],cpAddColorButtonText:[{type:i.Input,args:["cpAddColorButtonText"]}],cpRemoveColorButtonClass:[{type:i.Input,args:["cpRemoveColorButtonClass"]}],cpFallbackColor:[{type:i.Input,args:["cpFallbackColor"]}],cpHeight:[{type:i.Input,args:["cpHeight"]}],cpWidth:[{type:i.Input,args:["cpWidth"]}],cpIgnoredElements:[{type:i.Input,args:["cpIgnoredElements"]}],cpDialogDisplay:[{type:i.Input,args:["cpDialogDisplay"]}],cpSaveClickOutside:[{type:i.Input,args:["cpSaveClickOutside"]}],cpAlphaChannel:[{type:i.Input,args:["cpAlphaChannel"]}],cpUseRootViewContainer:[{type:i.Input,args:["cpUseRootViewContainer"]}],cpInputChange:[{type:i.Output,args:["cpInputChange"]}],cpToggleChange:[{type:i.Output,args:["cpToggleChange"]}],cpSliderChange:[{type:i.Output,args:["cpSliderChange"]}],cpSliderDragEnd:[{type:i.Output,args:["cpSliderDragEnd"]}],cpSliderDragStart:[{type:i.Output,args:["cpSliderDragStart"]}],colorPickerCancel:[{type:i.Output,args:["colorPickerCancel"]}],colorPickerSelect:[{type:i.Output,args:["colorPickerSelect"]}],colorPickerChange:[{type:i.Output,args:["colorPickerChange"]}],presetColorsChange:[{type:i.Output,args:["cpPresetColorsChange"]}]},t}()},"2Bdj":function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},"2ePl":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},"2yAJ":function(t,e){function n(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function i(t,e,i,r,o,a){return n((s=n(n(e,t),n(r,a)))<<(l=o)|s>>>32-l,i);var s,l}function r(t,e,n,r,o,a,s){return i(e&n|~e&r,t,e,o,a,s)}function o(t,e,n,r,o,a,s){return i(e&r|n&~r,t,e,o,a,s)}function a(t,e,n,r,o,a,s){return i(e^n^r,t,e,o,a,s)}function s(t,e,n,r,o,a,s){return i(n^(e|~r),t,e,o,a,s)}function l(t,e){var i,l,u,c,h;t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;var d=1732584193,p=-271733879,f=-1732584194,g=271733878;for(i=0;i<t.length;i+=16)l=d,u=p,c=f,h=g,p=s(p=s(p=s(p=s(p=a(p=a(p=a(p=a(p=o(p=o(p=o(p=o(p=r(p=r(p=r(p=r(p,f=r(f,g=r(g,d=r(d,p,f,g,t[i],7,-680876936),p,f,t[
1i+1],12,-389564586),d,p,t[i+2],17,606105819),g,d,t[i+3],22,-1044525330),f=r(f,g=r(g,d=r(d,p,f,g,t[i+4],7,-176418897),p,f,t[i+5],12,1200080426),d,p,t[i+6],17,-1473231341),g,d,t[i+7],22,-45705983),f=r(f,g=r(g,d=r(d,p,f,g,t[i+8],7,1770035416),p,f,t[i+9],12,-1958414417),d,p,t[i+10],17,-42063),g,d,t[i+11],22,-1990404162),f=r(f,g=r(g,d=r(d,p,f,g,t[i+12],7,1804603682),p,f,t[i+13],12,-40341101),d,p,t[i+14],17,-1502002290),g,d,t[i+15],22,1236535329),f=o(f,g=o(g,d=o(d,p,f,g,t[i+1],5,-165796510),p,f,t[i+6],9,-1069501632),d,p,t[i+11],14,643717713),g,d,t[i],20,-373897302),f=o(f,g=o(g,d=o(d,p,f,g,t[i+5],5,-701558691),p,f,t[i+10],9,38016083),d,p,t[i+15],14,-660478335),g,d,t[i+4],20,-405537848),f=o(f,g=o(g,d=o(d,p,f,g,t[i+9],5,568446438),p,f,t[i+14],9,-1019803690),d,p,t[i+3],14,-187363961),g,d,t[i+8],20,1163531501),f=o(f,g=o(g,d=o(d,p,f,g,t[i+13],5,-1444681467),p,f,t[i+2],9,-51403784),d,p,t[i+7],14,1735328473),g,d,t[i+12],20,-1926607734),f=a(f,g=a(g,d=a(d,p,f,g,t[i+5],4,-378558),p,f,t[i+8],11,-2022574463),d,p,t[i+11],16,1839030562),g,d,t[i+14],23,-35309556),f=a(f,g=a(g,d=a(d,p,f,g,t[i+1],4,-1530992060),p,f,t[i+4],11,1272893353),d,p,t[i+7],16,-155497632),g,d,t[i+10],23,-1094730640),f=a(f,g=a(g,d=a(d,p,f,g,t[i+13],4,681279174),p,f,t[i],11,-358537222),d,p,t[i+3],16,-722521979),g,d,t[i+6],23,76029189),f=a(f,g=a(g,d=a(d,p,f,g,t[i+9],4,-640364487),p,f,t[i+12],11,-421815835),d,p,t[i+15],16,530742520),g,d,t[i+2],23,-995338651),f=s(f,g=s(g,d=s(d,p,f,g,t[i],6,-198630844),p,f,t[i+7],10,1126891415),d,p,t[i+14],15,-1416354905),g,d,t[i+5],21,-57434055),f=s(f,g=s(g,d=s(d,p,f,g,t[i+12],6,1700485571),p,f,t[i+3],10,-1894986606),d,p,t[i+10],15,-1051523),g,d,t[i+1],21,-2054922799),f=s(f,g=s(g,d=s(d,p,f,g,t[i+8],6,1873313359),p,f,t[i+15],10,-30611744),d,p,t[i+6],15,-1560198380),g,d,t[i+13],21,1309151649),f=s(f,g=s(g,d=s(d,p,f,g,t[i+4],6,-145523070),p,f,t[i+11],10,-1120210379),d,p,t[i+2],15,718787259),g,d,t[i+9],21,-343485551),d=n(d,l),p=n(p,u),f=n(f,c),g=n(g,h);return[d,p,f,g]}function u(t){var e,n="",i=32*t.length;for(e=0;e<i;e+=8)n+=String.fromCharCode(t[e>>5]>>>e%32&255);return n}function c(t){var e,n=[];for(n[(t.length>>2)-1]=void 0,e=0;e<n.length;e+=1)n[e]=0;var i=8*t.length;for(e=0;e<i;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function h(t){var e,n,i="";for(n=0;n<t.length;n+=1)e=t.charCodeAt(n),i+="0123456789abcdef".charAt(e>>>4&15)+"0123456789abcdef".charAt(15&e);return i}function d(t){return unescape(encodeURIComponent(t))}function p(t){return function(t){return u(l(c(t),8*t.length))}(d(t))}function f(t,e){return function(t,e){var n,i,r=c(t),o=[],a=[];for(o[15]=a[15]=void 0,r.length>16&&(r=l(r,8*t.length)),n=0;n<16;n+=1)o[n]=909522486^r[n],a[n]=1549556828^r[n];return i=l(o.concat(c(e)),512+8*e.length),u(l(a.concat(i),640))}(d(t),d(e))}t.exports=function(t,e,n){return e?n?f(e,t):h(f(e,t)):n?p(t):h(p(t))}},3:function(t,e){},4:function(t,e){},"4af/":function(t,e,n){var i=n("vYjF"),r={collectWindowErrors:!0,debug:!1},o="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=[].slice,s="?",l=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function u(){return"undefined"==typeof document||null==document.location?"":document.location.href}r.report=function(){var t,e,n=[],c=null,h=null,d=null;function p(t,e){var i=null;if(!e||r.collectWindowErrors){for(var o in n)if(n.hasOwnProperty(o))try{n[o].apply(null,[t].concat(a.call(arguments,2)))}catch(t){i=t}if(i)throw i}}function f(e,n,o,a,c){var h=i.isErrorEvent(c)?c.error:c,f=i.isErrorEvent(e)?e.message:e;if(d)r.computeStackTrace.augmentStackTraceWithInitialElement(d,n,o,f),g();else if(h&&i.isError(h))p(r.computeStackTrace(h),!0);else{var m,v={url:n,line:o,column:a},y=void 0;"[object String]"==={}.toString.call(f)&&(m=f.match(l))&&(y=m[1],f=m[2]),v.func=s,p({name:y,message:f,url:u(),stack:[v]},!0)}return!!t&&t.apply(this,arguments)}function g(){var t=d,e=c;c=null,d=null,h=null,p.apply(null,[t,!1].concat(e))}function m(t,e){var n=a.call(arguments,1);if(d){if(h===t)return;g()}var i=r.computeStackTrace(t);if(d=i,h=t,c=n,setTimeout(function(){h===t&&g()},i.incomplete?2e3:0),!1!==e)throw t}return m.subscribe=function(i){e||(t=o.onerror,o.onerror=f,e=!0),n.push(i)},m.unsubscribe=function(t){for(var e=n.length-1;e>=0;--e)n[e]===t&&n.splice(e,1)},m.uninstall=function(){e&&(o.onerror=t,e=!1,t=void 0),n=[]},m}(),r.computeStackTrace=function(){function t(t){if(void 0!==t.stack&&t.stack){for(var e,n,i,r=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?
1:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,h=t.stack.split("\n"),d=[],p=(/^(.*) is undefined$/.exec(t.message),0),f=h.length;p<f;++p){if(n=r.exec(h[p])){var g=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(e=c.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),i={url:g?null:n[2],func:n[1]||s,args:g?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=o.exec(h[p]))i={url:n[2],func:n[1]||s,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=a.exec(h[p])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(e=l.exec(n[3]))?(n[3]=e[1],n[4]=e[2],n[5]=null):0!==p||n[5]||void 0===t.columnNumber||(d[0].column=t.columnNumber+1),i={url:n[3],func:n[1]||s,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=s),i.url&&"blob:"===i.url.substr(0,5)){var m=new XMLHttpRequest;if(m.open("GET",i.url,!1),m.send(null),200===m.status){var v=m.responseText||"",y=(v=v.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(y){var b=y[1];"~"===b.charAt(0)&&(b=("undefined"==typeof document||null==document.location?"":(document.location.origin||(document.location.origin=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")),document.location.origin))+b.slice(1)),i.url=b.slice(0,-4)}}}d.push(i)}return d.length?{name:t.name,message:t.message,url:u(),stack:d}:null}}function e(t,e,n,i){var r={url:e,line:n};if(r.url&&r.line){if(t.incomplete=!1,r.func||(r.func=s),t.stack.length>0&&t.stack[0].url===r.url){if(t.stack[0].line===r.line)return!1;if(!t.stack[0].line&&t.stack[0].func===r.func)return t.stack[0].line=r.line,!1}return t.stack.unshift(r),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,o){for(var a,l,c=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,h=[],d={},p=!1,f=n.caller;f&&!p;f=f.caller)if(f!==i&&f!==r.report){if(l={url:null,func:s,line:null,column:null},f.name?l.func=f.name:(a=c.exec(f.toString()))&&(l.func=a[1]),void 0===l.func)try{l.func=a.input.substring(0,a.input.indexOf("{"))}catch(t){}d[""+f]?p=!0:d[""+f]=!0,h.push(l)}o&&h.splice(0,o);var g={name:t.name,message:t.message,url:u(),stack:h};return e(g,t.sourceURL||t.fileName,t.line||t.lineNumber),g}function i(e,i){var o=null;i=null==i?0:+i;try{if(o=t(e))return o}catch(t){if(r.debug)throw t}try{if(o=n(e,i+1))return o}catch(t){if(r.debug)throw t}return{name:e.name,message:e.message,url:u()}}return i.augmentStackTraceWithInitialElement=e,i.computeStackTraceFromStackProp=t,i}(),t.exports=r},5:function(t,e){},6:function(t,e){},"67Y/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("mrSG"),r=n("FFOo");function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i.b(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(r.a)},"6ahw":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("iLxQ"),r=n("DKTb"),o={closed:!0,next:function(t){},error:function(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete:function(){}}},"6blF":function(t,e,n){"use strict";var i=n("FFOo"),r=n("L/V9"),o=n("6ahw"),a=n("xTla"),s=n("+umK"),l=n("iLxQ");n.d(e,"a",function(){return u});var u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new i.a(t,e,n):new i.a(o.a)}(t,e,n);if(a?a.call(s,this.source):s.add(this.source||!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=c(e))(function(e,i){var r;r=n.subscribe(function(e){try{t(e)}catch(t){i(t),r&&r.unsubscribe()}},i,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:((n=t)?1===n.length?n[0]:function(t){return n.reduce(function(t,e){return e(t)},t)}:s.a)(this);var n},t.prototype.toPromise=function(t){var e=this;return new(t=c(t))(function(t,n){var i;e.subscribe(function(t){return i=t},function(t){return n(t)},function(){return t(i)})})},t.create=function(e){return new t(e)},t}();function c(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},7:function(t,e,n){t.exports=n("zUnb")},"8g8A":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("mrSG"),r=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return i.b(e,t),e}(Error)},AKyF:function(t,e,n){var i=n("vYjF");t.exports={wrapMethod:function(t,e,n){var r=t[e],o=t;if(e in t){var a="warn"===e?"warning":e;t[e]=function(){var t=[].slice.call(arguments),s=i.safeJoin(t," "),l={level:a,logger:"console",extra:{arguments:t}};"assert"===e?!1===t[0]&&(s="Assertion failed: "+(i.safeJoin(t.slice(1)," ")||"console.assert"),l.extra.arguments=t.slice(1),n&&n(s,l)):n&&n(s,l),r&&Function.prototype.apply.call(r,o,t)}}}}},B9Yq:function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},BjAV:function(t,e){function n(t,e){for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}function i(t,e){var i=[],r=[];return null==e&&(e=function(t,e){return i[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n(i,e)).join(".")+"]"}),function(o,a){if(i.length>0){var s=n(i,this);~s?i.splice(s+1):i.push(this),~s?r.splice(s,1/0,o):r.push(o),~n(i,a)&&(a=e.call(this,o,a))}else i.push(a);return null==t?a instanceof Error?function(t){var e={stack:t.stack,message:t.message,name:t.name};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}(a):a:t.call(this,o,a)}}(t.exports=function(t,e,n,r){return JSON.stringify(t,i(e,r),n)}).getSerialize=i}
1,CcnG:function(t,e,n){"use strict";n.r(e),n.d(e,"\u0275angular_packages_core_core_j",function(){return Hi}),n.d(e,"\u0275angular_packages_core_core_k",function(){return Wi}),n.d(e,"\u0275angular_packages_core_core_l",function(){return Ui}),n.d(e,"\u0275angular_packages_core_core_f",function(){return De}),n.d(e,"\u0275angular_packages_core_core_g",function(){return Fi}),n.d(e,"\u0275angular_packages_core_core_h",function(){return xi}),n.d(e,"\u0275angular_packages_core_core_i",function(){return Ai}),n.d(e,"\u0275angular_packages_core_core_c",function(){return de}),n.d(e,"\u0275angular_packages_core_core_d",function(){return ee}),n.d(e,"\u0275angular_packages_core_core_e",function(){return ae}),n.d(e,"\u0275angular_packages_core_core_m",function(){return sn}),n.d(e,"\u0275angular_packages_core_core_o",function(){return nn}),n.d(e,"\u0275angular_packages_core_core_n",function(){return en}),n.d(e,"\u0275angular_packages_core_core_r",function(){return an}),n.d(e,"\u0275angular_packages_core_core_p",function(){return rn}),n.d(e,"\u0275angular_packages_core_core_q",function(){return on}),n.d(e,"\u0275angular_packages_core_core_v",function(){return Gc}),n.d(e,"\u0275angular_packages_core_core_x",function(){return th}),n.d(e,"\u0275angular_packages_core_core_w",function(){return Kc}),n.d(e,"\u0275angular_packages_core_core_u",function(){return Lc}),n.d(e,"\u0275angular_packages_core_core_y",function(){return nh}),n.d(e,"\u0275angular_packages_core_core_bb",function(){return yc}),n.d(e,"\u0275angular_packages_core_core_bd",function(){return _c}),n.d(e,"\u0275angular_packages_core_core_be",function(){return wc}),n.d(e,"\u0275angular_packages_core_core_bc",function(){return bc}),n.d(e,"\u0275angular_packages_core_core_ba",function(){return vc}),n.d(e,"\u0275angular_packages_core_core_z",function(){return nu}),n.d(e,"\u0275angular_packages_core_core_a",function(){return v}),n.d(e,"\u0275angular_packages_core_core_b",function(){return y}),n.d(e,"\u0275angular_packages_core_core_s",function(){return ha}),n.d(e,"\u0275angular_packages_core_core_t",function(){return kr}),n.d(e,"createPlatform",function(){return In}),n.d(e,"assertPlatform",function(){return jn}),n.d(e,"destroyPlatform",function(){return Mn}),n.d(e,"getPlatform",function(){return Fn}),n.d(e,"PlatformRef",function(){return Nn}),n.d(e,"ApplicationRef",function(){return Vn}),n.d(e,"enableProdMode",function(){return An}),n.d(e,"isDevMode",function(){return Dn}),n.d(e,"createPlatformFactory",function(){return Rn}),n.d(e,"NgProbeToken",function(){return Pn}),n.d(e,"APP_ID",function(){return Ae}),n.d(e,"PACKAGE_ROOT_URL",function(){return Fe}),n.d(e,"PLATFORM_INITIALIZER",function(){return Re}),n.d(e,"PLATFORM_ID",function(){return je}),n.d(e,"APP_BOOTSTRAP_LISTENER",function(){return Me}),n.d(e,"APP_INITIALIZER",function(){return Oe}),n.d(e,"ApplicationInitStatus",function(){return Te}),n.d(e,"DebugElement",function(){return ci}),n.d(e,"DebugNode",function(){return ui}),n.d(e,"asNativeElements",function(){return hi}),n.d(e,"getDebugNode",function(){return gi}),n.d(e,"Testability",function(){return wn}),n.d(e,"TestabilityRegistry",function(){return xn}),n.d(e,"setTestabilityGetter",function(){return Cn}),n.d(e,"TRANSLATIONS",function(){return Vi}),n.d(e,"TRANSLATIONS_FORMAT",function(){return Li}),n.d(e,"LOCALE_ID",function(){return Bi}),n.d(e,"MissingTranslationStrategy",function(){return zi}),n.d(e,"ApplicationModule",function(){return Yi}),n.d(e,"wtfCreateScope",function(){return un}),n.d(e,"wtfLeave",function(){return cn}),n.d(e,"wtfStartTimeRange",function(){return hn}),n.d(e,"wtfEndTimeRange",function(){return dn}),n.d(e,"Type",function(){return F}),n.d(e,"EventEmitter",function(){return pn}),n.d(e,"ErrorHandler",function(){return qt}),n.d(e,"Sanitizer",function(){return vr}),n.d(e,"SecurityContext",function(){return mr}),n.d(e,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return b}),n.d(e,"Attribute",function(){return _}),n.d(e,"ContentChild",function(){return C}),n.d(e,"ContentChildren",function(){return x}),n.d(e,"Query",function(){return w}),n.d(e,"ViewChild",function(){return k}),n.d(e,"ViewChildren",function(){return S}),n.d(e,"Component",function(){return D}),n.d(e,"Directive",function(){return A}),n.d(e,"HostBinding",function(){return j}),n.d(e,"HostListener",function(){return M}),n.d(e,"Input",function(){return I}),n.d(e,"Output",function(){return R}),n.d(e,"Pipe",function(){return P}),n.d(e,"CUSTOM_ELEMENTS_SCHEMA",function(){return Mt}
1),n.d(e,"NO_ERRORS_SCHEMA",function(){return Ft}),n.d(e,"NgModule",function(){return Nt}),n.d(e,"ViewEncapsulation",function(){return Bt}),n.d(e,"Version",function(){return Vt}),n.d(e,"VERSION",function(){return Lt}),n.d(e,"defineInjectable",function(){return u}),n.d(e,"defineInjector",function(){return c}),n.d(e,"forwardRef",function(){return tt}),n.d(e,"resolveForwardRef",function(){return et}),n.d(e,"Injectable",function(){return jt}),n.d(e,"inject",function(){return Tt}),n.d(e,"INJECTOR",function(){return ct}),n.d(e,"Injector",function(){return dt}),n.d(e,"ReflectiveInjector",function(){return he}),n.d(e,"createInjector",function(){return be}),n.d(e,"ResolvedReflectiveFactory",function(){return re}),n.d(e,"ReflectiveKey",function(){return Jt}),n.d(e,"InjectionToken",function(){return h}),n.d(e,"Inject",function(){return nt}),n.d(e,"Optional",function(){return it}),n.d(e,"Self",function(){return rt}),n.d(e,"SkipSelf",function(){return ot}),n.d(e,"Host",function(){return at}),n.d(e,"NgZone",function(){return fn}),n.d(e,"RenderComponentType",function(){return zn}),n.d(e,"Renderer",function(){return Wn}),n.d(e,"Renderer2",function(){return qn}),n.d(e,"RendererFactory2",function(){return Yn}),n.d(e,"RendererStyleFlags2",function(){return Xn}),n.d(e,"RootRenderer",function(){return Un}),n.d(e,"COMPILER_OPTIONS",function(){return ze}),n.d(e,"Compiler",function(){return Le}),n.d(e,"CompilerFactory",function(){return He}),n.d(e,"ModuleWithComponentFactories",function(){return Be}),n.d(e,"ComponentFactory",function(){return Ue}),n.d(e,"ComponentRef",function(){return We}),n.d(e,"ComponentFactoryResolver",function(){return Ze}),n.d(e,"ElementRef",function(){return Gn}),n.d(e,"NgModuleFactory",function(){return tn}),n.d(e,"NgModuleRef",function(){return $e}),n.d(e,"NgModuleFactoryLoader",function(){return Kn}),n.d(e,"getModuleFactory",function(){return Jn}),n.d(e,"QueryList",function(){return $n}),n.d(e,"SystemJsNgModuleLoader",function(){return ni}),n.d(e,"SystemJsNgModuleLoaderConfig",function(){return ti}),n.d(e,"TemplateRef",function(){return ri}),n.d(e,"ViewContainerRef",function(){return oi}),n.d(e,"EmbeddedViewRef",function(){return li}),n.d(e,"ViewRef",function(){return si}),n.d(e,"ChangeDetectionStrategy",function(){return E}),n.d(e,"ChangeDetectorRef",function(){return ai}),n.d(e,"DefaultIterableDiffer",function(){return Si}),n.d(e,"IterableDiffers",function(){return Ii}),n.d(e,"KeyValueDiffers",function(){return Ri}),n.d(e,"SimpleChange",function(){return bi}),n.d(e,"WrappedValue",function(){return yi}),n.d(e,"platformCore",function(){return Ni}),n.d(e,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return Tn}),n.d(e,"\u0275APP_ID_RANDOM_PROVIDER",function(){return Pe}),n.d(e,"\u0275defaultIterableDiffers",function(){return Mi}),n.d(e,"\u0275devModeEqual",function(){return vi}),n.d(e,"\u0275isListLikeIterable",function(){return _i}),n.d(e,"\u0275ChangeDetectorStatus",function(){return O}),n.d(e,"\u0275isDefaultChangeDetectionStrategy",function(){return T}),n.d(e,"\u0275Console",function(){return Ne}),n.d(e,"\u0275inject",function(){return Tt}),n.d(e,"\u0275setCurrentInjector",function(){return Ot}),n.d(e,"\u0275APP_ROOT",function(){return pe}),n.d(e,"\u0275ComponentFactory",function(){return Ue}),n.d(e,"\u0275CodegenComponentFactoryResolver",function(){return Qe}),n.d(e,"\u0275ReflectionCapabilities",function(){return Q}),n.d(e,"\u0275RenderDebugInfo",function(){return Hn}),n.d(e,"\u0275_sanitizeHtml",function(){return hr}),n.d(e,"\u0275_sanitizeStyle",function(){return gr}),n.d(e,"\u0275_sanitizeUrl",function(){return Ki}),n.d(e,"\u0275global",function(){return z}),n.d(e,"\u0275looseIdentical",function(){return X}),n.d(e,"\u0275stringify",function(){return q}),n.d(e,"\u0275makeDecorator",function(){return g}),n.d(e,"\u0275isObservable",function(){return Ee}),n.d(e,"\u0275isPromise",function(){return ke}),n.d(e,"\u0275clearOverrides",function(){return Ks}),n.d(e,"\u0275overrideComponentView",function(){return Gs}),n.d(e,"\u0275overrideProvider",function(){return qs}),n.d(e,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return ya}),n.d(e,"\u0275defineComponent",function(){return rh}),n.d(e,"\u0275defineDirective",function(){return dh}),n.d(e,"\u0275definePipe",function(){return ph}),n.d(e,"\u0275detectChanges",function(){return $u}),n.d(e,"\u0275renderComponent",function(){return Mc}),n.d(e,"\u0275directiveInject",function(){return Wc}),n.d(e,"\u0275injectTemplateRef",function(){return Uc}),n.d(e,"\u0275injectViewContainerRef",function(){return Yc}),n.d(e,"\u0275injectChangeDetectorRef",function(){return Xc}),n.d(e,"\u0275injectAttribute",function(){return qc}),n.d(e,"\u0275PublicFeature",function(){return uh}),n.d(e,"\u0275NgOnChangesFeature",function(){return lh}
1),n.d(e,"\u0275markDirty",function(){return ec}),n.d(e,"\u0275NC",function(){return nc}),n.d(e,"\u0275C",function(){return Vu}),n.d(e,"\u0275E",function(){return gu}),n.d(e,"\u0275L",function(){return Su}),n.d(e,"\u0275T",function(){return ju}),n.d(e,"\u0275V",function(){return Wu}),n.d(e,"\u0275Q",function(){return Vh}),n.d(e,"\u0275d",function(){return mc}),n.d(e,"\u0275P",function(){return Gu}),n.d(e,"\u0275b",function(){return rc}),n.d(e,"\u0275i1",function(){return ac}),n.d(e,"\u0275i2",function(){return sc}),n.d(e,"\u0275i3",function(){return lc}),n.d(e,"\u0275i4",function(){return uc}),n.d(e,"\u0275i5",function(){return cc}),n.d(e,"\u0275i6",function(){return hc}),n.d(e,"\u0275i7",function(){return dc}),n.d(e,"\u0275i8",function(){return pc}),n.d(e,"\u0275iV",function(){return oc}),n.d(e,"\u0275pb1",function(){return kh}),n.d(e,"\u0275pb2",function(){return Eh}),n.d(e,"\u0275pb3",function(){return Oh}),n.d(e,"\u0275pb4",function(){return Th}),n.d(e,"\u0275pbV",function(){return Ah}),n.d(e,"\u0275f0",function(){return fh}),n.d(e,"\u0275f1",function(){return gh}),n.d(e,"\u0275f2",function(){return mh}),n.d(e,"\u0275f3",function(){return vh}),n.d(e,"\u0275f4",function(){return yh}),n.d(e,"\u0275f5",function(){return bh}),n.d(e,"\u0275f6",function(){return _h}),n.d(e,"\u0275f7",function(){return wh}),n.d(e,"\u0275f8",function(){return xh}),n.d(e,"\u0275fV",function(){return Ch}),n.d(e,"\u0275cR",function(){return Lu}),n.d(e,"\u0275cr",function(){return zu}),n.d(e,"\u0275qR",function(){return Lh}),n.d(e,"\u0275e",function(){return ku}),n.d(e,"\u0275p",function(){return Ou}),n.d(e,"\u0275pD",function(){return Xu}),n.d(e,"\u0275a",function(){return Eu}),n.d(e,"\u0275s",function(){return Ru}),n.d(e,"\u0275sn",function(){return Iu}),n.d(e,"\u0275k",function(){return Pu}),n.d(e,"\u0275kn",function(){return Du}),n.d(e,"\u0275t",function(){return Mu}),n.d(e,"\u0275v",function(){return Uu}),n.d(e,"\u0275st",function(){return fc}),n.d(e,"\u0275ld",function(){return gc}),n.d(e,"\u0275Pp",function(){return Sh}),n.d(e,"\u0275whenRendered",function(){return Fc}),n.d(e,"\u0275bypassSanitizationTrustHtml",function(){return Xh}),n.d(e,"\u0275bypassSanitizationTrustStyle",function(){return qh}),n.d(e,"\u0275bypassSanitizationTrustScript",function(){return Gh}),n.d(e,"\u0275bypassSanitizationTrustUrl",function(){return Kh}),n.d(e,"\u0275bypassSanitizationTrustResourceUrl",function(){return Zh}),n.d(e,"\u0275sanitizeHtml",function(){return Hh}),n.d(e,"\u0275sanitizeStyle",function(){return Wh}),n.d(e,"\u0275sanitizeUrl",function(){return Uh}),n.d(e,"\u0275sanitizeResourceUrl",function(){return Yh}),n.d(e,"\u0275registerModuleFactory",function(){return Qn}),n.d(e,"\u0275EMPTY_ARRAY",function(){return go}),n.d(e,"\u0275EMPTY_MAP",function(){return mo}),n.d(e,"\u0275and",function(){return vo}),n.d(e,"\u0275ccf",function(){return No}),n.d(e,"\u0275cmf",function(){return Zs}),n.d(e,"\u0275crt",function(){return Fr}),n.d(e,"\u0275did",function(){return la}),n.d(e,"\u0275eld",function(){return yo}),n.d(e,"\u0275elementEventFullName",function(){return Gr}),n.d(e,"\u0275getComponentViewDefinitionFactory",function(){return Bo}),n.d(e,"\u0275inlineInterpolate",function(){return po}),n.d(e,"\u0275interpolate",function(){return ho}),n.d(e,"\u0275mod",function(){return To}),n.d(e,"\u0275mpd",function(){return Oo}),n.d(e,"\u0275ncd",function(){return Da}),n.d(e,"\u0275nov",function(){return Ko}),n.d(e,"\u0275pid",function(){return ua}),n.d(e,"\u0275prd",function(){return ca}),n.d(e,"\u0275pad",function(){return Ra}),n.d(e,"\u0275pod",function(){return ja}),n.d(e,"\u0275ppd",function(){return Ia}),n.d(e,"\u0275qud",function(){return ka}),n.d(e,"\u0275ted",function(){return Fa}),n.d(e,"\u0275unv",function(){return Rr}),n.d(e,"\u0275vid",function(){return Va});var i=n("mrSG"),r=n("pugT"),o=n("K9Ia"),a=n("6blF"),s=n("p0ib"),l=n("S1nX");function u(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function c(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}var h=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?u({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),d="__annotations__",p="__parameters__",f="__prop__metadata__";function g(t,e,n,r,o){var a=m(e);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];
1if(this instanceof s)return a.call.apply(a,Object(i.d)([this],t)),this;var n,l=new((n=s).bind.apply(n,Object(i.d)([void 0],t))),u=function(e){return o&&o.apply(void 0,Object(i.d)([e],t)),(e.hasOwnProperty(d)?e[d]:Object.defineProperty(e,d,{value:[]})[d]).push(l),e};return r&&r(u),u}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s}function m(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,Object(i.d)(e));for(var o in r)this[o]=r[o]}}}function v(t,e,n){var r=m(e);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof o)return r.apply(this,t),this;var n,a=new((n=o).bind.apply(n,Object(i.d)([void 0],t)));return s.annotation=a,s;function s(t,e,n){for(var i=t.hasOwnProperty(p)?t[p]:Object.defineProperty(t,p,{value:[]})[p];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(a),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}function y(t,e,n){var r=m(e);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof o)return r.apply(this,t),this;var n,a=new((n=o).bind.apply(n,Object(i.d)([void 0],t)));return function(t,e){var n=t.constructor,i=n.hasOwnProperty(f)?n[f]:Object.defineProperty(n,f,{value:{}})[f];i[e]=i.hasOwnProperty(e)&&i[e]||[],i[e].unshift(a)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}var b=new h("AnalyzeForEntryComponents"),_=v("Attribute",function(t){return{attributeName:t}}),w=function(){},x=y("ContentChildren",function(t,e){return void 0===e&&(e={}),Object(i.a)({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},w),C=y("ContentChild",function(t,e){return void 0===e&&(e={}),Object(i.a)({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},w),S=y("ViewChildren",function(t,e){return void 0===e&&(e={}),Object(i.a)({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},w),k=y("ViewChild",function(t,e){return Object(i.a)({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},w),E=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),O=function(t){return t[t.CheckOnce=0]="CheckOnce",t[t.Checked=1]="Checked",t[t.CheckAlways=2]="CheckAlways",t[t.Detached=3]="Detached",t[t.Errored=4]="Errored",t[t.Destroyed=5]="Destroyed",t}({});function T(t){return null==t||t===E.Default}var A=g("Directive",function(t){return void 0===t&&(t={}),t}),D=g("Component",function(t){return void 0===t&&(t={}),Object(i.a)({changeDetection:E.Default},t)},A),P=g("Pipe",function(t){return Object(i.a)({pure:!0},t)}),I=y("Input",function(t){return{bindingPropertyName:t}}),R=y("Output",function(t){return{bindingPropertyName:t}}),j=y("HostBinding",function(t){return{hostPropertyName:t}}),M=y("HostListener",function(t,e){return{eventName:t,args:e}}),F=Function;function N(t){return"function"==typeof t}var B="undefined"!=typeof window&&window,V="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,L="undefined"!=typeof global&&global,z=B||L||V,H=Promise.resolve(0),W=null;function U(){if(!W){var t=z.Symbol;if(t&&t.iterator)W=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var i=e[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(W=i)}}return W}function Y(t){"undefined"==typeof Zone?H.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function X(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function q(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(q).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}var G=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,K=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{/,Z=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{[\s\S]*constructor\s*\(/,Q=function(){function t(t){this._reflect=t||z.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,Object(i.d)([void 0],e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var i=0;i<n.length;i++)n[i]=void 0===t?[]:t[i]!=Object?[t[i]]:[],e&&null!=e[i]&&(n[i]=n[i].concat(e[i]));return n},t.prototype._ownParameters=function(t,e){var n=t.toString();if(G.exec(n)||K.exec(n)&&!Z.exec(n))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var i=t.ctorParameters;if(i&&i!==e.ctorParameters){var r="function"==typeof i?i():i,o=r.map(function(t){return t&&t.type}),a=r.map(function(t){return t&&J(t.decorators)});return this._zipTypesAndAnnotations(o,a)}var s=t.hasOwnProperty(p)&&t[p],l=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return l||s?this._zipTypesAndAnnotations(l,s):new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!N(t))return[];
1var e=$(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?J(t.decorators):t.hasOwnProperty(d)?t[d]:null},t.prototype.annotations=function(t){if(!N(t))return[];var e=$(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var i=t.propDecorators,r={};return Object.keys(i).forEach(function(t){r[t]=J(i[t])}),r}return t.hasOwnProperty(f)?t[f]:null},t.prototype.propMetadata=function(t){if(!N(t))return{};var e=$(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,Object(i.d)(n[t])),e.push.apply(e,Object(i.d)(o[t])),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof F&&e in t.prototype},t.prototype.guards=function(t){return{}},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){return new Function("o","args","if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);")},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+q(t)},t.prototype.resourceUri=function(t){return"./"+q(t)},t.prototype.resolveIdentifier=function(t,e,n,i){return i},t.prototype.resolveEnum=function(t,e){return t[e]},t}();function J(t){return t?t.map(function(t){var e=t.type.annotationCls,n=t.args?t.args:[];return new(e.bind.apply(e,Object(i.d)([void 0],n)))}):[]}function $(t){var e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}function tt(t){return t.__forward_ref__=tt,t.toString=function(){return q(this())},t}function et(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===tt?t():t}var nt=v("Inject",function(t){return{token:t}}),it=v("Optional"),rt=v("Self"),ot=v("SkipSelf"),at=v("Host"),st="__source",lt=new Object,ut=lt,ct=new h("INJECTOR"),ht=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=lt),e===lt)throw new Error("NullInjectorError: No provider for "+q(t)+"!");return e},t}(),dt=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?new xt(t,e):new xt(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=lt,t.NULL=new ht,t.ngInjectableDef=u({providedIn:"any",factory:function(){return Tt(ct)}}),t}(),pt=function(t){return t},ft=[],gt=pt,mt=function(){return Array.prototype.slice.call(arguments)},vt={},yt=function(t){for(var e in t)if(t[e]===vt)return e;throw Error("!prop")}({provide:String,useValue:vt}),bt=dt.NULL,_t=/\n/gm,wt="\u0275",xt=function(){function t(t,e,n){void 0===e&&(e=bt),void 0===n&&(n=null),this.parent=e,this.source=n;var i=this._records=new Map;i.set(dt,{token:dt,fn:pt,deps:ft,value:this,useNew:!1}),i.set(ct,{token:ct,fn:pt,deps:ft,value:this,useNew:!1}),function t(e,n){if(n)if((n=et(n))instanceof Array)for(var i=0;i<n.length;i++)t(e,n[i]);else{if("function"==typeof n)throw kt("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw kt("Unexpected provider",n);var r=et(n.provide),o=function(t){var e=function(t){var e=ft,n=t.deps;if(n&&n.length){e=[];for(var i=0;i<n.length;i++){var r=6;if((l=et(n[i]))instanceof Array)for(var o=0,a=l;o<a.length;o++){var s=a[o];s instanceof it||s==it?r|=1:s instanceof ot||s==ot?r&=-3:s instanceof rt||s==rt?r&=-5:l=s instanceof nt?s.token:et(s)}e.push({token:l,options:r})}}else if(t.useExisting){var l;e=[{token:l=et(t.useExisting),options:6}]}else if(!(n||yt in t))throw kt("'deps' required",t);return e}(t),n=pt,i=ft,r=!1,o=et(t.provide);
1if(yt in t)i=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)r=!0,n=et(t.useClass);else{if("function"!=typeof o)throw kt("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);r=!0,n=o}return{deps:e,fn:n,useNew:r,value:i}}(n);if(!0===n.multi){var a=e.get(r);if(a){if(a.fn!==mt)throw Ct(r)}else e.set(r,a={token:n.provide,deps:[],useNew:!1,fn:mt,value:ft});a.deps.push({token:r=n,options:6})}var s=e.get(r);if(s&&s.fn==mt)throw Ct(r);e.set(r,o)}}(i,t)}return t.prototype.get=function(t,e,n){void 0===n&&(n=0);var r=this._records.get(t);try{return function t(e,n,r,o,a,s){try{return function(e,n,r,o,a,s){var l,u;if(!n||4&s)2&s||(l=o.get(e,a,0));else{if((l=n.value)==gt)throw Error(wt+"Circular dependency");if(l===ft){n.value=gt;var c=n.useNew,h=n.fn,d=n.deps,p=ft;if(d.length){p=[];for(var f=0;f<d.length;f++){var g=d[f],m=g.options,v=2&m?r.get(g.token):void 0;p.push(t(g.token,v,r,v||4&m?o:bt,1&m?null:dt.THROW_IF_NOT_FOUND,0))}}n.value=l=c?new((u=h).bind.apply(u,Object(i.d)([void 0],p))):h.apply(void 0,p)}}return l}(e,n,r,o,a,s)}catch(t){throw t instanceof Error||(t=new Error(t)),(t.ngTempTokenPath=t.ngTempTokenPath||[]).unshift(e),n&&n.value==gt&&(n.value=ft),t}}(t,r,this._records,this.parent,e,n)}catch(e){var o=e.ngTempTokenPath;throw t[st]&&o.unshift(t[st]),e.message=St("\n"+e.message,o,this.source),e.ngTokenPath=o,e.ngTempTokenPath=null,e}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(e,n){return t.push(q(n))}),"StaticInjector["+t.join(", ")+"]"},t}();function Ct(t){return kt("Cannot mix multi providers and regular providers",t)}function St(t,e,n){void 0===n&&(n=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==wt?t.substr(2):t;var i=q(e);if(e instanceof Array)i=e.map(q).join(" -> ");else if("object"==typeof e){var r=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];r.push(o+":"+("string"==typeof a?JSON.stringify(a):q(a)))}i="{"+r.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+i+"]: "+t.replace(_t,"\n ")}function kt(t,e){return new Error(St(t,e))}var Et=void 0;function Ot(t){var e=Et;return Et=t,e}function Tt(t,e){if(void 0===e&&(e=0),void 0===Et)throw new Error("inject() must be called from an injection context");if(null===Et){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;throw new Error("Injector: NOT_FOUND ["+q(t)+"]")}return Et.get(t,8&e?null:void 0,e)}function At(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,o=0,a=0;a<i.length;a++){var s=i[a];s instanceof it||"Optional"===s.__proto__.ngMetadataName?o|=8:s instanceof ot||"SkipSelf"===s.__proto__.ngMetadataName?o|=4:s instanceof rt||"Self"===s.__proto__.ngMetadataName?o|=2:r=s instanceof nt?s.token:s}e.push(Tt(r,o))}else e.push(Tt(i))}return e}var Dt={},Pt=function(t,e){for(var n in t)if(t[n]===e)return n;throw Error("Could not find renamed property on target object.")}({provide:String,useValue:Dt},Dt),It=[];function Rt(t,e){if(!e){var n=(u=new Q).parameters(t);return function(){return new(t.bind.apply(t,Object(i.d)([void 0],At(n))))}}if(Pt in e){var r=e;return function(){return r.useValue}}if(e.useExisting){var o=e;return function(){return Tt(o.useExisting)}}if(e.useFactory){var a=e;return function(){return a.useFactory.apply(a,Object(i.d)(At(a.deps||It)))}}if(e.useClass){var s=e,l=e.deps;if(!l){var u=new Q;l=u.parameters(t)}return function(){return new((t=s.useClass).bind.apply(t,Object(i.d)([void 0],At(l))));var t}}var c=e.deps;return c||(u=new Q,c=u.parameters(t)),function(){return new(t.bind.apply(t,Object(i.d)([void 0],At(c))))}}var jt=g("Injectable",void 0,void 0,void 0,function(t,e){e&&void 0!==e.providedIn&&void 0===t.ngInjectableDef&&(t.ngInjectableDef=u({providedIn:e.providedIn,factory:Rt(t,e)}))}),Mt={name:"custom-elements"},Ft={name:"no-errors-schema"},Nt=g("NgModule",function(t){return t},void 0,void 0,function(t,e){var n=e&&e.imports||[];e&&e.exports&&(n=Object(i.d)(n,[e.exports])),t.ngInjectorDef=c({factory:Rt(t,{useClass:t}),providers:e&&e.providers,imports:n})}),Bt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t}({}),Vt=function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Lt=new Vt("6.0.0"),zt="ngDebugContext",Ht="ngOriginalError",Wt="ngErrorLogger";function Ut(t){return t[zt]}function Yt(t){return t[Ht]}function Xt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,Object(i.d)(e))}var qt=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t[Wt]||Xt}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?Ut(t)?Ut(t):this._findContext(Yt(t)):null},t.prototype._findOriginalError=function(t){for(var e=Yt(t);e&&Yt(e);)e=Yt(e);return e},t}();function Gt(t){return t.length>1?" ("+function(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return q(t.token)}).join(" -> ")+")":""}function Kt(t,e,n,i){var r=[e],o=n(r),a=i?function(t,e){var n=o+" caused by: "+(e instanceof Error?e.message:e),i=Error(n);return i[Ht]=e,i}(0,i):Error(o);return a.addKey=Zt,a.keys=r,a.injectors=[t],a.constructResolvingMessage=n,a[Ht]=i,a}function Zt(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function Qt(t,e){for(var n=[],i=0,r=e.length;i<r;i++){var o=e[i];n.push(o&&0!=o.length?o.map(q).join(" "):"?")}return Error("Cannot resolve all parameters for '"+q(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+q(t)+"' is decorated with Injectable.")}var Jt=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=q(this.token)}return t.get=function(t){return $t.get(et(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return $t.numberOfKeys},enumerable:!0,configurable:!0}),t}(),$t=new(function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Jt)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Jt(t,Jt.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}()),te=new(function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,i){return this.reflectionCapabilities.resolveIdentifier(t,e,n,i)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}())(new Q),ee=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),ne=[],ie=function(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},re=function(t,e){this.factory=t,this.dependencies=e};function oe(t){return new ie(Jt.get(t.provide),[function(t){var e,n;if(t.useClass){var i=et(t.useClass);e=te.factory(i),n=se(i)}else t.useExisting?(e=function(t){return t},n=[ee.fromKey(Jt.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return le(t,e,n)})}return se(t)}(t.useFactory,t.deps)):(e=function(){return t.useValue},n=ne);return new re(e,n)}(t)],t.multi||!1)}function ae(t){var e=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e.get(i.key.id);if(r){if(i.multiProvider!==r.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+r+" "+i);if(i.multiProvider)for(var o=0;o<i.resolvedFactories.length;o++)r.resolvedFactories.push(i.resolvedFactories[o]);else e.set(i.key.id,i)}else{var a;a=i.multiProvider?new ie(i.key,i.resolvedFactories.slice(),i.multiProvider):i,e.set(i.key.id,a)}}return e}(function t(e,n){return e.forEach(function(e){if(e instanceof F)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!(e instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);t(e,n)}}),n}(t,[]).map(oe),new Map);return Array.from(e.values())}function se(t){var e=te.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw Qt(t,e);return e.map(function(n){return le(t,n,e)})}function le(t,e,n){var i=null,r=!1;if(!Array.isArray(e))return ue(e instanceof nt?e.token:e,r,null);for(var o=null,a=0;a<e.length;++a){var s=e[a];s instanceof F?i=s:s instanceof nt?i=s.token:s instanceof it?r=!0:s instanceof rt||s instanceof ot?o=s:s instanceof h&&(i=s)}if(null!=(i=et(i)))return ue(i,r,o);throw Qt(t,n)}function ue(t,e,n){return new ee(Jt.get(t),e,n)}var ce=new Object,he=function(){function t(){}return t.resolve=function(t){return ae(t)},t.resolveAndCreate=function(e,n){var i=t.resolve(e);return t.fromResolvedProviders(i,n)},t.fromResolvedProviders=function(t,e){return new de(t,e)},t}(),de=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var i=0;i<n;i++)this.keyIds[i]=t[i].key.id,this.objs[i]=ce}return t.prototype.get=function(t,e){return void 0===e&&(e=ut),this._getByKey(Jt.get(t),null,e)},t.prototype.resolveAndCreateChild=function(t){var e=he.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n.parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(he.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw function(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Kt(this,t.key,function(t){return"Cannot instantiate cyclic dependency!"+Gt(t)});return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r,o,a=this,s=e.factory;try{n=e.dependencies.map(function(t){return a._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}try{r=s.apply(void 0,Object(i.d)(n))}catch(e){throw Kt(this,t.key,function(t){var e=q(t[0].token);return o.message+": Error during instantiation of "+e+"!"+Gt(t)+"."},o=e)}return r},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:ut)},t.prototype._getByKey=function(e,n,i){return e===t.INJECTOR_KEY?this:n instanceof rt?this._getByKeySelf(e,i):this._getByKeyDefault(e,i,n)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ce&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ce},t.prototype._throwOrNull=function(t,e){if(e!==ut)return e;throw function(t,e){return Kt(t,e,function(t){return"No provider for "+q(t[0].token)+"!"+Gt(t)})}(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==ce?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,i){var r;for(r=i instanceof ot?this.parent:this;r instanceof t;){var o=r,a=o._getObjByKeyId(e.id);if(a!==ce)return a;r=o.parent}return null!==r?r.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(prov
1iders: ["+function(t,e){for(var n=new Array(t._providers.length),i=0;i<t._providers.length;++i)n[i]=' "'+t.getProviderAtIndex(i).key.displayName+'" ';return n}(this).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t.INJECTOR_KEY=Jt.get(dt),t}(),pe=new h("The presence of this token marks an injector as being the root injector."),fe={},ge={},me=[],ve=void 0;function ye(){return void 0===ve&&(ve=new ht),ve}function be(t,e){return void 0===e&&(e=null),e=e||ye(),new _e(t,e)}var _e=function(){function t(t,e){var n=this;this.parent=e,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,Ce([t],function(t){return n.processInjectorType(t,new Set)}),this.records.set(ct,xe(void 0,this)),this.isRootInjector=this.records.has(pe),this.injectorDefTypes.forEach(function(t){return n.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=ut),void 0===n&&(n=0),this.assertNotDestroyed();var i,r=Ot(this);try{if(!(4&n)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(i=t)||"object"==typeof i&&i instanceof h)&&t.ngInjectableDef||void 0;void 0!==a&&this.injectableDefInScope(a)&&(o=we(t),this.records.set(t,o))}if(void 0!==o)return this.hydrate(t,o)}return 2&n&&ye(),this.parent.get(t,e)}finally{Ot(r)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e){var n=this,i=(t=et(t)).ngInjectorDef,r=null==i&&t.ngModule||void 0,o=void 0===r?t:r,a=void 0!==r&&t.providers||me;if(void 0!==r&&(i=r.ngInjectorDef),null==i)throw new Error("Type "+q(o)+" is missing an ngInjectorDef definition.");if(e.has(o))throw new Error("Circular dependency: type "+q(o)+" ends up importing itself.");if(this.injectorDefTypes.add(o),this.records.set(o,xe(i.factory)),null!=i.imports){e.add(o);try{Ce(i.imports,function(t){return n.processInjectorType(t,e)})}finally{e.delete(o)}}null!=i.providers&&Ce(i.providers,function(t){return n.processProvider(t)}),Ce(a,function(t){return n.processProvider(t)})},t.prototype.processProvider=function(t){var e=Se(t=et(t))?t:et(t.provide),n=function(t){var e=et(t),n=fe,r=void 0;if(Se(t))return we(t);if(e=et(t.provide),yt in t)n=t.useValue;else if(t.useExisting)r=function(){return Tt(t.useExisting)};else if(t.useFactory)r=function(){return t.useFactory.apply(t,Object(i.d)(At(t.deps||[])))};else{var o=t.useClass||e;if(!t.deps)return we(o);r=function(){return new(o.bind.apply(o,Object(i.d)([void 0],At(t.deps))))}}return xe(r,n)}(t);if(!Se(t)&&!0===t.multi){var r=this.records.get(e);if(r){if(void 0===r.multi)throw new Error("Mixed multi-provider for "+e+".")}else e=t,(r=xe(void 0,fe,!0)).factory=function(){return At(r.multi)},this.records.set(e,r);e=t,r.multi.push(t)}var o=this.records.get(e);if(o&&void 0!==o.multi)throw new Error("Mixed multi-provider for "+e);this.records.set(e,n)},t.prototype.hydrate=function(t,e){if(e.value===ge)throw new Error("Circular dep for "+q(t));var n;return e.value===fe&&(e.value=ge,e.value=e.factory()),"object"==typeof e.value&&e.value&&"object"==typeof(n=e.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function we(t){var e=t.ngInjectableDef;if(void 0===e)throw new Error("Type "+q(t)+" is missing an ngInjectableDef definition.");return xe(e.factory)}function xe(t,e,n){return void 0===e&&(e=fe),void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Ce(t,e){t.forEach(function(t){return Array.isArray(t)?Ce(t,e):e(t)})}function Se(t){return"function"==typeof t}function ke(t){return!!t&&"function"==typeof t.then}function Ee(t){return!!t&&"function"==typeof t.subscribe}var Oe=new h("Application Initializer"),Te=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}
1return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var r=this.appInits[i]();ke(r)&&e.push(r)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},t}(),Ae=new h("AppId");function De(){return""+Ie()+Ie()+Ie()}var Pe={provide:Ae,useFactory:De,deps:[]};function Ie(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Re=new h("Platform Initializer"),je=new h("Platform ID"),Me=new h("appBootstrapListener"),Fe=new h("Application Packages Root URL"),Ne=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t.ctorParameters=function(){return[]},t}(),Be=function(t,e){this.ngModuleFactory=t,this.componentFactories=e};function Ve(){throw new Error("Runtime compiler is not loaded")}var Le=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw Ve()},t.prototype.compileModuleAsync=function(t){throw Ve()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw Ve()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw Ve()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}(),ze=new h("compilerOptions"),He=function(){},We=function(){},Ue=function(){};function Ye(t){var e=Error("No component factory found for "+q(t)+". Did you add it to @NgModule.entryComponents?");return e[Ge]=t,e}var Xe,qe,Ge="ngComponent",Ke=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Ye(t)},t}(),Ze=function(){function t(){}return t.NULL=new Ke,t}(),Qe=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var i=0;i<t.length;i++){var r=t[i];this._factories.set(r.componentType,r)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Ye(t);return new Je(e,this._ngModule)},t}(),Je=function(t){function e(e,n){var i=t.call(this)||this;return i.factory=e,i.ngModule=n,i.selector=e.selector,i.componentType=e.componentType,i.ngContentSelectors=e.ngContentSelectors,i.inputs=e.inputs,i.outputs=e.outputs,i}return Object(i.b)(e,t),e.prototype.create=function(t,e,n,i){return this.factory.create(t,e,n,i||this.ngModule)},e}(Ue),$e=function(){},tn=function(){};function en(){var t=z.wtf;return!(!t||!(Xe=t.trace)||(qe=Xe.events,0))}function nn(t,e){return void 0===e&&(e=null),qe.createScope(t,e)}function rn(t,e){return Xe.leaveScope(t,e),e}function on(t,e){return Xe.beginTimeRange(t,e)}function an(t){Xe.endTimeRange(t)}var sn=en();function ln(t,e){return null}var un=sn?nn:function(t,e){return ln},cn=sn?rn:function(t,e){return e},hn=sn?on:function(t,e){return null},dn=sn?an:function(t){return null},pn=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(i.b)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,i){var o,a=function(t){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(a=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),i&&(s=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var l=t.prototype.subscribe.call(this,o,a,s);return e instanceof r.a&&e.add(l),l},e}(o.a),fn=function(){function t(t){var e,n=t.enableLongStackTrace,i=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pn(!1),this.onMicrotaskEmpty=new pn(!1),this.onStable=new pn(!1),this.onError=ne
1w pn(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(e=this)._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,n,i,r,o,a){try{return yn(e),t.invokeTask(i,r,o,a)}finally{bn(e)}},onInvoke:function(t,n,i,r,o,a,s){try{return yn(e),t.invoke(i,r,o,a,s)}finally{bn(e)}},onHasTask:function(t,n,i,r){t.hasTask(i,r),n===i&&("microTask"==r.change?(e.hasPendingMicrotasks=r.microTask,vn(e)):"macroTask"==r.change&&(e.hasPendingMacrotasks=r.macroTask))},onHandleError:function(t,n,i,r){return t.handleError(i,r),e.runOutsideAngular(function(){return e.onError.emit(r)}),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,e,n){return this._inner.run(t,e,n)},t.prototype.runTask=function(t,e,n,i){var r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,t,mn,gn,gn);try{return r.runTask(o,e,n)}finally{r.cancelTask(o)}},t.prototype.runGuarded=function(t,e,n){return this._inner.runGuarded(t,e,n)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function gn(){}var mn={};function vn(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function yn(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bn(t){t._nesting--,vn(t)}var _n=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pn,this.onMicrotaskEmpty=new pn,this.onStable=new pn,this.onError=new pn}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),wn=function(){function t(t){var e=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){e.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){fn.assertNotInAngularZone(),Y(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())Y(function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1});else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,isPeriodic:t.data.isPeriodic,delay:t.data.delay,creationLocation:t.creationLocation,xhr:t.data.target}}):[]},t.prototype.addCallback=function(t,e,n){var i=this,r=-1;e&&e>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(t){return t.timeoutId!==r}),t(i._didWork,i.getPendingTasks())}
1,e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),xn=function(){function t(){this._applications=new Map,kn.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),kn.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}();function Cn(t){kn=t}var Sn,kn=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),En=!0,On=!1,Tn=new h("AllowMultipleToken");function An(){if(On)throw new Error("Cannot enable prod mode after platform setup.");En=!1}function Dn(){return On=!0,En}var Pn=function(t,e){this.name=t,this.token=e};function In(t){if(Sn&&!Sn.destroyed&&!Sn.injector.get(Tn,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Sn=t.get(Nn);var e=t.get(Re,null);return e&&e.forEach(function(t){return t()}),Sn}function Rn(t,e,n){void 0===n&&(n=[]);var i="Platform: "+e,r=new h(i);return function(e){void 0===e&&(e=[]);var o=Fn();if(!o||o.injector.get(Tn,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0});In(dt.create({providers:a,name:i}))}return jn(r)}}function jn(t){var e=Fn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Mn(){Sn&&!Sn.destroyed&&Sn.destroy()}function Fn(){return Sn&&!Sn.destroyed?Sn:null}var Nn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,i=this,r="noop"===(n=e?e.ngZone:void 0)?new _n:("zone.js"===n?void 0:n)||new fn({enableLongStackTrace:Dn()}),o=[{provide:fn,useValue:r}];return r.run(function(){var e=dt.create({providers:o,parent:i.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(qt,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Ln(i._modules,n)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,r){try{var o=((a=n.injector.get(Te)).runInitializers(),a.donePromise.then(function(){return i._moduleDoBootstrap(n),n}));return ke(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var a}(a,r)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var i=this.injector.get(He),r=Bn({},e);return i.createCompiler([r]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Vn);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+q(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");
1this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Bn(t,e){return Array.isArray(e)?e.reduce(Bn,t):Object(i.a)({},t,e)}var Vn=function(){function t(t,e,n,i,r,o){var u=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Dn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new a.a(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),h=new a.a(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){fn.assertNotInAngularZone(),Y(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){fn.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(c,h.pipe(Object(l.a)()))}return t.prototype.bootstrap=function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Ue?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n instanceof Je?null:this._injector.get($e),o=n.create(dt.NULL,[],e||n.selector,r);o.onDestroy(function(){i._unloadComponent(o)});var a=o.injector.get(wn,null);return a&&o.injector.get(xn).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Dn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,cn(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Ln(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Me,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Ln(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=un("ApplicationRef#tick()"),t}();function Ln(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var zn=function(t,e,n,i,r,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=i,this.styles=r,this.animations=o},Hn=function(){},Wn=function(){},Un=function(){},Yn=function(){},Xn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),qn=function(){},Gn=function(t){this.nativeElement=t},Kn=function(){},Zn=new Map;function Qn(t,e){var n=Zn.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Zn.set(t,e)}function Jn(t){var e=Zn.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}var $n=function(){function t(){this.dirty=!0,this._results=[],this.changes=new pn,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)}
1,t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[U()]=function(){return this._results[U()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var i=Array.isArray(n)?t(n):n;return e.concat(i)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),ti=function(){},ei={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ni=function(){function t(t,e){this._compiler=t,this._config=e||ei}return t.prototype.load=function(t){return this._compiler instanceof Le?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=Object(i.c)(t.split("#"),2),o=r[0],a=r[1];return void 0===a&&(a="default"),n("crnd")(o).then(function(t){return t[a]}).then(function(t){return ii(t,o,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(i.c)(t.split("#"),2),r=e[0],o=e[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+a]}).then(function(t){return ii(t,r,o)})},t}();function ii(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var ri=function(){},oi=function(){},ai=function(){},si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e}(ai),li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e}(si),ui=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof ci?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),ci=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.properties={},r.attributes={},r.classes={},r.styles={},r.childNodes=[],r.nativeElement=e,r}return Object(i.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,Object(i.d)([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return di(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return pi(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(ui);function hi(t){return t.map(function(t){return t.nativeElement})}
1function di(t,e,n){t.childNodes.forEach(function(t){t instanceof ci&&(e(t)&&n.push(t),di(t,e,n))})}function pi(t,e,n){t instanceof ci&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof ci&&pi(t,e,n)})}var fi=new Map;function gi(t){return fi.get(t)||null}function mi(t){fi.set(t.nativeNode,t)}function vi(t,e){var n=_i(t),i=_i(e);return n&&i?function(t,e,n){for(var i=t[U()](),r=e[U()]();;){var o=i.next(),a=r.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,vi):!(n||!t||"object"!=typeof t&&"function"!=typeof t||i||!e||"object"!=typeof e&&"function"!=typeof e)||X(t,e)}var yi=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),bi=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function _i(t){return!!wi(t)&&(Array.isArray(t)||!(t instanceof Map)&&U()in t)}function wi(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var xi=function(){function t(){}return t.prototype.supports=function(t){return _i(t)},t.prototype.create=function(t){return new Si(t)},t}(),Ci=function(t,e){return e},Si=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ci}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var o=!n||e&&e.currentIndex<Ti(n,i,r)?e:n,a=Ti(o,i,r),s=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)i++;else{r||(r=[]);var l=a-i,u=s-i;if(l!=u){for(var c=0;c<l;c++){var h=c<r.length?r[c]:r[c]=0,d=h+c;u<=d&&d<l&&(r[c]=h+1)}r[o.previousIndex]=u-l}}a!==s&&t(o,a,s)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!_i(t))throw new Error("Error trying to diff '"+q(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,i,r,o=this._itHead,a=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)r=this._trackByFn(s,i=t[s]),null!==o&&X(o.trackById,r)?(a&&(o=this._verifyReinsertion(o,i,r,s)),X(o.item,i)||this._addIdentityChange(o,i)):(o=this._mismatch(o,i,r,s),a=!0),o=o._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var i=t[U()](),r=void 0;!(r=i.next()).done;)e(r.value)}(t,function(t){r=e._trackByFn(n,t),null!==o&&X(o.trackById,r)?(a&&(o=e._verifyReinsertion(o,t,r,n)),X(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,r,n),a=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,i){var r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(X(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(X(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new ki(e,n),r,i),t},t.prototype._verifyReinsertion=function(t,e,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Oi),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Oi),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),ki=function(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},Ei=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&X(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Oi=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Ei,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=this.map.get(t);return n?n.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function Ti(t,e,n){var i=t.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+e+r}var Ai=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||wi(t)},t.prototype.create=function(){return new Di},t}(),Di=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;
1for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||wi(t)))throw new Error("Error trying to diff '"+q(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,i){if(n&&n.key===i)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var r=e._getOrCreateRecordForKey(i,t);n=e._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var o=new Pi(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){X(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Pi=function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},Ii=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var i=n.factories.slice();e=e.concat(i)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}},t.prototype.find=function(t){var e,n=this.factories.find(function(e){return e.supports(t)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'")},t.ngInjectableDef=u({providedIn:"root",factory:function(){return new t([new xi])}}),t}(),Ri=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var i=n.factories.slice();e=e.concat(i)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supp
1orts(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),ji=[new Ai],Mi=new Ii([new xi]),Fi=new Ri(ji),Ni=Rn(null,"core",[{provide:je,useValue:"unknown"},{provide:Nn,deps:[dt]},{provide:xn,deps:[]},{provide:Ne,deps:[]}]),Bi=new h("LocaleId"),Vi=new h("Translations"),Li=new h("TranslationsFormat"),zi=function(t){return t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore",t}({});function Hi(){return Mi}function Wi(){return Fi}function Ui(t){return t||"en-US"}var Yi=function(t){},Xi=function(){function t(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0<n;n--){var i=e.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.removeAttribute(i)}for(var r=t.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling},t}(),qi=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Gi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ki(t){return(t=String(t)).match(qi)||t.match(Gi)?t:(Dn()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function Zi(t){var e,n,r={};try{for(var o=Object(i.e)(t.split(",")),a=o.next();!a.done;a=o.next())r[a.value]=!0}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}function Qi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r,o={};try{for(var a=Object(i.e)(t),s=a.next();!s.done;s=a.next()){var l=s.value;for(var u in l)l.hasOwnProperty(u)&&(o[u]=!0)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}var Ji,$i=Zi("area,br,col,hr,img,wbr"),tr=Zi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),er=Zi("rp,rt"),nr=Qi(er,tr),ir=Qi($i,Qi(tr,Zi("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Qi(er,Zi("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),nr),rr=Zi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),or=Zi("srcset"),ar=Qi(rr,or,Zi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),sr=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(e.nodeType===Node.ELEMENT_NODE?this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var n=this.checkClobberedElement(e,e.nextSibling);if(n){e=n;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var e=t.nodeName.toLowerCase();if(ir.hasOwnProperty(e)){this.buf.push("<"),this.buf.push(e);for(var n,i=t.attributes,r=0;r<i.length;r++){var o=i.item(r),a=o.name,s=a.toLowerCase();if(ar.hasOwnProperty(s)){var l=o.value;rr[s]&&(l=Ki(l)),or[s]&&(n=l,l=(n=String(n)).split(",").map(function(t){return Ki(t.trim())}).join(", ")),this.buf.push(" ",a,'="',cr(l),'"')}else this.sanitizedSomething=!0}this.buf.push(">")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();ir.hasOwnProperty(e)&&!$i.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(cr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ur=/([^\#-~ |!])/g;function cr(t){return t.replace(/&/g,"&").replace(lr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ur,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function hr(t,e){var n=null;try{Ji=Ji||new Xi(t);var i=e?String(e):"";n=Ji.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Ji.getInertBodyElement(i)}while(i!==o);var a=new sr,s=a.sanitizeChildren(dr(n)||n);return Dn()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var l=dr(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}function dr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var pr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),fr=/^url\(([^)]+)\)$/;function gr(t){if(!(t=String(t).trim()))return"";var e=t.match(fr);return e&&Ki(e[1])===e[1]||t.match(pr)&&function(t){for(var e=!0,n=!0,i=0;i<t.length;i++){var r=t.charAt(i);"'"===r&&n?e=!e:'"'===r&&e&&(n=!n)}return e&&n}(t)?t:(Dn()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}var mr=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),vr=function(){};function yr(t,e,n){var i=t.state,r=1792&i;return r===e?(t.state=-1793&i|n,t.initIndex=-1,!0):r===n}function br(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function _r(t,e){return t.nodes[e]}function wr(t,e){return t.nodes[e]}function xr(t,e){return t.nodes[e]}function Cr(t,e){return t.nodes[e]}function Sr(t,e){return t.nodes[e]}var kr=function(){},Er={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Or(t,e,n,i){var r="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return i&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Tr(n,e),n}(r,t)}function Tr(t,e){t[zt]=e,t[Wt]=e.logError.bind(e)}function Ar(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Dr=function(){},Pr=new Map;function Ir(t){var e=Pr.get(t);return e||(e=q(t)+"_"+Pr.size,Pr.set(t,e)),e}function Rr(t,e,n,i){if(yi.isWrapped(i)){i=yi.unwrap(i);var r=t.def.nodes[e].bindingIndex+n,o=yi.unwrap(t.oldValues[r]);t.oldValues[r]=new yi(o)}return i}var jr="$$undefined",Mr="$$empty";function Fr(t){return{id:jr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var Nr=0;function Br(t){if(t&&t.id===jr){var e=null!=t.encapsulation&&t.encapsulation!==Bt.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Nr++:Mr}return t&&t.id===Mr&&(t=null),t||null}function Vr(t,e,n,i){return!(!(2&t.state)&&X(t.oldValues[e.bindingIndex+n],i))}function Lr(t,e,n,i){return!!Vr(t,e,n,i)&&(t.oldValues[e.bindingIndex+n]=i,!0)}function zr(t,e,n,i){var r=t.oldValues[e.bindingIndex+n];if(1&t.state||!vi(r,i)){var o=e.bindings[n].name;throw Or(Er.createDebugContext(t,e.nodeIndex),o+": "+r,o+": "+i,0!=(1&t.state))}}function Hr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Wr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Ur(t,e,n,i){try{return Hr(33554432&t.def.nodes[e].flags?wr(t,e).componentView:t),Er.handleEvent(t,e,n,i)}catch(e){t.root.errorHandler.handleError(e)}}function Yr(t){return t.parent?wr(t.parent,t.parentNodeDef.nodeIndex):null}function Xr(t){return t.parent?t.parentNodeDef.parent:null}function qr(t,e){switch(201347067&e.flags){case 1:return wr(t,e.nodeIndex).renderElement;case 2:return _r(t,e.nodeIndex).renderText}}function Gr(t,e){return t?t+":"+e:e}function Kr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Zr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Qr(t){return 1<<t%32}function Jr(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=Object(i.c)(t,2),a=o[0],s=o[1];"number"==typeof a?(e[a]=s,n|=Qr(a)):r[a]=s}),{matchedQueries:e,references:r,matchedQueryIds:n}}function $r(t,e){return t.map(function(t){var n,r,o;return Array.isArray(t)?(r=(o=Object(i.c)(t,2))[0],n=o[1]):(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,st,{value:e,configurable:!0}),{flags:r,token:n,tokenKey:Ir(n)}})}function to(t,e,n){var i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&i.element.componentRendererType.encapsulation===Bt.Native?wr(t,n.renderParent.
1nodeIndex).renderElement:void 0:e}var eo=new WeakMap;function no(t){var e=eo.get(t);return e||((e=t(function(){return Dr})).factory=t,eo.set(t,e)),e}function io(t,e,n,i,r){3===e&&(n=t.renderer.parentNode(qr(t,t.def.lastRenderRootNode))),ro(t,e,0,t.def.nodes.length-1,n,i,r)}function ro(t,e,n,i,r,o,a){for(var s=n;s<=i;s++){var l=t.def.nodes[s];11&l.flags&&ao(t,l,e,r,o,a),s+=l.childCount}}function oo(t,e,n,i,r,o){for(var a=t;a&&!Kr(a);)a=a.parent;for(var s=a.parent,l=Xr(a),u=l.nodeIndex+l.childCount,c=l.nodeIndex+1;c<=u;c++){var h=s.def.nodes[c];h.ngContentIndex===e&&ao(s,h,n,i,r,o),c+=h.childCount}if(!s.parent){var d=t.root.projectableNodes[e];if(d)for(c=0;c<d.length;c++)so(t,d[c],n,i,r,o)}}function ao(t,e,n,i,r,o){if(8&e.flags)oo(t,e.ngContent.index,n,i,r,o);else{var a=qr(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&so(t,a,n,i,r,o),32&e.bindingFlags&&so(wr(t,e.nodeIndex).componentView,a,n,i,r,o)):so(t,a,n,i,r,o),16777216&e.flags)for(var s=wr(t,e.nodeIndex).viewContainer._embeddedViews,l=0;l<s.length;l++)io(s[l],n,i,r,o);1&e.flags&&!e.element.name&&ro(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,i,r,o)}}function so(t,e,n,i,r,o){var a=t.renderer;switch(n){case 1:a.appendChild(i,e);break;case 2:a.insertBefore(i,e,r);break;case 3:a.removeChild(i,e);break;case 0:o.push(e)}}var lo=/^:([^:]+):(.+)$/;function uo(t){if(":"===t[0]){var e=t.match(lo);return[e[1],e[2]]}return["",t]}function co(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function ho(t,e){for(var n="",i=0;i<2*t;i+=2)n=n+e[i]+fo(e[i+1]);return n+e[2*t]}function po(t,e,n,i,r,o,a,s,l,u,c,h,d,p,f,g,m,v,y,b){switch(t){case 1:return e+fo(n)+i;case 2:return e+fo(n)+i+fo(r)+o;case 3:return e+fo(n)+i+fo(r)+o+fo(a)+s;case 4:return e+fo(n)+i+fo(r)+o+fo(a)+s+fo(l)+u;case 5:return e+fo(n)+i+fo(r)+o+fo(a)+s+fo(l)+u+fo(c)+h;case 6:return e+fo(n)+i+fo(r)+o+fo(a)+s+fo(l)+u+fo(c)+h+fo(d)+p;case 7:return e+fo(n)+i+fo(r)+o+fo(a)+s+fo(l)+u+fo(c)+h+fo(d)+p+fo(f)+g;case 8:return e+fo(n)+i+fo(r)+o+fo(a)+s+fo(l)+u+fo(c)+h+fo(d)+p+fo(f)+g+fo(m)+v;case 9:return e+fo(n)+i+fo(r)+o+fo(a)+s+fo(l)+u+fo(c)+h+fo(d)+p+fo(f)+g+fo(m)+v+fo(y)+b;default:throw new Error("Does not support more than 9 expressions")}}function fo(t){return null!=t?t.toString():""}var go=[],mo={};function vo(t,e,n,i,r,o){t|=1;var a=Jr(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a.matchedQueries,matchedQueryIds:a.matchedQueryIds,references:a.references,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?no(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||Dr},provider:null,text:null,query:null,ngContent:null}}function yo(t,e,n,r,o,a,s,l,u,c,h,d){void 0===s&&(s=[]),c||(c=Dr);var p=Jr(n),f=p.matchedQueries,g=p.references,m=p.matchedQueryIds,v=null,y=null;a&&(v=(I=Object(i.c)(uo(a),2))[0],y=I[1]),l=l||[];for(var b=new Array(l.length),_=0;_<l.length;_++){var w=Object(i.c)(l[_],3),x=w[0],C=w[1],S=w[2],k=Object(i.c)(uo(C),2),E=k[0],O=k[1],T=void 0,A=void 0;switch(15&x){case 4:A=S;break;case 1:case 8:T=S}b[_]={flags:x,ns:E,name:O,nonMinifiedName:O,securityContext:T,suffix:A}}u=u||[];var D=new Array(u.length);for(_=0;_<u.length;_++){var P=Object(i.c)(u[_],2);D[_]={type:0,target:P[0],eventName:P[1],propName:null}}var I,R=(s=s||[]).map(function(t){var e=Object(i.c)(t,2),n=e[0],r=e[1],o=Object(i.c)(uo(n),2);return[o[0],o[1],r]});return d=Br(d),h&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:m,references:g,ngContentIndex:r,childCount:o,bindings:b,bindingFlags:co(b),outputs:D,element:{ns:v,name:y,attrs:R,template:null,componentProvider:null,componentView:h||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:c||Dr},provider:null,text:null,query:null,ngContent:null}}function bo(t,e,n){var r,o=n.element,a=t.root.selectorOrNode,s=t.renderer;if(t.parent||!a){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var l=to(t,e,n);l&&s.appendChild(l,r)}else r=s.selectRootElement(a);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=Object(i.c)(o.attrs[u],3);s.setAttribute(r,c[1],c[2],c[0])}return r}function _o(t,e,n,i){for(var r=0;r<n.outputs.length;r++){var o=n.outputs[r],a=wo(t,n.nodeIndex,Gr(o.target,o.eventName)),s=o.target,l=t;"component"===o.target&&(s=null,l=e);var u=l.renderer.listen(s||i,o.eventName,a);t.disposables[n.outputIndex+r]=u}}function wo(t,e,n){return function(i){return Ur(t,e,n,i)}}function xo(t,e,n,i){if(!Lr(t,e,n,i))return!1;var r=e.bindings[n],o=wr(t,e.nodeIndex),a=o.renderElement,s=r.name;switch(15&r.flags){case 1:!function(t,e,n,i,r,o){var a=e.securityContext,s=a?t.root.sanitizer.sanitize(a,o):o;s=null!=s?s.toString():null;var l=t.renderer;null!=o?l.setAttribute(n,r,s,i):l.removeAttribute(n,r,i)}(t,r,a,r.ns,s,i);break;case 2:!function(t,e,n,i){var r=t.renderer;i?r.addClass(e,n):r.removeClass(e,n)}(t,a,s,i);break;case 4:!function(t,e,n,i,r){var o=t.root.sanitizer.sanitize(mr.STYLE,r);if(null!=o){o=o.toString();var a=e.suffix;null!=a&&(o+=a)}else o=null;var s=t.renderer;null!=o?s.setStyle(n,i,o):s.removeStyle(n,i)}(t,r,a,s,i);break;case 8:!function(t,e,n,i,r){var o=e.securityContext,a=o?t.root.sanitizer.sanitize(o,r):r;t.renderer.setProperty(n,i,a)}(33554432&e.flags&&32&r.flags?o.componentView:t,r,a,s,i)}return!0}var Co=new Object,So=Ir(dt),ko=Ir(ct),Eo=Ir($e);function Oo(t,e,n,i){return n=et(n),{index:-1,deps:$r(i,q(e)),flags:t,token:e,value:n}}function To(t){for(var e={},n=[],i=!1,r=0;r<t.length;r++){var o=t[r];o.token===pe&&(i=!0),1073741824&o.flags&&n.push(o.token),o.index=r,e[Ir(o.token)]=o}return{factory:null,providersByKey:e,providers:t,modules:n,isRoot:i}}function Ao(t,e,n){void 0===n&&(n=dt.THROW_IF_NOT_FOUND);var i,r,o=Ot(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var a=e.tokenKey;switch(a){case So:case ko:case Eo:return t}var s=t._def.providersByKey[a];if(s){var l=t._providers[s.index];return void 0===l&&(l=t._providers[s.index]=Do(t,s)),l===Co?void 0:l}if(e.token.ngInjectableDef&&(i=t,null!=(r=e.token.ngInjectableDef).providedIn&&(function(t,e){return t._def.modules.indexOf(r.providedIn)>-1}(i)||"root"===r.providedIn&&i._def.isRoot))){var u=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:u,token:e.token},t._providers[u]=Co,t._providers[u]=Do(t,t._def.providersByKey[e.tokenKey])}return t._parent.get(e.token,n)}finally{Ot(o)}}function Do(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Ao(t,n[0]));case 2:return new e(Ao(t,n[0]),Ao(t,n[1]));case 3:return new e(Ao(t,n[0]),Ao(t,n[1]),Ao(t,n[2]));default:for(var o=new Array(r),a=0;a<r;a++)o[a]=Ao(t,n[a]);return new(e.bind.apply(e,Object(i.d)([void 0],o)))}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(Ao(t,n[0]));case 2:return e(Ao(t,n[0]),Ao(t,n[1]));case 3:return e(Ao(t,n[0]),Ao(t,n[1]),Ao(t,n[2]));default:for(var o=Array(r),a=0;a<r;a++)o[a]=Ao(t,n[a]);return e.apply(void 0,Object(i.d)(o))}}(t,e.value,e.deps);break;case 2048:n=Ao(t,e.deps[0]);break;case 256:n=e.value}return void 0===n?Co:n}function Po(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var i=n[e];return i.viewContainerParent=null,Mo(n,e),Er.dirtyParentQueries(i),Ro(i),i}function Io(t,e,n){var i=e?qr(e,e.def.lastRenderRootNode):t.renderElement;io(n,2,n.renderer.parentNode(i),n.renderer.nextSibling(i),void 0)}function Ro(t){io(t,3,null,null,void 0)}function jo(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Mo(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Fo=new Object;function No(t,e,n,i,r,o){return new Vo(t,e,n,i,r,o)}function Bo(t){return t.viewDefFactory}var Vo=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=r,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=i,s}return Object(i.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,i){if(!i)throw new Error("ngModule should be provided");
1var r=no(this.viewDefFactory),o=r.nodes[0].element.componentProvider.nodeIndex,a=Er.createRootView(t,e||[],n,r,i,Fo),s=xr(a,o).instance;return n&&a.renderer.setAttribute(wr(a,0).renderElement,"ng-version",Lt.full),new Lo(a,new Uo(a),s)},e}(Ue),Lo=function(t){function e(e,n,i){var r=t.call(this)||this;return r._view=e,r._viewRef=n,r._component=i,r._elDef=r._view.def.nodes[0],r.hostView=n,r.changeDetectorRef=n,r.instance=i,r}return Object(i.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Gn(wr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Go(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(We);function zo(t,e,n){return new Ho(t,e,n)}var Ho=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Gn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Go(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Xr(t),t=t.parent;return t?new Go(t,e):new Go(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Po(this._data,t);Er.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Uo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i},t.prototype.createComponent=function(t,e,n,i,r){var o=n||this.parentInjector;r||t instanceof Je||(r=o.get($e));var a=t.create(o,i,void 0,r);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,i,r,o,a=t;return r=a._view,o=(n=this._data).viewContainer._embeddedViews,null!==(i=e)&&void 0!==i||(i=o.length),r.viewContainerParent=this._view,jo(o,i,r),function(t,e){var n=Yr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var i=n.parent;i;)i.childFlags|=4,i=i.parent}}(0,e.parentNodeDef)}}(n,r),Er.dirtyParentQueries(r),Io(n,i>0?o[i-1]:null,r),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,i,r,o,a,s=this._embeddedViews.indexOf(t._view);return r=e,a=(o=(n=this._data).viewContainer._embeddedViews)[i=s],Mo(o,i),null==r&&(r=o.length),jo(o,r,a),Er.dirtyParentQueries(a),Ro(a),Io(n,r>0?o[r-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Po(this._data,t);e&&Er.destroyView(e)},t.prototype.detach=function(t){var e=Po(this._data,t);return e?new Uo(e):null},t}();function Wo(t){return new Uo(t)}var Uo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return io(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Hr(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Er.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Er.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Er.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ro(this._view),Er.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Yo(t,e){return new Xo(t,e)}var Xo=function(t){function e(e,n){var i=t.call(this)||this;return i._parentView=e,i._def=n,i}return Object(i.b)(e,t),e.prototype.createEmbeddedView=function(t){return new Uo(Er.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Gn(wr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(ri);function qo(t,e){return new Go(t,e)}var Go=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=dt.THROW_IF_NOT_FOUND),Er.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Ir(t)},e)},t}();function Ko(t,e){var n=t.def.nodes[e];if(1&n.flags){var i=wr(t,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return _r(t,n.nodeIndex).renderText;if(20240&n.flags)return xr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Zo(t){return new Qo(t.renderer)}var Qo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(i.c)(uo(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),i=this.delegate.nextSibling(t),r=0;r<e.length;r++)this.delegate.insertBefore(n,e[r],i)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=this.delegate.parentNode(n);this.delegate.removeChild(i,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=Object(i.c)(uo(e),2),o=r[0],a=r[1];null!=n?this.delegate.setAttribute(t,a,n,o):this.delegate.removeAttribute(t,a,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function Jo(t,e,n,i){return new $o(t,e,n,i)}var $o=function(){function t(t,e,n,i){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),i=0;i<e.providers.length;i++){var r=e.providers[i];4096&r.flags||void 0===n[i]&&(n[i]=Do(t,r))}}(this)}return t.prototype.get=function(t,e,n){void 0===e&&(e=dt.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var i=0;return 4&n?i|=1:2&n&&(i|=4),Ao(this,{token:t,tokenKey:Ir(t),flags:i},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Ze)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+q(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,e){for(var n=t._def,i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){var r=t._providers[i];r&&r!==Co&&r.ngOnDestroy()}}
1(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),ta=Ir(Wn),ea=Ir(qn),na=Ir(Gn),ia=Ir(oi),ra=Ir(ri),oa=Ir(ai),aa=Ir(dt),sa=Ir(ct);function la(t,e,n,r,o,a,s,l){var u=[];if(s)for(var c in s){var h=Object(i.c)(s[c],2);u[h[0]]={flags:8,name:c,nonMinifiedName:h[1],ns:null,securityContext:null,suffix:null}}var d=[];if(l)for(var p in l)d.push({type:1,propName:p,target:null,eventName:l[p]});return ha(t,e|=16384,n,r,o,o,a,u,d)}function ua(t,e,n){return ha(-1,t|=16,null,0,e,e,n)}function ca(t,e,n,i,r){return ha(-1,t,e,0,n,i,r)}function ha(t,e,n,i,r,o,a,s,l){var u=Jr(n),c=u.matchedQueries,h=u.references,d=u.matchedQueryIds;l||(l=[]),s||(s=[]),o=et(o);var p=$r(a,q(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:d,references:h,ngContentIndex:-1,childCount:i,bindings:s,bindingFlags:co(s),outputs:l,element:null,provider:{token:r,value:o,deps:p},text:null,query:null,ngContent:null}}function da(t,e){return ma(t,e)}function pa(t,e){for(var n=t;n.parent&&!Kr(n);)n=n.parent;return va(n.parent,Xr(n),!0,e.provider.value,e.provider.deps)}function fa(t,e){var n=va(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var r=e.outputs[i],o=n[r.propName].subscribe(ga(t,e.parent.nodeIndex,r.eventName));t.disposables[e.outputIndex+i]=o.unsubscribe.bind(o)}return n}function ga(t,e,n){return function(i){return Ur(t,e,n,i)}}function ma(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return va(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var a=o.length;switch(a){case 0:return r();case 1:return r(ba(t,e,n,o[0]));case 2:return r(ba(t,e,n,o[0]),ba(t,e,n,o[1]));case 3:return r(ba(t,e,n,o[0]),ba(t,e,n,o[1]),ba(t,e,n,o[2]));default:for(var s=Array(a),l=0;l<a;l++)s[l]=ba(t,e,n,o[l]);return r.apply(void 0,Object(i.d)(s))}}(t,e.parent,n,r.value,r.deps);case 2048:return ba(t,e.parent,n,r.deps[0]);case 256:return r.value}}function va(t,e,n,r,o){var a=o.length;switch(a){case 0:return new r;case 1:return new r(ba(t,e,n,o[0]));case 2:return new r(ba(t,e,n,o[0]),ba(t,e,n,o[1]));case 3:return new r(ba(t,e,n,o[0]),ba(t,e,n,o[1]),ba(t,e,n,o[2]));default:for(var s=new Array(a),l=0;l<a;l++)s[l]=ba(t,e,n,o[l]);return new(r.bind.apply(r,Object(i.d)([void 0],s)))}}var ya={};function ba(t,e,n,i,r){if(void 0===r&&(r=dt.THROW_IF_NOT_FOUND),8&i.flags)return i.token;var o=t;2&i.flags&&(r=null);var a=i.tokenKey;a===oa&&(n=!(!e||!e.element.componentView)),e&&1&i.flags&&(n=!1,e=e.parent);for(var s=t;s;){if(e)switch(a){case ta:return Zo(_a(s,e,n));case ea:return _a(s,e,n).renderer;case na:return new Gn(wr(s,e.nodeIndex).renderElement);case ia:return wr(s,e.nodeIndex).viewContainer;case ra:if(e.element.template)return wr(s,e.nodeIndex).template;break;case oa:return Wo(_a(s,e,n));case aa:case sa:return qo(s,e);default:var l=(n?e.element.allProviders:e.element.publicProviders)[a];if(l){var u=xr(s,l.nodeIndex);return u||(u={instance:ma(s,l)},s.nodes[l.nodeIndex]=u),u.instance}}n=Kr(s),e=Xr(s),s=s.parent,4&i.flags&&(s=null)}var c=o.root.injector.get(i.token,ya);return c!==ya||r===ya?c:o.root.ngModule.injector.get(i.token,r)}function _a(t,e,n){var i;if(n)i=wr(t,e.nodeIndex).componentView;else for(i=t;i.parent&&!Kr(i);)i=i.parent;return i}function wa(t,e,n,i,r,o){if(32768&n.flags){var a=wr(t,n.parent.nodeIndex).componentView;2&a.def.flags&&(a.state|=8)}if(e.instance[n.bindings[i].name]=r,524288&n.flags){o=o||{};var s=yi.unwrap(t.oldValues[n.bindingIndex+i]);o[n.bindings[i].nonMinifiedName]=new bi(s,r,0!=(2&t.state))}return t.oldValues[n.bindingIndex+i]=r,o}function xa(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,i=0,r=0;r<n.length;r++){var o=n[r],a=o.parent;for(!a&&o.flags&e&&Sa(t,r,o.flags&e,i++),0==(o.childFlags&e)&&(r+=o.childCount);a&&1&a.flags&&r===a.nodeIndex+a.childCount;)a.directChildFlags&e&&(i=Ca(t,a,e,i)),a=a.parent}}function Ca(t,e,n,i){for(var r=e.nodeIndex+1;r<=e.nodeIndex+e.childCount;r++){var o=t.def.nodes[r];o.flags&n&&Sa(t,r,o.flags&n,i++),r+=o.childCount}return i}function Sa(t,e,n,i){var r=xr(t,e);if(r){var o=r.instance;o&&(Er.setCurrentNode(t,e),1048576&n&&br(t,512,i)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&br(t,768,i)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}}function ka(t,e,n){var i=[];for(var r in n)i.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,
1checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:Qr(e),bindings:i},ngContent:null}}function Ea(t){for(var e=t.def.nodeMatchedQueries;t.parent&&Zr(t);){var n=t.parentNodeDef;t=t.parent;for(var i=n.nodeIndex+n.childCount,r=0;r<=i;r++)67108864&(o=t.def.nodes[r]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&Sr(t,r).setDirty(),!(1&o.flags&&r+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(r+=o.childCount)}if(134217728&t.def.nodeFlags)for(r=0;r<t.def.nodes.length;r++){var o;134217728&(o=t.def.nodes[r]).flags&&536870912&o.flags&&Sr(t,r).setDirty(),r+=o.childCount}}function Oa(t,e){var n=Sr(t,e.nodeIndex);if(n.dirty){var i,r=void 0;if(67108864&e.flags){var o=e.parent.parent;r=Ta(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),i=xr(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(r=Ta(t,0,t.def.nodes.length-1,e.query,[]),i=t.component);n.reset(r);for(var a=e.query.bindings,s=!1,l=0;l<a.length;l++){var u=a[l],c=void 0;switch(u.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}i[u.propName]=c}s&&n.notifyOnChanges()}}function Ta(t,e,n,i,r){for(var o=e;o<=n;o++){var a=t.def.nodes[o],s=a.matchedQueries[i.id];if(null!=s&&r.push(Aa(t,a,s)),1&a.flags&&a.element.template&&(a.element.template.nodeMatchedQueries&i.filterId)===i.filterId){var l=wr(t,o);if((a.childMatchedQueries&i.filterId)===i.filterId&&(Ta(t,o+1,o+a.childCount,i,r),o+=a.childCount),16777216&a.flags)for(var u=l.viewContainer._embeddedViews,c=0;c<u.length;c++){var h=u[c],d=Yr(h);d&&d===l&&Ta(h,0,h.def.nodes.length-1,i,r)}var p=l.template._projectedViews;if(p)for(c=0;c<p.length;c++){var f=p[c];Ta(f,0,f.def.nodes.length-1,i,r)}}(a.childMatchedQueries&i.filterId)!==i.filterId&&(o+=a.childCount)}return r}function Aa(t,e,n){if(null!=n)switch(n){case 1:return wr(t,e.nodeIndex).renderElement;case 0:return new Gn(wr(t,e.nodeIndex).renderElement);case 2:return wr(t,e.nodeIndex).template;case 3:return wr(t,e.nodeIndex).viewContainer;case 4:return xr(t,e.nodeIndex).instance}}function Da(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Pa(t,e,n){var i=to(t,e,n);i&&oo(t,n.ngContent.index,1,i,null,void 0)}function Ia(t,e){return Ma(128,t,new Array(e+1))}function Ra(t,e){return Ma(32,t,new Array(e))}function ja(t,e){for(var n=Object.keys(e),i=n.length,r=new Array(i),o=0;o<i;o++){var a=n[o];r[e[a]]=a}return Ma(64,t,r)}function Ma(t,e,n){for(var i=new Array(n.length),r=0;r<n.length;r++){var o=n[r];i[r]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:co(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Fa(t,e,n){for(var i=new Array(n.length-1),r=1;r<n.length;r++)i[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[r]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Na(t,e,n){var i,r=t.renderer;i=r.createText(n.text.prefix);var o=to(t,e,n);return o&&r.appendChild(o,i),{renderText:i}}function Ba(t,e){return(null!=t?t.toString():"")+e.suffix}function Va(t,e,n,i){for(var r=0,o=0,a=0,s=0,l=0,u=null,c=null,h=!1,d=!1,p=null,f=0;f<e.length;f++){var g=e[f];if(g.nodeIndex=f,g.parent=u,g.bindingIndex=r,g.outputIndex=o,g.renderParent=c,a|=g.flags,l|=g.matchedQueryIds,g.element){var m=g.element;m.publicProviders=u?u.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,h=!1,d=!1,g.element.template&&(l|=g.element.template.nodeMatchedQueries)}if(za(u,g,e.length),r+=g.bindings.length,o+=g.outputs.length,!c&&3&g.flags&&(p=g),20224&g.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var v=0!=(32768&g.flags);0==(8192&g.flags)||v?u.element.publicProviders[Ir(g.provider.token)]=g:(d||(d=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Ir(g.provider.token)]=g),v&&(u.element.componentProvider=g)}if(u?(u.childFlags|=g.flags,u.directChildFlags|=g.flags,u.childMatchedQueries|=g.matchedQueryIds,g.element&&g.element.template&&(u.childMatchedQueries|=g.element.template.nodeMatchedQueries)):s|=g.flags,g.childCount>0)u=g,La(g)||(c=g);else for(;u&&f===u.nodeIndex+u.childCount;){var y=u.parent;y&&(y.childFlags|=u.childFlags,y.childMatchedQueries|=u.childMatchedQueries),c=(u=y)&&La(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Dr,updateRenderer:i||Dr,handleEvent:function(t,n,i,r){return e[n].element.handleEvent(t,i,r)},bindingCount:r,outputCount:o,lastRenderRootNode:p}}function La(t){return 0!=(1&t.flags)&&null===t.element.name}function za(t,e,n){var i=e.element&&e.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var r=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=r&&e.nodeIndex+e.childCount>r)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Ha(t,e,n,i){var r=Ya(t.root,t.renderer,t,e,n);return Xa(r,t.component,i),qa(r),r}function Wa(t,e,n){var i=Ya(t,t.renderer,null,null,e);return Xa(i,n,n),qa(i),i}function Ua(t,e,n,i){var r,o=e.element.componentRendererType;return r=o?t.root.rendererFactory.createRenderer(i,o):t.root.renderer,Ya(t.root,r,t,e.element.componentProvider,n)}
1function Ya(t,e,n,i,r){var o=new Array(r.nodes.length),a=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(r.bindingCount),disposables:a,initIndex:-1}}function Xa(t,e,n){t.component=e,t.context=n}function qa(t){var e;Kr(t)&&(e=wr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,i=t.nodes,r=0;r<n.nodes.length;r++){var o=n.nodes[r];Er.setCurrentNode(t,r);var a=void 0;switch(201347067&o.flags){case 1:var s=bo(t,e,o),l=void 0;if(33554432&o.flags){var u=no(o.element.componentView);l=Er.createComponentView(t,o,u,s)}_o(t,l,o,s),a={renderElement:s,componentView:l,viewContainer:null,template:o.element.template?Yo(t,o):void 0},16777216&o.flags&&(a.viewContainer=zo(t,o,a));break;case 2:a=Na(t,e,o);break;case 512:case 1024:case 2048:case 256:(a=i[r])||4096&o.flags||(a={instance:da(t,o)});break;case 16:a={instance:pa(t,o)};break;case 16384:(a=i[r])||(a={instance:fa(t,o)}),32768&o.flags&&Xa(wr(t,o.parent.nodeIndex).componentView,a.instance,a.instance);break;case 32:case 64:case 128:a={value:void 0};break;case 67108864:case 134217728:a=new $n;break;case 8:Pa(t,e,o),a=void 0}i[r]=a}ns(t,es.CreateViewNodes),as(t,201326592,268435456,0)}function Ga(t){Qa(t),Er.updateDirectives(t,1),is(t,es.CheckNoChanges),Er.updateRenderer(t,1),ns(t,es.CheckNoChanges),t.state&=-97}function Ka(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,yr(t,0,256),Qa(t),Er.updateDirectives(t,0),is(t,es.CheckAndUpdate),as(t,67108864,536870912,0);var e=yr(t,256,512);xa(t,2097152|(e?1048576:0)),Er.updateRenderer(t,0),ns(t,es.CheckAndUpdate),as(t,134217728,536870912,0),xa(t,8388608|((e=yr(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,yr(t,768,1024)}function Za(t,e,n,r,o,a,s,l,u,c,h,d,p){return 0===n?function(t,e,n,i,r,o,a,s,l,u,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,i,r,o,a,s,l,u,c,h){var d=e.bindings.length,p=!1;return d>0&&xo(t,e,0,n)&&(p=!0),d>1&&xo(t,e,1,i)&&(p=!0),d>2&&xo(t,e,2,r)&&(p=!0),d>3&&xo(t,e,3,o)&&(p=!0),d>4&&xo(t,e,4,a)&&(p=!0),d>5&&xo(t,e,5,s)&&(p=!0),d>6&&xo(t,e,6,l)&&(p=!0),d>7&&xo(t,e,7,u)&&(p=!0),d>8&&xo(t,e,8,c)&&(p=!0),d>9&&xo(t,e,9,h)&&(p=!0),p}(t,e,n,i,r,o,a,s,l,u,c,h);case 2:return function(t,e,n,i,r,o,a,s,l,u,c,h){var d=!1,p=e.bindings,f=p.length;if(f>0&&Lr(t,e,0,n)&&(d=!0),f>1&&Lr(t,e,1,i)&&(d=!0),f>2&&Lr(t,e,2,r)&&(d=!0),f>3&&Lr(t,e,3,o)&&(d=!0),f>4&&Lr(t,e,4,a)&&(d=!0),f>5&&Lr(t,e,5,s)&&(d=!0),f>6&&Lr(t,e,6,l)&&(d=!0),f>7&&Lr(t,e,7,u)&&(d=!0),f>8&&Lr(t,e,8,c)&&(d=!0),f>9&&Lr(t,e,9,h)&&(d=!0),d){var g=e.text.prefix;f>0&&(g+=Ba(n,p[0])),f>1&&(g+=Ba(i,p[1])),f>2&&(g+=Ba(r,p[2])),f>3&&(g+=Ba(o,p[3])),f>4&&(g+=Ba(a,p[4])),f>5&&(g+=Ba(s,p[5])),f>6&&(g+=Ba(l,p[6])),f>7&&(g+=Ba(u,p[7])),f>8&&(g+=Ba(c,p[8])),f>9&&(g+=Ba(h,p[9]));var m=_r(t,e.nodeIndex).renderText;t.renderer.setValue(m,g)}return d}(t,e,n,i,r,o,a,s,l,u,c,h);case 16384:return function(t,e,n,i,r,o,a,s,l,u,c,h){var d=xr(t,e.nodeIndex),p=d.instance,f=!1,g=void 0,m=e.bindings.length;return m>0&&Vr(t,e,0,n)&&(f=!0,g=wa(t,d,e,0,n,g)),m>1&&Vr(t,e,1,i)&&(f=!0,g=wa(t,d,e,1,i,g)),m>2&&Vr(t,e,2,r)&&(f=!0,g=wa(t,d,e,2,r,g)),m>3&&Vr(t,e,3,o)&&(f=!0,g=wa(t,d,e,3,o,g)),m>4&&Vr(t,e,4,a)&&(f=!0,g=wa(t,d,e,4,a,g)),m>5&&Vr(t,e,5,s)&&(f=!0,g=wa(t,d,e,5,s,g)),m>6&&Vr(t,e,6,l)&&(f=!0,g=wa(t,d,e,6,l,g)),m>7&&Vr(t,e,7,u)&&(f=!0,g=wa(t,d,e,7,u,g)),m>8&&Vr(t,e,8,c)&&(f=!0,g=wa(t,d,e,8,c,g)),m>9&&Vr(t,e,9,h)&&(f=!0,g=wa(t,d,e,9,h,g)),g&&p.ngOnChanges(g),65536&e.flags&&br(t,256,e.nodeIndex)&&p.ngOnInit(),262144&e.flags&&p.ngDoCheck(),f}(t,e,n,i,r,o,a,s,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,i,r,o,a,s,l,u,c,h){var d=e.bindings,p=!1,f=d.length;if(f>0&&Lr(t,e,0,n)&&(p=!0),f>1&&Lr(t,e,1,i)&&(p=!0),f>2&&Lr(t,e,2,r)&&(p=!0),f>3&&Lr(t,e,3,o)&&(p=!0),f>4&&Lr(t,e,4,a)&&(p=!0),f>5&&Lr(t,e,5,s)&&(p=!0),f>6&&Lr(t,e,6,l)&&(p=!0),f>7&&Lr(t,e,7,u)&&(p=!0),f>8&&Lr(t,e,8,c)&&(p=!0),f>9&&Lr(t,e,9,h)&&(p=!0),p){var g=Cr(t,e.nodeIndex),m=void 0;switch(201347067&e.flags){case 32:m=new Array(d.length),f>0&&(m[0]=n),f>1&&(m[1]=i),f>2&&(m[2]=r),f>3&&(m[3]=o),f>4&&(m[4]=a),f>5&&(m[5]=s),f>6&&(m[6]=l),f>7&&(m[7]=u),f>8&&(m[8]=c),f>9&&(m[9]=h);break;case 64:m={},f>0&&(m[d[0].name]=n),f>1&&(m[d[1].name]=i),f>2&&(m[d[2].name]=r),f>3&&(m[d[3].name]=o),f>4&&(m[d[4].name]=a),f>5&&(m[d[5].name]=s),f>6&&(m[d[6].name]=l),f>7&&(m[d[7].name]=u),f>8&&(m[d[8].name]=c),f>9&&(m[d[9].name]=h);break;case 128:var v=n;switch(f){case 1:m=v.transform(n);break;case 2:m=v.transform(i);break;case 3:m=v.transform(i,r);break;case 4:m=v.transform(i,r,o);break;case 5:m=v.transform(i,r,o,a);break;case 6:m=v.transform(i,r,o,a,s);break;case 7:m=v.transform(i,r,o,a,s,l);break;case 8:m=v.transform(i,r,o,a,s,l,u);break;case 9:m=v.transform(i,r,o,a,s,l,u,c);break;case 10:m=v.transform(i,r,o,a,s,l,u,c,h)}}g.value=m}return p}(t,e,n,i,r,o,a,s,l,u,c,h);default:throw"unreachable"}}(t,e,r,o,a,s,l,u,c,h,d,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var i=!1,r=0;r<n.length;r++)xo(t,e,r,n[r])&&(i=!0);return i}(t,e,n);case 2:return function(t,e,n){for(var i=e.bindings,r=!1,o=0;o<n.length;o++)Lr(t,e,o,n[o])&&(r=!0);if(r){var a="";for(o=0;o<n.length;o++)a+=Ba(n[o],i[o]);a=e.text.prefix+a;var s=_r(t,e.nodeIndex).renderText;t.renderer.setValue(s,a)}return r}(t,e,n);case 16384:return function(t,e,n){for(var i=xr(t,e.nodeIndex),r=i.instance,o=!1,a=void 0,s=0;s<n.length;s++)Vr(t,e,s,n[s])&&(o=!0,a=wa(t,i,e,s,n[s],a));return a&&r.ngOnChanges(a),65536&e.flags&&br(t,256,e.nodeIndex)&&r.ngOnInit(),262144&e.flags&&r.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){for(var r=e.bindings,o=!1,a=0;a<n.length;a++)Lr(t,e,a,n[a])&&(o=!0);if(o){var s=Cr(t,e.nodeIndex),l=void 0;switch(201347067&e.flags){case 32:l=n;break;case 64:for(l={},a=0;a<n.length;a++)l[r[a].name]=n[a];break;case 128:var u=n[0],c=n.slice(1);l=u.transform.apply(u,Object(i.d)(c))}s.value=l}return o}(t,e,n);default:throw"unreachable"}}(t,e,r)}function Qa(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var i=e.nodes[n];if(4&i.flags){var r=wr(t,n).template._projectedViews;if(r)for(var o=0;o<r.length;o++){var a=r[o];a.state|=32,Wr(a,t)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function Ja(t,e,n,i,r,o,a,s,l,u,c,h,d){return 0===n?function(t,e,n,i,r,o,a,s,l,u,c,h){var d=e.bindings.length;d>0&&zr(t,e,0,n),d>1&&zr(t,e,1,i),d>2&&zr(t,e,2,r),d>3&&zr(t,e,3,o),d>4&&zr(t,e,4,a),d>5&&zr(t,e,5,s),d>6&&zr(t,e,6,l),d>7&&zr(t,e,7,u),d>8&&zr(t,e,8,c),d>9&&zr(t,e,9,h)}(t,e,i,r,o,a,s,l,u,c,h,d):function(t,e,n){for(var i=0;i<n.length;i++)zr(t,e,i,n[i])}(t,e,i),!1}function $a(t,e){if(Sr(t,e.nodeIndex).dirty)throw Or(Er.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function ts(t){if(!(128&t.state)){if(is(t,es.Destroy),ns(t,es.Destroy),xa(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(16&t.state){var e=Yr(t);if(e){var n=e.template._projectedViews;n&&(Mo(n,n.indexOf(t)),Er.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var i=t.def.nodes[n];1&i.flags?t.renderer.destroyNode(wr(t,n).renderElement):2&i.flags?t.renderer.destroyNode(_r(t,n).renderText):(67108864&i.flags||134217728&i.flags)&&Sr(t,n).destroy()}}(t),Kr(t)&&t.renderer.destroy(),t.state|=128}}var es=function(t){return t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy",t}({});function ns(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var i=0;i<n.nodes.length;i++){var r=n.nodes[i];33554432&r.flags?rs(wr(t,i).componentView,e):0==(33554432&r.childFlags)&&(i+=r.childCount)}}function is(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var i=0;i<n.nodes.length;i++){var r=n.nodes[i];if(16777216&r.flags)for(var o=wr(t,i).viewContainer._embeddedViews,a=0;a<o.length;a++)rs(o[a],e);
1else 0==(16777216&r.childFlags)&&(i+=r.childCount)}}function rs(t,e){var n=t.state;switch(e){case es.CheckNoChanges:0==(128&n)&&(12==(12&n)?Ga(t):64&n&&os(t,es.CheckNoChangesProjectedViews));break;case es.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Ga(t):64&n&&os(t,e));break;case es.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Ka(t):64&n&&os(t,es.CheckAndUpdateProjectedViews));break;case es.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Ka(t):64&n&&os(t,e));break;case es.Destroy:ts(t);break;case es.CreateViewNodes:qa(t)}}function os(t,e){is(t,e),ns(t,e)}function as(t,e,n,i){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var r=t.def.nodes.length,o=0;o<r;o++){var a=t.def.nodes[o];if(a.flags&e&&a.flags&n)switch(Er.setCurrentNode(t,a.nodeIndex),i){case 0:Oa(t,a);break;case 1:$a(t,a)}a.childFlags&e&&a.childFlags&n||(o+=a.childCount)}}var ss=!1;function ls(){if(!ss){ss=!0;var t=Dn()?{setCurrentNode:Ps,createRootView:cs,createEmbeddedView:ds,createComponentView:ps,createNgModuleRef:fs,overrideProvider:ys,overrideComponentView:bs,clearOverrides:_s,checkAndUpdateView:Ss,checkNoChangesView:ks,destroyView:Es,createDebugContext:function(t,e){return new zs(t,e)},handleEvent:Is,updateDirectives:Rs,updateRenderer:js}:{setCurrentNode:function(){},createRootView:us,createEmbeddedView:Ha,createComponentView:Ua,createNgModuleRef:Jo,overrideProvider:Dr,overrideComponentView:Dr,clearOverrides:Dr,checkAndUpdateView:Ka,checkNoChangesView:Ga,destroyView:ts,createDebugContext:function(t,e){return new zs(t,e)},handleEvent:function(t,e,n,i){return t.def.handleEvent(t,e,n,i)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?xs:Cs,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?xs:Cs,t)}};Er.setCurrentNode=t.setCurrentNode,Er.createRootView=t.createRootView,Er.createEmbeddedView=t.createEmbeddedView,Er.createComponentView=t.createComponentView,Er.createNgModuleRef=t.createNgModuleRef,Er.overrideProvider=t.overrideProvider,Er.overrideComponentView=t.overrideComponentView,Er.clearOverrides=t.clearOverrides,Er.checkAndUpdateView=t.checkAndUpdateView,Er.checkNoChangesView=t.checkNoChangesView,Er.destroyView=t.destroyView,Er.resolveDep=ba,Er.createDebugContext=t.createDebugContext,Er.handleEvent=t.handleEvent,Er.updateDirectives=t.updateDirectives,Er.updateRenderer=t.updateRenderer,Er.dirtyParentQueries=Ea}}function us(t,e,n,i,r,o){return Wa(hs(t,r,r.injector.get(Yn),e,n),i,o)}function cs(t,e,n,i,r,o){var a=r.injector.get(Yn),s=hs(t,r,new Ys(a),e,n),l=ws(i);return Ws(Ds.create,Wa,null,[s,l,o])}function hs(t,e,n,i,r){var o=e.injector.get(vr),a=e.injector.get(qt);return{ngModule:e,injector:t,projectableNodes:i,selectorOrNode:r,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:a}}function ds(t,e,n,i){var r=ws(n);return Ws(Ds.create,Ha,null,[t,e,r,i])}function ps(t,e,n,i){return n=vs.get(e.element.componentProvider.provider.token)||ws(n),Ws(Ds.create,Ua,null,[t,e,n,i])}function fs(t,e,n,i){return Jo(t,e,n,function(t){var e=function(t){var e=!1,n=!1;return 0===gs.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var i=gs.get(t.token);3840&t.flags&&i&&(e=!0,n=n||i.deprecatedBehavior)}),t.modules.forEach(function(t){ms.forEach(function(i,r){r.ngInjectableDef.providedIn===t&&(e=!0,n=n||i.deprecatedBehavior)})}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasDeprecatedOverrides;return e.hasOverrides?(function(t){for(var e=0;e<t.providers.length;e++){var i=t.providers[e];n&&(i.flags|=4096);var r=gs.get(i.token);r&&(i.flags=-3841&i.flags|r.flags,i.deps=$r(r.deps),i.value=r.value)}if(ms.size>0){var o=new Set(t.modules);ms.forEach(function(e,i){if(o.has(i.ngInjectableDef.providedIn)){var r={token:i,flags:e.flags|(n?4096:0),deps:$r(e.deps),value:e.value,index:t.providers.length};t.providers.push(r),t.providersByKey[Ir(i)]=r}})}}(t=t.factory(function(){return Dr})),t):t}(i))}var gs=new Map,ms=new Map,vs=new Map;function ys(t){gs.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&ms.set(t.token,t)}function bs(t,e){var n=no(no(Bo(e)).nodes[0].element.componentView);vs.set(t,n)}function _s(){gs.clear(),ms.clear(),vs.clear()}function ws(t){if(0===gs.size)return t;var e=function(t){for(var e=[],n=null,i=0;i<t.nodes.length;
1i++){var r=t.nodes[i];1&r.flags&&(n=r),n&&3840&r.flags&&gs.has(r.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Dr});for(var n=0;n<e.length;n++)i(t,e[n]);return t;function i(t,e){for(var n=e+1;n<t.nodes.length;n++){var i=t.nodes[n];if(1&i.flags)return;if(3840&i.flags){var r=i.provider,o=gs.get(r.token);o&&(i.flags=-3841&i.flags|o.flags,r.deps=$r(o.deps),r.value=o.value)}}}}function xs(t,e,n,i,r,o,a,s,l,u,c,h,d){var p=t.def.nodes[e];return Za(t,p,n,i,r,o,a,s,l,u,c,h,d),224&p.flags?Cr(t,e).value:void 0}function Cs(t,e,n,i,r,o,a,s,l,u,c,h,d){var p=t.def.nodes[e];return Ja(t,p,n,i,r,o,a,s,l,u,c,h,d),224&p.flags?Cr(t,e).value:void 0}function Ss(t){return Ws(Ds.detectChanges,Ka,null,[t])}function ks(t){return Ws(Ds.checkNoChanges,Ga,null,[t])}function Es(t){return Ws(Ds.destroy,ts,null,[t])}var Os,Ts,As,Ds=function(t){return t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent",t}({});function Ps(t,e){Ts=t,As=e}function Is(t,e,n,i){return Ps(t,e),Ws(Ds.handleEvent,t.def.handleEvent,null,[t,e,n,i])}function Rs(t,e){if(128&t.state)throw Ar(Ds[Os]);return Ps(t,Vs(t,0)),t.def.updateDirectives(function(t,n,i){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Ms(t,a,i,r):Fs(t,a,i,r),16384&a.flags&&Ps(t,Vs(t,n)),224&a.flags?Cr(t,a.nodeIndex).value:void 0},t)}function js(t,e){if(128&t.state)throw Ar(Ds[Os]);return Ps(t,Ls(t,0)),t.def.updateRenderer(function(t,n,i){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];var a=t.def.nodes[n];return 0===e?Ms(t,a,i,r):Fs(t,a,i,r),3&a.flags&&Ps(t,Ls(t,n)),224&a.flags?Cr(t,a.nodeIndex).value:void 0},t)}function Ms(t,e,n,r){if(Za.apply(void 0,Object(i.d)([t,e,n],r))){var o=1===n?r[0]:r;if(16384&e.flags){for(var a={},s=0;s<e.bindings.length;s++){var l=e.bindings[s],u=o[s];8&l.flags&&(a[(p=l.nonMinifiedName,"ng-reflect-"+(p=p.replace(/[$@]/g,"_").replace(Ns,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})))]=Bs(u))}var c=e.parent,h=wr(t,c.nodeIndex).renderElement;if(c.element.name)for(var d in a)null!=(u=a[d])?t.renderer.setAttribute(h,d,u):t.renderer.removeAttribute(h,d);else t.renderer.setValue(h,"bindings="+JSON.stringify(a,null,2))}}var p}function Fs(t,e,n,r){Ja.apply(void 0,Object(i.d)([t,e,n],r))}var Ns=/([A-Z])/g;function Bs(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Vs(t,e){for(var n=e;n<t.def.nodes.length;n++){var i=t.def.nodes[n];if(16384&i.flags&&i.bindings&&i.bindings.length)return n}return null}function Ls(t,e){for(var n=e;n<t.def.nodes.length;n++){var i=t.def.nodes[n];if(3&i.flags&&i.bindings&&i.bindings.length)return n}return null}var zs=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,i=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&i;)n=Xr(i),i=i.parent;this.elDef=n,this.elView=i}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return wr(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return qo(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Hs(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Hs(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!Kr(t);)t=t.parent;return t.parent?wr(t.parent,Xr(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?qr(this.view,this.nodeDef):qr(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(e=this.view.def,n=this.nodeDef.nodeIndex):(e=this.elView.def,n=this.elDef.nodeIndex);var a=function(t,e){for(var n=-1,i=0;i<=e;i++)3&t.nodes[i].flags&&n++;return n}
1(e,n),s=-1;e.factory(function(){return++s===a?(e=t.error).bind.apply(e,Object(i.d)([t],r)):Dr;var e}),s<a&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,Object(i.d)(r)))},t}();function Hs(t,e,n){for(var i in e.references)n[i]=Aa(t,e,e.references[i])}function Ws(t,e,n,i){var r=Os,o=Ts,a=As;try{Os=t;var s=e.apply(n,i);return Ts=o,As=a,Os=r,s}catch(t){if(Ut(t)||!Ts)throw t;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Tr(t,e),t}(t,Us())}}function Us(){return Ts?new zs(Ts,As):null}var Ys=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Xs(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Xs=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){!function(t){fi.delete(t.nativeNode)}(gi(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),i=Us();if(i){var r=new ci(n,null,i);r.name=t,mi(r)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Us();return n&&mi(new ui(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Us();return n&&mi(new ui(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=gi(t),i=gi(e);n&&i&&n instanceof ci&&n.addChild(i),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var i=gi(t),r=gi(e),o=gi(n);i&&r&&i instanceof ci&&i.insertBefore(o,r),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=gi(t),i=gi(e);n&&i&&n instanceof ci&&n.removeChild(i),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Us();return n&&mi(new ci(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,i){var r=gi(t);r&&r instanceof ci&&(r.attributes[i?i+":"+e:e]=n),this.delegate.setAttribute(t,e,n,i)},t.prototype.removeAttribute=function(t,e,n){var i=gi(t);i&&i instanceof ci&&(i.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=gi(t);n&&n instanceof ci&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=gi(t);n&&n instanceof ci&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,i){var r=gi(t);r&&r instanceof ci&&(r.styles[e]=n),this.delegate.setStyle(t,e,n,i)},t.prototype.removeStyle=function(t,e,n){var i=gi(t);i&&i instanceof ci&&(i.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var i=gi(t);i&&i instanceof ci&&(i.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var i=gi(t);i&&i.listeners.push(new function(t,e){this.name=t,this.callback=e}(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}();function qs(t){return ls(),Er.overrideProvider(t)}function Gs(t,e){return ls(),Er.overrideComponentView(t,e)}function Ks(){return ls(),Er.clearOverrides()}function Zs(t,e,n){return new Qs(t,e,n)}var Qs=function(t){function e(e,n,i){var r=t.call(this)||this;return r.moduleType=e,r._bootstrapComponents=n,r._ngModuleDefFactory=i,r}return Object(i.b)(e,t),e.prototype.create=function(t){ls();var e=no(this._ngModuleDefFactory);return Er.createNgModuleRef(this.moduleType,t||dt.NULL,this._bootstrapComponents,e)},e}(tn);function Js(t,e,n){t!=e&&il(n)}function $s(t,e,n){t==e&&il(n)}function tl(t,e,n){t>=e&&il(n)}function el(t,e){null!=t&&il(e)}function nl(t,e){null==t&&il(e)}function il(t){throw new Error("ASSERTION ERROR: "+t)}function rl(t,e,n){t.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentInit),t.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,t.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,t.afterContentChecked))}function ol(t,e,n){t.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewInit),t.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,t.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,t.afterViewChecked))}function al(t,e,n){null!=t.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,t.onDestroy)}function sl(t,e,n){1===t.lifecycleStage&&(ll(t.directives,e.initHooks,e.checkHooks,n),t.lifecycleStage=2)}function ll(t,e,n,i){var r=i?e:n;r&&ul(t,r)}function ul(t,e){for(var n=0;n<e.length;n+=2)e[n+1].call(t[e[n]])}"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),"undefined"!=typeof global&&(global.ngDevMode=!0));var cl="ngProjectAs";function hl(t,e){nl(t,"should be called with a node"),Js(t.type,e,"should be a "+pl(e))}function dl(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];nl(t,"should be called with a node"),Js(e.some(function(e){return t.type===e}),!0,"Should be one of "+e.map(pl).join(", "))}function pl(t){return 1==t?"Projection":0==t?"Container":2==t?"View":3==t?"Element":"<unknown>"}var fl=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function gl(t){return!!t.listen}var ml={createRenderer:function(t,e){return document}};function vl(t,e){return!(t!=t&&e!=e)&&t!==e}function yl(t){return"function"==typeof t?t.name||t:"string"==typeof t?t:null==t?"":""+t}function bl(t,e){for(var n=t;n&&n!==e;){var i=n.pNextOrParent;if(i){for(;1!==i.type;){if(o=xl(i))return o;i=i.pNextOrParent}n=i}else{for(var r=n.next;r;){var o;if(o=xl(r))return o;r=r.next}var a=n.parent;if(n=null,a){var s=a.type;0!==s&&2!==s||(n=a)}}}return null}function _l(t){var e=t.pNextOrParent;return e?1===e.type?null:e:t.next}function wl(t,e){for(var n=t,i=_l(n);n&&!i;){if((n=n.pNextOrParent||n.parent)===e)return null;i=n&&_l(n)}return i}function xl(t){for(var e=t;e;){var n=null;if(3===e.type)return e.native;if(0===e.type){var i=e.dynamicLContainerNode?e.dynamicLContainerNode.data:e.data;n=i.views.length?i.views[0].child:null}else n=1===e.type?e.data.head:e.child;e=null===n?wl(e,t):n}return null}function Cl(t,e){return gl(e)?e.createText(yl(t)):e.createTextNode(yl(t))}function Sl(t,e,n,i){ngDevMode&&hl(t,0),ngDevMode&&hl(e,2);var r=t.data.renderParent,o=r?r.native:null,a=e.child;if(o)for(;a;){var s=null,l=t.view.renderer;if(3===a.type)n?(a.native||(a.native=Cl("",l)),gl(l)?l.insertBefore(o,a.native,i):o.insertBefore(a.native,i,!0)):gl(l)?l.removeChild(o,a.native):o.removeChild(a.native),s=a.next;else if(0===a.type){var u=a.data;u.renderParent=r,s=u.views.length?u.views[0].child:null}else s=1===a.type?a.data.head:a.child;a=null===s?wl(a,e):s}}function kl(t,e,n){var i=t.data.views;if(n>0&&Ol(i[n-1],e),n<i.length?(Ol(e,i[n]),i.splice(n,0,e)):i.push(e),null!==t.data.renderParent){var r=bl(e,t);if(!r){var o=t.native;void 0===o&&(o=t.native=bl(t,null)),r=o}Sl(t,e,!0,r)}return e}function El(t,e){var n=t.data.views,i=n[e];return e>0&&Ol(n[e-1],i.next),n.splice(e,1),i.next=null,function(t){for(var e=t;e;){var n=null;
1if(e.views&&e.views.length?n=e.views[0].data:e.child?n=e.child:e.next&&(Al(e),n=e.next),null==n){for(;e&&!e.next&&e!==t;)Al(e),e=Tl(e,t);Al(e||t),n=e&&e.next}e=n}}(i.data),Sl(t,i,!1),t.data.queries&&t.data.queries.removeView(e),i}function Ol(t,e){t.next=e,t.data.next=e?e.data:null}function Tl(t,e){var n;return(n=t.node)&&2===n.type?n.parent.data:t.parent===e?null:t.parent}function Al(t){!function(t){var e=t.cleanup;if(null!=e){for(var n=0;n<e.length-1;n+=2)"string"==typeof e[n]?(e[n+1].removeEventListener(e[n],e[n+2],e[n+3]),n+=2):e[n].call(e[n+1]);t.cleanup=null}}(t),function(t){var e,n=t.tView;null!=n&&null!=(e=n.destroyHooks)&&ul(t.directives,e)}(t),function(t){var e=t.tView&&t.tView.pipeDestroyHooks;e&&ul(t.data,e)}(t)}function Dl(t,e){return 3===t.type&&(t.view!==e||null===t.data)}function Pl(t,e,n){if(null!==e&&Dl(t,n)){var i=n.renderer;return gl(i)?i.appendChild(t.native,e):t.native.appendChild(e),!0}return!1}function Il(t,e,n){if(0!==t.type)Pl(e,t.native,n);else{var i=t.data;i.renderParent=e;for(var r=i.views,o=0;o<r.length;o++)Sl(t,r[o],!0,null)}t.dynamicLContainerNode&&(t.dynamicLContainerNode.data.renderParent=e)}function Rl(t,e){ngDevMode&&nl(e[0],"Selector should have a tag name");for(var n,i,r,o,a,s=4,l=t.attrs,u=!1,c=0;c<e.length;c++){var h=e[c];if("number"!=typeof h){if(!u)if(4&s){if(s=2|1&s,""!==h&&h!==t.tagName){if(jl(s))return!1;u=!0}}else{var d=Ml(8&s?"class":h,l);if(-1===d){if(jl(s))return!1;u=!0;continue}var p=8&s?h:e[++c];if(""!==p){var f=l[d+1];if(8&s&&(r=(n=f).length,a=(o=n.indexOf(i=p))+i.length,-1===o||o>0&&" "!==n[o-1]||a<r&&" "!==n[a])||2&s&&p!==f){if(jl(s))return!1;u=!0}}}}else{if(!u&&!jl(s)&&!jl(h))return!1;if(u&&jl(h))continue;u=!1,s=h|1&s}}return jl(s)||u}function jl(t){return 0==(1&t)}function Ml(t,e){if(null===e)return-1;for(var n=0;n<e.length;n+=2)if(e[n]===t)return n;return-1}function Fl(t,e){for(var n=0;n<e.length;n++)if(Rl(t,e[n]))return!0;return!1}function Nl(t,e,n){for(var i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(cl);if(0==(1&n))return e[n+1]}return null}(t),r=0;r<e.length;r++)if(i===n[r]||null===i&&Fl(t,e[r]))return r+1;return 0}function Bl(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Vl(t,e,n,i){if(e){var r="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+n+"'. Current value: '"+i+"'.";throw t&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),new Error(r)}}var Ll,zl,Hl,Wl,Ul,Yl="__ngHostLNode__",Xl=Promise.resolve(null),ql=[0,0],Gl="__CIRCULAR__";function Kl(){return Hl}var Zl,Ql,Jl,$l,tu,eu=null;function nu(){return Ql}var iu=!1,ru=!0;function ou(t,e){var n=eu;return Jl=t&&t.data,$l=t&&t.directives,Ul=t&&t.tView.data,Ql=t&&1==(1&t.flags),ru=t&&t.tView.firstTemplatePass,tu=t&&t.cleanup,Ll=t&&t.renderer,t&&t.bindingIndex<0&&(t.bindingIndex=t.bindingStartIndex),null!=e&&(Hl=e,Wl=!0),eu=t,Zl=t&&t.queries,n}function au(t){iu||ll($l,eu.tView.viewHooks,eu.tView.viewCheckHooks,Ql),eu.flags&=-6,eu.lifecycleStage=1,eu.bindingIndex=-1,ou(t,null)}function su(){uu();var t=eu.tView;t.firstTemplatePass=ru=!1,lu(t.hostBindings),function(t){if(null!=t)for(var e=0;e<t.length;e+=2)Yu(t[e],t[e+1])}(t.components)}function lu(t){if(null!=t)for(var e=eu.tView.directives,n=0;n<t.length;n+=2){var i=t[n],r=e[i];r.hostBindings&&r.hostBindings(i,t[n+1])}}function uu(){if(!iu){var t=eu.tView;sl(eu,t,Ql),ll($l,t.contentHooks,t.contentCheckHooks,Ql)}}function cu(t,e,n,i,r,o){return{parent:eu,id:t,flags:9|o,node:null,data:[],directives:null,tView:n,cleanup:null,renderer:e,child:null,tail:null,next:null,bindingStartIndex:-1,bindingIndex:-1,template:i,context:r,dynamicViewCount:0,lifecycleStage:1,queries:null,injector:eu&&eu.injector}}function hu(t,e,n,i,r,o){return{type:t,native:i,view:e,parent:n,child:null,next:null,nodeInjector:n?n.nodeInjector:null,data:r,queries:o,tNode:null,pNextOrParent:null,dynamicLContainerNode:null}}function du(t,e,n,i){var r=Wl?Hl:Hl&&Hl.parent,o=(Wl?Zl:Hl&&Hl.queries)||r&&r.queries&&r.queries.child(),a=null!=i,s=hu(e,eu,r,n,a?i:null,o);return 2==(2&e)&&a&&(ngDevMode&&el(i.node,"LView.node should not have been initialized"),i.node=s),null!=t&&(ngDevMode&&Oc(t),Jl[t]=s,t>=Ul.length?Ul[t]=null:s.tNode=Ul[t],Wl?(Zl=null,Hl.view!==eu&&2!==Hl.type||(ngDevMode&&el(Hl.child,"previousOrParentNode's child should not have been set."),Hl.child=s)):Hl&&(ngDevMode&&el(Hl.next,"previousOrParentNode's next property should not have been set "+t+"."),Hl.next=s,Hl.dynamicLContainerNode&&(Hl.dynamicLContainerNode.next=s))),Hl=s,Wl=!0,s}function pu(t,e,n,i,r,o){var a,s=Wl,l=Hl;try{Wl=!0,Hl=null;var u=2;null==t&&(t=du(null,2,null,cu(-1,i,_u(e,r||null,o||null),e,n,2)),u=1),a=ou(t.data,t),e(u,n),su(),Hu()}finally{au(a),Wl=s,Hl=l}return t}function fu(t){return 1&t.flags?3:2}function gu(t,e,n,i){ngDevMode&&Js(eu.bindingStartIndex,-1,"elements should be created before any bindings");var r=Ll.createElement(e),o=du(t,3,r,null);return n&&xu(r,n),Pl(o.parent,r,eu),mu(t,e,n,i,null),r}function mu(t,e,n,i,r){var o=Hl;ru?(ngDevMode&&Ec(t-1),o.tNode=Ul[t]=Tu(e,n||null,r),function(t,e,n){var i=n?{"":-1}:null,r=e.currentMatches=function(t){var e=eu.tView.directiveRegistry,n=null;if(e)for(var i=0;i<e.length;i++){var r=e[i];Fl(t,r.selectors)&&(r.template&&(4096&t.flags&&Bl(t),t.flags=4096),r.diPublic&&r.diPublic(r),(n||(n=[])).push(r,null))}return n}(t);if(r)for(var o=0;o<r.length;o+=2){var a=r[o],s=o+1;vu(a,s,r,e),bu(r[s],a,i)}i&&function(t,e,n){if(e)for(var i=t.localNames=[],r=0;r<e.length;r+=2){var o=n[e[r+1]];if(null==o)throw new Error("Export of name '"+e[r+1]+"' not found!");i.push(e[r],o)}}(t,n,i)}(o.tNode,eu.tView,i||null)):function(){var t=Hl.tNode,e=4095&t.flags;if(e>0)for(var n=t.flags>>13,i=n+e,r=eu.tView.directives,o=n;o<i;o++){var a=r[o];Fu(o,a.factory(),a)}}(),function(){var t=Hl.tNode.localNames;if(t)for(var e=0;e<t.length;e+=2){var n=t[e+1];Jl.push(-1===n?Hl.native:$l[n])}}()}function vu(t,e,n,i){if(null===n[e]){n[e]=Gl;var r=t.factory();return(i.directives||(i.directives=[])).push(t),Fu(n[e]=i.directives.length-1,r,t)}return n[e]===Gl&&function(e){throw new Error("Cannot instantiate cyclic dependency! "+t.type)}(),null}function yu(t,e,n){t&&null!=t.changeDetectorRef&&t.changeDetectorRef._setComponentContext(n,e)}function bu(t,e,n){n&&(e.exportAs&&(n[e.exportAs]=t),e.template&&(n[""]=t))}function _u(t,e,n){return t.ngPrivateData||(t.ngPrivateData=wu(e,n))}function wu(t,e){return{data:[],directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,hostBindings:null,components:null,directiveRegistry:"function"==typeof t?t():t,pipeRegistry:"function"==typeof e?e():e,currentMatches:null}}function xu(t,e){ngDevMode&&Js(e.length%2,0,"each attribute should have a key and a value");for(var n=gl(Ll),i=0;i<e.length;i+=2){var r=e[i];if(r!==cl){var o=e[i+1];n?Ll.setAttribute(t,r,o):t.setAttribute(r,o)}}}function Cu(t,e){ngDevMode&&Ec(-1),zl=t;var n=t.createRenderer(null,null),i="string"==typeof e?gl(n)?n.selectRootElement(e):n.querySelector(e):e;if(ngDevMode&&!i)throw new Error("Renderer: "+("string"==typeof e?"Host node with selector not found:":"Host node is required:")+" ["+yl(e)+"]");return i}function Su(t,e,n){void 0===n&&(n=!1),ngDevMode&&Sc();var i=Hl,r=i.native,o=tu||(tu=eu.cleanup=[]);if(gl(Ll)){var a=function(t,e){return function(n){return Qu(t),e(n)}}(eu,e),s=Ll.listen(r,t,a);o.push(s,null)}else a=function(t,e){return function(n){Qu(t),!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}(eu,e),r.addEventListener(t,a,n),o.push(t,r,a,n);var l=i.tNode;void 0===l.outputs&&(l.outputs=Au(i.tNode.flags,1));var u,c=l.outputs;c&&(u=c[t])&&function(t,e){for(var n=0;n<t.length;n+=2){ngDevMode&&Ec(t[n],$l);var i=$l[t[n]][t[n+1]].subscribe(e);tu.push(i.unsubscribe,i)}}(u,e)}function ku(){Wl?Wl=!1:(ngDevMode&&kc(),Hl=Hl.parent),ngDevMode&&hl(Hl,3);var t=Hl.queries;t&&t.addNode(Hl),function(t,e){var n=e.tView;if(!0===n.firstTemplatePass)for(var i=t>>13,r=i+(4095&t),o=i;o<r;o++){var a=n.directives[o];rl(a,n,o),ol(a,n,o),al(a,n,o)}}(Hl.tNode.flags,eu)}function Eu(t,e,n,i){if(n!==nc){var r=Jl[t];if(null==n)gl(Ll)?Ll.removeAttribute(r.native,e):r.native.removeAttribute(e);else{var o=null==i?yl(n):i(n);gl(Ll)?Ll.setAttribute(r.native,e,o):r.native.setAttribute(e,o)}}}function Ou(t,e,n,i){if(n!==nc){var r=Jl[t],o=r.tNode;o&&void 0===o.inputs&&(o.inputs=Au(r.tNode.flags,0));var a,s=o&&o.inputs;if(s&&(a=s[e]))!function(t,e){for(var n=0;n<t.length;n+=2)ngDevMode&&Ec(t[n],$l),$l[t[n]][t[n+1]]=e}(a,n),function(t){!t.data||2&t.data.flags||(t.data.flags|=4)}(r);else{n=null!=i?i(n):n;var l=r.native;gl(Ll)?Ll.setProperty(l,e,n):l.setProperty?l.setProperty(e,n):l[e]=n}}}function Tu(t,e,n){return{flags:0,tagName:t,attrs:e,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,data:n}}function Au(t,e){var n=4095&t,i=null;if(n>0)for(var r=t>>13,o=r+n,a=0===e,s=eu.tView.directives,l=r;l<o;l++){var u=s[l],c=a?u.inputs:u.outputs;for(var h in c)if(c.hasOwnProperty(h)){var d=c[h];(i=i||{}).hasOwnProperty(h)?i[h].push(l,d):i[h]=[l,d]}}return i}function Du(t,e,n){if(n!==nc){var i=Jl[t];n?gl(Ll)?Ll.addClass(i.native,e):i.native.classList.add(e):gl(Ll)?Ll.removeClass(i.native,e):i.native.classList.remove(e)}}function Pu(t,e){if(e!==nc){var n=Jl[t];gl(Ll)?Ll.setProperty(n.native,"className",e):n.native.className=yl(e)}}function Iu(t,e,n,i){if(n!==nc){var r=Jl[t];if(null==n)gl(Ll)?Ll.removeStyle(r.native,e,fl.DashCase):r.native.style.removeProperty(e);else{var o="function"==typeof i?i(n):yl(n);"string"==typeof i&&(o+=i),gl(Ll)?Ll.setStyle(r.native,e,o,fl.DashCase):r.native.style.setProperty(e,o)}}}function Ru(t,e){if(e!==nc){var n=Jl[t];if(gl(Ll))Ll.setProperty(n.native,"style",e);else for(var i=n.native.style,r=0,o=Object.keys(e);r<o.length;r++){var a=o[r],s=e[a];null==s?i.removeProperty(a):i.setProperty(a,s)}}}function ju(t,e){ngDevMode&&Js(eu.bindingStartIndex,-1,"text nodes should be created before bindings");var n=null!=e?Cl(e,Ll):null,i=du(t,3,n);Wl=!1,Pl(i.parent,n,eu)}function Mu(t,e){ngDevMode&&Ec(t);var n=Jl[t];ngDevMode&&nl(n,"existing node"),n.native?e!==nc&&(gl(Ll)?Ll.setValue(n.native,yl(e)):n.native.textContent=yl(e)):(n.native=Cl(e,Ll),function(t,e){var n=t.parent;if(Dl(n,e)){var i=bl(t,null),r=e.renderer;gl(r)?r.insertBefore(n.native,t.native,i):n.native.insertBefore(t.native,i,!1)}}(n,eu))}function Fu(t,e,n){var i=Nu(t,e,n);
1ngDevMode&&nl(Hl.tNode,"previousOrParentNode.tNode");var r,o=Hl.tNode;return n.template&&function(t,e,n){var i,r=_u(n.template,n.directiveDefs,n.pipeDefs),o=Zu(eu,cu(-1,zl.createRenderer(Hl.native,n.rendererType),r,null,null,n.onPush?4:2));Hl.data=o,o.node=Hl,yu(Hl.nodeInjector,e,o),ru&&(i=t,ru&&(eu.tView.components||(eu.tView.components=[])).push(i,Jl.length-1))}(t,e,n),ru&&(function(t,e,n,i){ngDevMode&&Js(i.firstTemplatePass,!0,"Should only be called on first template pass"),e&&(i.initHooks||(i.initHooks=[])).push(t,e),n&&((i.initHooks||(i.initHooks=[])).push(t,n),(i.checkHooks||(i.checkHooks=[])).push(t,n))}(t,n.onInit,n.doCheck,eu.tView),n.hostBindings&&(r=t,ngDevMode&&Js(ru,!0,"Should only be called in first template pass."),(eu.tView.hostBindings||(eu.tView.hostBindings=[])).push(r,Jl.length-1))),o&&o.attrs&&function(t,e,i,r){var o=r.initialInputs;(void 0===o||t>=o.length)&&(o=function(t,e,n){var i=n.initialInputs||(n.initialInputs=[]);i[t]=null;for(var r=n.attrs,o=0;o<r.length;o+=2){var a=e[r[o]];void 0!==a&&(i[t]||(i[t]=[])).push(a,r[o+1])}return i}(t,n.inputs,r));var a=o[t];if(a)for(var s=0;s<a.length;s+=2)e[a[s]]=a[s+1]}(t,i,0,o),i}function Nu(t,e,n){if(ngDevMode&&Js(eu.bindingStartIndex,-1,"directives should be created before any bindings"),ngDevMode&&Sc(),Object.defineProperty(e,Yl,{enumerable:!1,value:Hl}),null==$l&&(eu.directives=$l=[]),ngDevMode&&Oc(t,$l),$l[t]=e,ru){var i=Hl.tNode.flags;0==(4095&i)?Hl.tNode.flags=t<<13|4096&i|1:(ngDevMode&&$s(4095&i,4095,"Reached the max number of directives"),Hl.tNode.flags++)}else{var r=n.diPublic;r&&r(n)}return null!=n.attributes&&3==Hl.type&&xu(Hl.native,n.attributes),e}function Bu(t,e,n){return ngDevMode&&nl(t,"containers should have a parent"),{views:[],nextIndex:0,renderParent:Dl(t,e)?t:null,template:null==n?null:n,next:null,parent:e,dynamicViewCount:0,queries:null}}function Vu(t,e,n,i,r){ngDevMode&&Js(eu.bindingStartIndex,-1,"container nodes should be created before any bindings");var o=Bu(Wl?Hl:Hl.parent,eu,e),a=du(t,0,void 0,o);Zu(eu,a.data),mu(t,n||null,i,r,[]),Wl=!1,ngDevMode&&hl(Hl,0);var s=a.queries;s&&(s.addNode(a),o.queries=s.container())}function Lu(t){ngDevMode&&Ec(t),Hl=Jl[t],ngDevMode&&hl(Hl,0),Wl=!0,Hl.data.nextIndex=0,ngDevMode&&void 0!==Hl.native&&il("the container's native element should not have been set yet."),iu||sl(eu,eu.tView,Ql)}function zu(){Wl?Wl=!1:(ngDevMode&&hl(Hl,2),ngDevMode&&kc(),Hl=Hl.parent),ngDevMode&&hl(Hl,0);var t=Hl;t.native=void 0,ngDevMode&&hl(t,0);for(var e=t.data.nextIndex;e<t.data.views.length;)El(t,e)}function Hu(){for(var t=eu.child;null!==t;t=t.next)if(0!==t.dynamicViewCount&&t.views)for(var e=t,n=0;n<e.views.length;n++){var i=e.views[n];pu(i,i.data.template,i.data.context,Ll)}}function Wu(t){var e=Wl?Hl:Hl.parent;ngDevMode&&hl(e,0);var n=e.data,i=function(t,e,i){for(var r=t.data.views,o=n.nextIndex;o<r.length;o++){var a=r[o].data.id;if(a===i)return r[o];if(!(a<i))break;El(t,o)}return null}(e,0,t);if(i)Hl=i,ngDevMode&&hl(Hl,2),Wl=!0,ou(i.data,i);else{var r=cu(t,Ll,function(t,e){ngDevMode&&hl(e,0);var n=e.tNode.data;if(t>=n.length||null==n[t]){var i=eu.tView;n[t]=wu(i.directiveRegistry,i.pipeRegistry)}return n[t]}(t,e),null,null,2);n.queries&&(r.queries=n.queries.enterView(n.nextIndex)),ou(r,i=du(null,2,null,r))}return fu(i.data)}function Uu(){su(),Wl=!1;var t=Hl=eu.node,e=Hl.parent;if(e){ngDevMode&&hl(t,2),ngDevMode&&hl(e,0);var n=e.data;Ql&&(function(t,e){if(null!=t)for(var n=e.child;n;){if(1===n.type)for(var i=n.data.head,r=n.data.tail;i;)i.dynamicLContainerNode&&(i.dynamicLContainerNode.data.renderParent=t),i=i===r?null:i.pNextOrParent;n=n.next}}(n.renderParent,t),kl(e,t,n.nextIndex)),n.nextIndex++}au(eu.parent),ngDevMode&&Js(Wl,!1,"isParent"),ngDevMode&&hl(Hl,2)}function Yu(t,e){ngDevMode&&Ec(e);var n=Jl[e];ngDevMode&&hl(n,3),ngDevMode&&nl(n.data,"Component's host node should have an LView attached.");var i=n.data;8==(8&i.flags)&&6&i.flags&&(ngDevMode&&Ec(t,$l),tc(i,n,eu.tView.directives[t],Cc($l[t])))}function Xu(t,e,n){for(var i=e?e.length+1:1,r=new Array(i),o=0;o<i;o++)r[o]=[];for(var a=Ku(eu).child;null!==a;)e&&a.tNode?r[Nl(a.tNode,e,n)].push(a):r[0].push(a),a=a.next;ngDevMode&&Oc(t),Jl[t]=r}function qu(t,e,n){if(ngDevMode&&Js(!!e,!!n,"appendedFirst can be null if and only if appendedLast is also null"),n){var i=t.data;i.tail?i.tail.pNextOrParent=e:i.head=e,i.tail=n,n.pNextOrParent=t}}function Gu(t,e,n,i){void 0===n&&(n=0);
1var r=du(t,1,null,{head:null,tail:null});null==r.tNode&&(r.tNode=Tu(null,i||null,null)),Wl=!1;for(var o=r.parent,a=Ku(eu).data.data[e][n],s=0;s<a.length;s++)if(1===(u=a[s]).type){var l=u.data;qu(r,l.head,l.tail)}else qu(r,u,u);if(Dl(o,eu)){ngDevMode&&hl(o,3);for(var u=r.data.head,c=r.data.tail;u;)Il(u,o,eu),u=u===c?null:u.pNextOrParent}}function Ku(t){for(var e=t.node;2===e.type;)ngDevMode&&nl(t.parent,"lView.parent"),e=(t=t.parent).node;return ngDevMode&&hl(e,3),ngDevMode&&nl(e.data,"node.data"),e}function Zu(t,e){return t.tail?t.tail.next=e:t.child=e,t.tail=e,e}function Qu(t){for(var e=t;null!=e.parent;)e.flags|=4,e=e.parent;var n,i;e.flags|=4,ngDevMode&&nl(e.context,"rootContext"),(n=e.context).clean==Xl&&(n.clean=new Promise(function(t){return i=t}),n.scheduler(function(){var t,e;e=Tc((t=Ju(n.component)).context.component),ngDevMode&&nl(e.data,"Component host node should be attached to an LView"),function(n,i,r,o){var a=ou(t,e);try{zl.begin&&zl.begin(),uu(),lu(ql),Yu(0,0)}finally{zl.end&&zl.end(),au(a)}}(),i(null),n.clean=Xl}))}function Ju(t){ngDevMode&&nl(t,"component");for(var e=Tc(t).view;e.parent;)e=e.parent;return e}function $u(t){var e=Tc(t);ngDevMode&&nl(e.data,"Component host node should be attached to an LView"),tc(e.data,e,e.view.tView.directives[e.tNode.flags>>13],t)}function tc(t,e,n,i){var r=ou(t,e),o=n.template;try{o(fu(t),i),su(),Hu()}finally{au(r)}}function ec(t){ngDevMode&&nl(t,"component"),Qu(Tc(t).view)}var nc={};function ic(){ngDevMode&&Js(eu.bindingStartIndex,-1,"Binding start index should only be set once, when null"),ngDevMode&&Js(eu.bindingIndex,-1,"Binding index should not yet be set "+eu.bindingIndex),eu.bindingIndex=eu.bindingStartIndex=Jl.length}function rc(t){if(eu.bindingStartIndex<0)return ic(),Jl[eu.bindingIndex++]=t;var e=t!==nc&&vl(Jl[eu.bindingIndex],t);return e&&(Vl(Ql,iu,Jl[eu.bindingIndex],t),Jl[eu.bindingIndex]=t),eu.bindingIndex++,e?t:nc}function oc(t){ngDevMode&&tl(2,t.length,"should have at least 3 values"),ngDevMode&&Js(t.length%2,1,"should have an odd number of values");for(var e=!1,n=1;n<t.length;n+=2)yc(t[n])&&(e=!0);if(!e)return nc;var i=t[0];for(n=1;n<t.length;n+=2)i+=yl(t[n])+t[n+1];return i}function ac(t,e,n){return yc(e)?t+yl(e)+n:nc}function sc(t,e,n,i,r){return _c(e,i)?t+yl(e)+n+yl(i)+r:nc}function lc(t,e,n,i,r,o,a){var s=_c(e,i);return(s=yc(o)||s)?t+yl(e)+n+yl(i)+r+yl(o)+a:nc}function uc(t,e,n,i,r,o,a,s,l){return wc(e,i,o,s)?t+yl(e)+n+yl(i)+r+yl(o)+a+yl(s)+l:nc}function cc(t,e,n,i,r,o,a,s,l,u,c){var h=wc(e,i,o,s);return(h=yc(u)||h)?t+yl(e)+n+yl(i)+r+yl(o)+a+yl(s)+l+yl(u)+c:nc}function hc(t,e,n,i,r,o,a,s,l,u,c,h,d){var p=wc(e,i,o,s);return(p=_c(u,h)||p)?t+yl(e)+n+yl(i)+r+yl(o)+a+yl(s)+l+yl(u)+c+yl(h)+d:nc}function dc(t,e,n,i,r,o,a,s,l,u,c,h,d,p,f){var g=wc(e,i,o,s);return g=_c(u,h)||g,(g=yc(p)||g)?t+yl(e)+n+yl(i)+r+yl(o)+a+yl(s)+l+yl(u)+c+yl(h)+d+yl(p)+f:nc}function pc(t,e,n,i,r,o,a,s,l,u,c,h,d,p,f,g,m){var v=wc(e,i,o,s);return(v=wc(u,h,p,g)||v)?t+yl(e)+n+yl(i)+r+yl(o)+a+yl(s)+l+yl(u)+c+yl(h)+d+yl(p)+f+yl(g)+m:nc}function fc(t,e){t>=Ul.length&&(Ul[t]=null),Jl[t]=e}function gc(t){return ngDevMode&&Ec(t),Jl[t]}function mc(t){return ngDevMode&&nl($l,"Directives array should be defined if reading a dir."),ngDevMode&&Ec(t,$l),$l[t]}function vc(){return ngDevMode&&Ec(eu.bindingIndex),ngDevMode&&$s(Jl[eu.bindingIndex],nc,"Stored value should never be NO_CHANGE."),Jl[eu.bindingIndex++]}function yc(t){if(ngDevMode&&$s(t,nc,"Incoming value should never be NO_CHANGE."),eu.bindingStartIndex<0)ic();else{if(!vl(Jl[eu.bindingIndex],t))return eu.bindingIndex++,!1;Vl(Ql,iu,Jl[eu.bindingIndex],t)}return Jl[eu.bindingIndex++]=t,!0}function bc(t){return yc(t),t}function _c(t,e){var n=yc(t);return yc(e)||n}function wc(t,e,n,i){var r=_c(t,e);return _c(n,i)||r}function xc(){return eu.tView}function Cc(t){return Array.isArray(t)?t[0]:t}function Sc(){Js(Wl,!0,"previousOrParentNode should be a parent")}function kc(){nl(Hl.parent,"previousOrParentNode should have a parent")}function Ec(t,e){null==e&&(e=Jl),tl(t,e?e.length:0,"index expected to be a valid data index")}function Oc(t,e){null==e&&(e=Jl),Js(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function Tc(t){ngDevMode&&nl(t,"expecting component got null");var e=t[Yl];return ngDevMode&&nl(t,"object is not a component"),e}var Ac=Xl,Dc=ql,Pc=function(){function t(t,e){this._view=t,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t.prototype.markForCheck=function(){Qu(this._view)},t.prototype.detach=function(){this._view.flags&=-9},t.prototype.reattach=function(){this._view.flags|=8},t.prototype.detectChanges=function(){$u(this.context)},t.prototype.checkNoChanges=function(){!function(t){iu=!0;try{$u(t)}finally{iu=!1}}(this.context)},t}(),Ic=function(t){function e(e,n,i){var r=t.call(this,e.data,i)||this;return r._lViewNode=e,r}return Object(i.b)(e,t),e}(Pc);function Rc(t,e){return jc(new Pc(t,e))}function jc(t){var e=null;return t.destroyed=!1,t.destroy=function(){e&&e.forEach(function(t){return t()}),this.destroyed=!0},t.onDestroy=function(t){return(e||(e=[])).push(t)},t}function Mc(t,e){var n;void 0===e&&(e={}),ngDevMode&&(void 0===n&&(n="Type passed in is not ComponentType, it does not have 'ngComponentDef' property."),t.ngComponentDef||il(n));var i,r=e.rendererFactory||ml,o=t.ngComponentDef;o.type!=t&&(o.type=t);var a=o.selectors[0][0],s=Cu(r,e.host||a),l={component:null,scheduler:e.scheduler||requestAnimationFrame.bind(window),clean:Ac},u=cu(-1,r.createRenderer(s,o.rendererType),wu(null,null),null,l,o.onPush?4:2);u.injector=e.injector||null;var c,h=ou(u,null);try{r.begin&&r.begin(),c=function(t,e,n){Wl=!1,Hl=null;var i=du(0,3,s,cu(-1,Ll,_u(n.template,n.directiveDefs,n.pipeDefs),null,null,n.onPush?4:2));return ru&&(i.tNode=Tu(t,null,null),i.tNode.flags=4096,n.diPublic&&n.diPublic(n),eu.tView.directives=[n]),i}(a,0,o),i=l.component=Nu(0,o.factory(),o),yu(c.nodeInjector,i,c.data),e.hostFeatures&&e.hostFeatures.forEac
1h(function(t){return t(i,o)}),uu(),lu(Dc),tc(c.data,c,o,i)}finally{au(h),r.end&&r.end()}return i}function Fc(t){return function(t){var e=Ju(t).context;return ngDevMode&&nl(e,"rootContext"),e}(t).clean}var Nc="__NG_ELEMENT_ID__",Bc=256,Vc=0;function Lc(){return ngDevMode&&Sc(),zc(Kl())}function zc(t){var e=t.nodeInjector,n=t.parent&&t.parent.nodeInjector;return e!=n?e:t.nodeInjector={parent:n,node:t,bf0:0,bf1:0,bf2:0,bf3:0,bf4:0,bf5:0,bf6:0,bf7:0,cbf0:null==n?0:n.cbf0|n.bf0,cbf1:null==n?0:n.cbf1|n.bf1,cbf2:null==n?0:n.cbf2|n.bf2,cbf3:null==n?0:n.cbf3|n.bf3,cbf4:null==n?0:n.cbf4|n.bf4,cbf5:null==n?0:n.cbf5|n.bf5,cbf6:null==n?0:n.cbf6|n.bf6,cbf7:null==n?0:n.cbf7|n.bf7,templateRef:null,viewContainerRef:null,elementRef:null,changeDetectorRef:null}}function Hc(t){!function(t,e){!function(t,e){var n=e[Nc];null==n&&(n=e[Nc]=Vc++);var i=n%Bc,r=1<<i;i<128?i<64?i<32?t.bf0|=r:t.bf1|=r:i<96?t.bf2|=r:t.bf3|=r:i<192?i<160?t.bf4|=r:t.bf5|=r:i<224?t.bf6|=r:t.bf7|=r}(t,e.type)}(Lc(),t)}function Wc(t,e){return void 0===e&&(e=0),Kc(Lc(),t,e)}function Uc(){return nh(Lc())}function Yc(){return th(Lc())}function Xc(){return Gc(Lc(),null)}function qc(t){ngDevMode&&Sc();var e=Kl();ngDevMode&&hl(e,3);var n=e.tNode;ngDevMode&&nl(n,"expecting tNode");var i=n.attrs;if(i)for(var r=0;r<i.length;r+=2)if(i[r]==t)return i[r+1]}function Gc(t,e){if(t.changeDetectorRef)return t.changeDetectorRef;var n=t.node;return 4096==(4096&n.tNode.flags)?t.changeDetectorRef=Rc(n.data,e):3===n.type?t.changeDetectorRef=function(t){var e=function(t){for(;2===t.type;)t=t.view.node;return t}(t),n=e.nodeInjector;return n&&n.changeDetectorRef||Rc(e.data,e.view.directives[e.tNode.flags>>13])}(n.view.node):null}function Kc(t,e,n){var i,r="number"==typeof(i=e[Nc])?i%Bc:null;if(null===r){var o=Ot(Kl().view.injector);try{return Tt(e,n)}finally{Ot(o)}}else for(var a=t;a&&(a=Qc(a,r));){var s=a.node,l=s.tNode.flags,u=4095&l;if(0!==u)for(var c=l>>13,h=c+u,d=s.view.tView.directives,p=c;p<h;p++){var f=d[p];if(f.type===e&&f.diPublic)return Cc(s.view.directives[p])}var g=void 0;if(a===t&&(g=Zc(s,e)))return g;a=a.parent}throw new Error("Implement")}function Zc(t,e){var n=t.view.tView.currentMatches;if(n)for(var i=0;i<n.length;i+=2){var r=n[i];if(r.type===e)return vu(r,i+1,n,t.view.tView)}return null}function Qc(t,e){for(var n=1<<e,i=t;i;){if(((e<128?e<64?e<32?i.bf0:i.bf1:e<96?i.bf2:i.bf3:e<192?e<160?i.bf4:i.bf5:e<224?i.bf6:i.bf7)&n)===n)return i;i=(e<128?e<64?e<32?i.cbf0:i.cbf1:e<96?i.cbf2:i.cbf3:e<192?e<160?i.cbf4:i.cbf5:e<224?i.cbf6:i.cbf7)&n?i.parent:null}return null}var Jc=function(t){this.read=t},$c=function(t){this.nativeElement=t};function th(t){if(!t.viewContainerRef){var e=t.node;ngDevMode&&dl(e,0,3);var n=Bu(e.parent,e.view),i=hu(0,e.view,e.parent,void 0,n,null);e.dynamicLContainerNode=i,Zu(e.view,n),t.viewContainerRef=new eh(i)}return t.viewContainerRef}var eh=function(){function t(t){this._lContainerNode=t,this._viewRefs=[]}return t.prototype.clear=function(){for(var t=this._lContainerNode.data;t.views.length;)this.remove(0)},t.prototype.get=function(t){return this._viewRefs[t]||null},Object.defineProperty(t.prototype,"length",{get:function(){return this._lContainerNode.data.views.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i},t.prototype.createComponent=function(t,e,n,i,r){throw new Error("NotImplemented")},t.prototype.insert=function(t,e){var n=t._lViewNode,i=this._adjustIndex(e);return kl(this._lContainerNode,n,i),this._lContainerNode.native=void 0,this._viewRefs.splice(i,0,t),n.parent=this._lContainerNode,null!==n.data.template&&(this._lContainerNode.data.dynamicViewCount++,null!==this._lContainerNode.parent&&null!==this._lContainerNode.parent.data&&(ngDevMode&&dl(this._lContainerNode.parent,2,3),this._lContainerNode.parent.data.dynamicViewCount++)),t},t.prototype.move=function(t,e){var n=this.indexOf(t);return this.detach(n),this.insert(t,this._adjustIndex(e)),t},t.prototype.indexOf=function(t){return this._viewRefs.indexOf(t)},t.prototype.remove=function(t){this.detach(t)},t.prototype.detach=function(t){var e=this._adjustIndex(t,-1);return El(this._lContainerNode,e),this._viewRefs.splice(e,1)[0]||null},t.prototype._adjustIndex=function(t,e){return void 0===e&&(e=0),null==t?this._lContainerNode.data.views.length+e:(ngDevMode&&(t<=-1&&il("index must be positive"),tl(t,this._lContainerNode.data.views.length+1+e,"index")),t)},t}();function nh(t){ngDevMode&&hl(t.node,0);var e=t.node.data,n=t.node.view.tView;return t.templateRef||(t.templateRef=new ih(function(t){return t.elementRef||(t.elementRef=new $c(0===t.node.type?null:t.node.native))}(t),e.template,Ll,n.directiveRegistry,n.pipeRegistry))}var ih=function(){function t(t,e,n,i,r){this._renderer=n,this._directives=i,this._pipes=r,this.elementRef=t,this._template=e}return t.prototype.createEmbeddedView=function(t){var e=pu(null,this._template,t,this._renderer,this._directives,this._pipes);return jc(new Ic(e,this._template,t))},t}();function rh(t){var e=t.type,n=t.pipes,i=t.directives,r={type:e,diPublic:null,factory:t.factory,template:t.template||null,hostBindings:t.hostBindings||null,attributes:t.attributes||null,inputs:hh(t.inputs),outputs:hh(t.outputs),rendererType:Br(t.rendererType)||null,exportAs:t.exportAs,onInit:e.prototype.ngOnInit||null,doCheck:e.prototype.ngDoC
1heck||null,afterContentInit:e.prototype.ngAfterContentInit||null,afterContentChecked:e.prototype.ngAfterContentChecked||null,afterViewInit:e.prototype.ngAfterViewInit||null,afterViewChecked:e.prototype.ngAfterViewChecked||null,onDestroy:e.prototype.ngOnDestroy||null,onPush:t.changeDetection===E.OnPush,directiveDefs:i?function(){return("function"==typeof i?i():i).map(oh)}:null,pipeDefs:n?function(){return("function"==typeof n?n():n).map(ah)}:null,selectors:t.selectors},o=t.features;return o&&o.forEach(function(t){return t(r)}),r}function oh(t){var e=t.ngComponentDef||t.ngDirectiveDef;if(ngDevMode&&!e)throw new Error("'"+t.name+"' is neither 'ComponentType' or 'DirectiveType'.");return e}function ah(t){var e=t.ngPipeDef;if(ngDevMode&&!e)throw new Error("'"+t.name+"' is not a 'PipeType'.");return e}var sh="__ngOnChanges_";function lh(t){return function(n){var i=n.inputs,r=n.type.prototype;Object.defineProperty(r,sh,{value:void 0,writable:!0});var o=function(e){var n=i[e],o=t&&t[n]||e,a=sh+n;Object.defineProperty(r,a,{value:void 0,writable:!0});var s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(r,n,{get:function(){return s&&s.get?s.get.call(this):this[a]},set:function(t){var e=this[sh],n=void 0===e;null==e&&(e=this[sh]={}),e[o]=new bi(this[a],t,n),s&&s.set?s.set.call(this,t):this[a]=t}})};for(var a in i)o(a);null!=n.onInit&&(n.onInit=e(n.onInit)),n.doCheck=e(n.doCheck)};function e(t){return function(){var e=this[sh];null!=e&&(this.ngOnChanges(e),this[sh]=null),t&&t.apply(this)}}}function uh(t){t.diPublic=Hc}var ch={};function hh(t){if(null==t)return ch;var e={};for(var n in t)e[t[n]]=n;return e}var dh=rh;function ph(t){return{name:t.name,n:t.factory,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function fh(t,e){return nu()?bc(e?t.call(e):t()):vc()}function gh(t,e,n){return yc(e)?bc(n?t.call(n,e):t(e)):vc()}function mh(t,e,n,i){return _c(e,n)?bc(i?t.call(i,e,n):t(e,n)):vc()}function vh(t,e,n,i,r){var o=_c(e,n);return yc(i)||o?bc(r?t.call(r,e,n,i):t(e,n,i)):vc()}function yh(t,e,n,i,r,o){return wc(e,n,i,r)?bc(o?t.call(o,e,n,i,r):t(e,n,i,r)):vc()}function bh(t,e,n,i,r,o,a){var s=wc(e,n,i,r);return yc(o)||s?bc(a?t.call(a,e,n,i,r,o):t(e,n,i,r,o)):vc()}function _h(t,e,n,i,r,o,a,s){var l=wc(e,n,i,r);return _c(o,a)||l?bc(s?t.call(s,e,n,i,r,o,a):t(e,n,i,r,o,a)):vc()}function wh(t,e,n,i,r,o,a,s,l){var u=wc(e,n,i,r);return u=_c(o,a)||u,yc(s)||u?bc(l?t.call(l,e,n,i,r,o,a,s):t(e,n,i,r,o,a,s)):vc()}function xh(t,e,n,i,r,o,a,s,l,u){var c=wc(e,n,i,r);return wc(o,a,s,l)||c?bc(u?t.call(u,e,n,i,r,o,a,s,l):t(e,n,i,r,o,a,s,l)):vc()}function Ch(t,e,n){for(var i=!1,r=0;r<e.length;r++)yc(e[r])&&(i=!0);return i?bc(t.apply(n,e)):vc()}function Sh(t,e){var n,i=xc();i.firstTemplatePass?(n=function(t,e){if(e)for(var n=0;n<e.length;n++){var i=e[n];if(t===i.name)return i}throw new Error("Pipe with name '"+t+"' not found!")}(e,i.pipeRegistry),i.data[t]=n,n.onDestroy&&(i.pipeDestroyHooks||(i.pipeDestroyHooks=[])).push(t,n.onDestroy)):n=i.data[t];var r=n.n();return fc(t,r),r}function kh(t,e){var n=gc(t);return Dh(t)?gh(n.transform,e,n):n.transform(e)}function Eh(t,e,n){var i=gc(t);return Dh(t)?mh(i.transform,e,n,i):i.transform(e,n)}function Oh(t,e,n,i){var r=gc(t);return Dh(t)?vh(r.transform.bind(r),e,n,i):r.transform(e,n,i)}function Th(t,e,n,i,r){var o=gc(t);return Dh(t)?yh(o.transform,e,n,i,r,o):o.transform(e,n,i,r)}function Ah(t,e){var n=gc(t);return Dh(t)?Ch(n.transform,e,n):n.transform.apply(n,e)}function Dh(t){return xc().data[t].pure}var Ph=function(){function t(t){this.shallow=null,this.deep=null,this.deep=null==t?null:t}return t.prototype.track=function(t,e,n,i){n?this.deep=Nh(this.deep,t,e,null!=i?i:null):this.shallow=Nh(this.shallow,t,e,null!=i?i:null)},t.prototype.child=function(){return null===this.deep?null:null===this.shallow?this:new t(this.deep)},t.prototype.container=function(){for(var e=null,n=this.deep;n;){var i=[];n.values.push(i);var r={next:null,list:n.list,predicate:n.predicate,values:i};r.next=e,e=r,n=n.next}return e?new t(e):null},t.prototype.enterView=function(e){for(var n=null,i=this.deep;i;){var r=[];i.values.splice(e,0,r);var o={next:null,list:i.list,predicate:i.predicate,values:r};o.next=n,n=o,i=i.next}return n?new t(n):null},t.prototype.addNode=function(t){Mh(this.shallow,t),Mh(this.deep,t)},t.prototype.removeView=function(t){for(var e=this.deep;e;){var n=e.values.splice(t,1);ngDevMode&&Js(n.length,1,"removed.length"),n[0].length&&e.list.setDirty(),e=e.next}},t}();function Ih(t,e){var n=t.localNames;if(n)for(var i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Rh(t,e){for(var n=t.view.tView.directives,i=t.tNode.flags,r=i>>13,o=r+(4095&i),a=r;a<o;a++){var s=n[a];if(s.type===e&&s.diPublic)return a}return null}function jh(t,e,n,i){if(n instanceof Jc)return n.read(t,e,i);var r=Rh(e,n);return null!==r?e.view.directives[r]:null}function Mh(t,e){for(var n=zc(e);t;){var i=t.predicate,r=i.type;if(r)null!==(s=Rh(e,r))&&null!==(l=jh(n,e,i.read||r,s))&&Fh(t,l);else for(var o=i.selector,a=0;a<o.length;a++){var s,l;ngDevMode&&nl(e.tNode,"node.tNode"),null!==(s=Ih(e.tNode,o[a]))&&
1(ngDevMode&&nl(i.read,"the node should have a predicate"),null!==(l=jh(n,e,i.read,s))&&Fh(t,l))}t=t.next}}function Fh(t,e){t.values.push(e),t.list.setDirty()}function Nh(t,e,n,i){return{next:t,list:e,predicate:function(t,e){var n=Array.isArray(t);return{type:n?null:t,selector:n?t:null,read:e}}(n,i),values:e._valuesTree}}var Bh=function(){function t(){this.dirty=!0,this.changes=new pn,this._values=[],this._valuesTree=[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){var t=this._values;return t.length?t[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){var t=this._values;return t.length?t[t.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._values.map(t)},t.prototype.filter=function(t){return this._values.filter(t)},t.prototype.find=function(t){return this._values.find(t)},t.prototype.reduce=function(t,e){return this._values.reduce(t,e)},t.prototype.forEach=function(t){this._values.forEach(t)},t.prototype.some=function(t){return this._values.some(t)},t.prototype.toArray=function(){return this._values.slice(0)},t.prototype[U()]=function(){return this._values[U()]()},t.prototype.toString=function(){return this._values.toString()},t.prototype.reset=function(t){this._values=function(t){for(var e=[],n=0;n<t.length;){var i=t[n];Array.isArray(i)?i.length>0?(t=i.concat(t.slice(n+1)),n=0):n++:(e.push(i),n++)}return e}(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}();function Vh(t,e,n,i){ngDevMode&&Sc();var r=new Bh;return(Zl||(Zl=new Ph)).track(r,e,n,i),null!=t&&fc(t,r),r}function Lh(t){return!!t.dirty&&(t.reset(t._valuesTree),t.notifyOnChanges(),!0)}var zh="__SANITIZER_TRUSTED_BRAND__";function Hh(t){return t instanceof String&&"Html"===t[zh]?t.toString():hr(document,yl(t))}function Wh(t){return t instanceof String&&"Style"===t[zh]?t.toString():gr(yl(t))}function Uh(t){return t instanceof String&&"Url"===t[zh]?t.toString():Ki(yl(t))}function Yh(t){if(t instanceof String&&"ResourceUrl"===t[zh])return t.toString();throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Xh(t){return Qh(t,"Html")}function qh(t){return Qh(t,"Style")}function Gh(t){return Qh(t,"Script")}function Kh(t){return Qh(t,"Url")}function Zh(t){return Qh(t,"ResourceUrl")}function Qh(t,e){var n=new String(t);return n[zh]=e,n}},DC8U:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("CcnG"),r=(n("z4fs"),n("PEPO")),o=n("z7B4");e.ColorPickerComponent=function(){function t(t,e,n){this.el=t,this.cdr=e,this.service=n,this.dialogArrowSize=10,this.dialogArrowOffset=15,this.useRootViewContainer=!1,this.isIE10=!1}return t.prototype.setDialog=function(t,e,n,i,r,a,s,l,u,c,h,d,p,f,g,m,v,y,b,_,w,x,C,S,k,E,O,T,A){this.directiveInstance=t,this.initialColor=n,this.directiveElementRef=e,this.cpPosition=i,this.cpPositionOffset=parseInt(r),a||(this.dialogArrowOffset=0),this.cpOutputFormat=s,this.cpPresetLabel=l,this.cpPresetEmptyMessage=u,this.cpPresetEmptyMessageClass=c,this.cpPresetColors=h,this.cpMaxPresetColorsLength=d,this.cpCancelButton=p,this.cpCancelButtonClass=f,this.cpCancelButtonText=g,this.cpOKButton=m,this.cpOKButtonClass=v,this.cpOKButtonText=y,this.cpAddColorButton=b,this.cpAddColorButtonClass=_,this.cpAddColorButtonText=w,this.cpRemoveColorButtonClass=x,this.width=this.cpWidth=parseInt(S),this.height=this.cpHeight=parseInt(C),this.cpIgnoredElements=k,this.cpDialogDisplay=E,"inline"===this.cpDialogDisplay&&(this.dialogArrowOffset=0,this.dialogArrowSize=0),this.cpSaveClickOutside=O,this.cpAlphaChannel=T,this.useRootViewContainer=A,"hex"===s&&"always"!==T&&"hex8"!==T&&(this.cpAlphaChannel="disabled"),this.isIE10=10===o.detectIE()},t.prototype.ngOnInit=function(){var t=this;this.sliderDimMax=new o.SliderDimension(this.hueSlider.nativeElement.offsetWidth,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth),this.slider=new o.SliderPosition(0,0,0,0),this.format="rgba"===this.cpOutputFormat?1:"hsla"===this.cpOutputFormat?2:0,this.listenerMouseDown=function(e){t.onMouseDown(e)},this.listenerResize=function(){t.onResize()},this.openDialog(this.initialColor,!1)},t.prototype.ngAfterViewInit=function(){230!=this.cpWidth&&(this.sliderDimMax=new o.SliderDimension(this.hueSlider.nativeElement.offsetWidth,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth),this.update(!1),this.cdr.detectChanges())},t.prototype.setInitialColor=function(t){this.initialColor=t},t.prototype.setPresetConfig=function(t,e){this.cpPresetLabel=t,this.cpPresetColors=e},t.prototype.openDialog=function(t,e){void 0===e&&(e=!0),this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.setInitialColor(t),this.setColorFromString(t,e),this.openColorPicker()},t.prototype.cancelColor=function(t){t&&t.stopPropagation&&t.stopPropagation(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker()),this.directiveInstance.colorCanceled()},t.prototype.oKColor=function(t){t&&t.stopPropagation&&t.stopPropagation(),"popup"===this.cpDialogDisplay&&this.closeColorPicker(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor)},t.prototype.setColorFromString=function(t,e,n){var i;void 0===e&&(e=!0),void 0===n&&(n=!0),("always"===this.cpAlphaChannel||"hex8"===this.cpAlphaChannel)&&((i=this.service.stringToHsva(t,!0))||this.hsva)||(i=this.service.stringToHsva(t,!1)),i&&(this.hsva=i,this.update(e,n))},t.prototype.addPresetColor=function(t,e){t&&t.stopPropagation&&t.stopPropagation(),this.cpPresetColors.filter(function(t){return t===e}).length||(this.cpPresetColors=this.cpPresetColors.concat(e),this.directiveInstance.presetColorsChanged(this.cpPresetColors))},t.prototype.removePresetColor=function(t,e){t&&t.stopPropagation&&t.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(function(t){return t!==e}),this.directiveInstance.presetColorsChanged(this.cpPresetColors)},t.prototype.onDragEnd=function(t){this.directiveInstance.sliderDragEnd({slider:t,color:this.outputColor})},t.prototype.onDragStart=function(t){this.directiveInstance.sliderDragStart({slider:t,color:this.outputColor})},t.prototype.onMouseDown=function(t){this.isDescendant(this.el.nativeElement,t.target)||t.target==this.directiveElementRef.nativeElement||0!==this.cpIgnoredElements.filter(function(e){return e===t.target}).length||"popup"!==this.cpDialogDisplay||this.isIE10||(this.cpSaveClickOutside||(this.setColorFromString(this.initialColor,!1),this.directiveInstance.colorChanged(this.initialColor)),this.closeColorPicker())},t.prototype.openColorPicker=function(){var t=this;this.show||(this.show=!0,this.hidden=!0,setTimeout(function(){t.setDialogPosition(),t.hidden=!1,t.cdr.detectChanges()},0),this.directiveInstance.toggle(!0),this.isIE10||document.addEventListener("mousedown",this.listenerMouseDown),window.addEventListener("resize",this.listenerResize))},t.prototype.closeColorPicker=function(){this.show&&(this.show=!1,this.directiveInstance.toggle(!1),this.isIE10||document.removeEventListener("mousedown",this.listenerMouseDown),window.removeEventListener("resize",this.listenerResize),this.cdr.destroyed||this.cdr.detectChanges())},t.prototype.onResize=function(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()},t.prototype.setDialogPosition=function(){if("inline"!==this.cpDialogDisplay){for(var t=this.dialogElement.nativeElement.offsetHeight,e=this.directiveElementRef.nativeElement.parentNode,n="static",i="",r=null,o=null,a=null;null!==e&&"HTML"!==e.tagName;){if(n=(a=window.getComputedStyle(e)).getPropertyValue("position"),i=a.getPropertyValue("transform"),"static"!==n&&null===r&&(r=e),i&&"none"!==i&&null===o&&(o=e),"fixed"===n){r=o;break}e=e.parentNode}var s=this.createBox(this.directiveElementRef.nativeElement,"fixed"!==n);if("fixed"===n&&!r||this.useRootViewContainer)this.top=s.top,this.left=s.left;else{null===r&&(r=e);var l=this.createBox(r,"fixed"!==n);this.top=s.top-l.top,this.left=s.left-l.left}"fixed"===n&&(this.position="fixed"),"left"===this.cpPosition?(this.top+=s.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2):"top"===this.cpPosition?(this.top-=t+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*s.width-this.dialogArrowOffset,this.arrowTop=t-1):"bottom"===this.cpPosition?(this.top+=s.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*s.width-this.dialogArrowOffset):(this.top+=s.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=s.width+this.dialogArrowSize-2)}else this.position="relative"},t.prototype.setSaturation=function(t){var e=this.service.hsva2hsla(this.hsva);e.s=t.v/t.rg,this.hsva=this.service.hsla2hsva(e),this.update(),this.directiveInstance.inputChanged({input:"saturation",value:e.s,color:this.outputColor})},t.prototype.setLightness=function(t){var e=this.service.hsva2hsla(this.hsva);e.l=t.v/t.rg,this.hsva=this.service.hsla2hsva(e),this.update(),this.directiveInstance.inputChanged({input:"lightness",value:e.l,color:this.outputColor})},t.prototype.setHue=function(t){this.hsva.h=t.v/t.rg,this.update(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})},t.prototype.setAlpha=function(t){this.hsva.a=t.v/t.rg,this.update(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})},t.prototype.setR=function(t){var e=this.service.hsvaToRgba(this.hsva);e.r=t.v/t.rg,this.hsva=this.service.rgbaToHsva(e),this.update(),this.directiveInstance.inputChanged({input:"red",value:e.r,color:this.outputColor})},t.prototype.setG=function(t){var e=this.service.hsvaToRgba(this.hsva);e.g=t.v/t.rg,this.hsva=this.service.rgbaToHsva(e),this.update(),this.directiveInstance.inputChanged({input:"green",value:e.g,color:this.outputColor})},t.prototype.setB=function(t){var e=this.service.hsvaToRgba(this.hsva);e.b=t.v/t.rg,this.hsva=this.service.rgbaToHsva(e),this.update(),this.directiveInstance.inputChanged({input:"blue",value:e.b,color:this.outputColor})},t.prototype.setA=function(t){this.hsva.a=t.v/t.rg,this.update(),this.directiveInstance.inputChanged({input:"alpha",value:this.hsva.a,color:this.outputColor})},t.prototype.setHex=function(t){null===t?this.update():(this.setColorFromString(t,!0,!1),this.directiveInstance.inputChanged({input:"hex",value:t,color:this.outputColor}))},t.prototype.setSaturationAndBrightness=function(t){this.hsva.s=t.s/t.rgX,this.hsva.v=t.v/t.rgY,this.update(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})},t.prototype.formatPolicy=function(){return this.format=(this.format+1)%3,this.format},t.prototype.update=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e=!0),this.sliderDimMax){var n=this.service.hsva2hsla(this.hsva),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),a=this.service.denormalizeRGBA(this.service.hsvaToRgba(new r.Hsva(this.hsva.h,1,1,1)));e&&(this.hslaText=new r.Hsla(Math.round(360*n.h),Math.round(100*n.s),Math.round(100*n.l),Math.round(100*n.a)/100),this.rgbaText=new r.Rgba(i.r,i.g,i.b,Math.round(100*i.a)/100),this.hexText=this.service.hexText(i,"always"===this.cpAlphaChannel||"hex8"===this.cpAlphaChannel)),this.alphaSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.hueSliderColor="rgb("+a.r+","+a.g+","+a.b+")";var s=this.outputColor;this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.slider=new o.SliderPosition(this.hsva.h*this.sliderDimMax.h-8,this.hsva.s
1*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),t&&s!==this.outputColor&&this.directiveInstance.colorChanged(this.outputColor)}},t.prototype.isDescendant=function(t,e){for(var n=e.parentNode;null!==n;){if(n===t)return!0;n=n.parentNode}return!1},t.prototype.createBox=function(t,e){return{top:t.getBoundingClientRect().top+(e?window.pageYOffset:0),left:t.getBoundingClientRect().left+(e?window.pageXOffset:0),width:t.offsetWidth,height:t.offsetHeight}},t.decorators=[{type:i.Component,args:[{selector:"color-picker",template:'<div class="color-picker" [style.visibility]="hidden || !show ? \'hidden\' : \'visible\'" [style.height.px]="cpHeight" [style.width.px]="cpWidth" [style.top.px]="top" [style.left.px]="left" [style.position]="position" #dialogPopup><div *ngIf="cpDialogDisplay==\'popup\'" class="arrow arrow-{{cpPosition}}" [style.top.px]="arrowTop"></div><div [slider] [style.background-color]="hueSliderColor" [rgX]="1" [rgY]="1" (newValue)="setSaturationAndBrightness($event)" (dragStart)="onDragStart(\'saturation-lightness\')" (dragEnd)="onDragEnd(\'saturation-lightness\')" class="saturation-lightness"><div [style.left.px]="slider.s" [style.top.px]="slider.v" class="cursor"></div></div><div class="box"><div class="left"><div class="selected-color-background"></div><div [style.background-color]="selectedColor" class="selected-color"></div><button *ngIf="cpAddColorButton" class="{{cpAddColorButtonClass}}" (click)="addPresetColor($event, selectedColor)" [disabled]="cpPresetColors && cpPresetColors.length >= cpMaxPresetColorsLength">{{cpAddColorButtonText}}</button></div><div class="right"><div *ngIf="cpAlphaChannel===\'disabled\'" style="height: 16px"></div><div [slider] [rgX]="1" (newValue)="setHue($event)" (dragStart)="onDragStart(\'hue\')" (dragEnd)="onDragEnd(\'hue\')" class="hue" #hueSlider><div [style.left.px]="slider.h" class="cursor"></div></div><div [style.display]="cpAlphaChannel === \'disabled\' ? \'none\' : \'block\'" [slider] [style.background-color]="alphaSliderColor" [rgX]="1" (newValue)="setAlpha($event)" (dragStart)="onDragStart(\'alpha\')" (dragEnd)="onDragEnd(\'alpha\')" class="alpha" #alphaSlider><div [style.left.px]="slider.a" class="cursor"></div></div></div></div><div [style.display]="format !== 2 ? \'none\' : \'block\'" class="hsla-text"><div class="box"><input [text] type="number" pattern="[0-9]*" min="0" max="360" [rg]="360" (newValue)="setHue($event)" [value]="hslaText.h"> <input [text] type="number" pattern="[0-9]*" min="0" max="100" [rg]="100" (newValue)="setSaturation($event)" [value]="hslaText.s"> <input [text] type="number" pattern="[0-9]*" min="0" max="100" [rg]="100" (newValue)="setLightness($event)" [value]="hslaText.l"> <input *ngIf="cpAlphaChannel!==\'disabled\'" [text] type="number" pattern="[0-9]+([.,][0-9]{1,2})?" min="0" max="1" step="0.1" [rg]="1" (newValue)="setA($event)" [value]="hslaText.a"></div><div class="box"><div>H</div><div>S</div><div>L</div><div *ngIf="cpAlphaChannel!==\'disabled\'">A</div></div></div><div [style.display]="format !== 1 ? \'none\' : \'block\'" class="rgba-text"><div class="box"><input [text] type="number" pattern="[0-9]*" min="0" max="255" [rg]="255" (newValue)="setR($event)" [value]="rgbaText.r"> <input [text] type="number" pattern="[0-9]*" min="0" max="255" [rg]="255" (newValue)="setG($event)" [value]="rgbaText.g"> <input [text] type="number" pattern="[0-9]*" min="0" max="255" [rg]="255" (newValue)="setB($event)" [value]="rgbaText.b"> <input *ngIf="cpAlphaChannel!==\'disabled\'" [text] type="number" pattern="[0-9]+([.,][0-9]{1,2})?" min="0" max="1" step="0.1" [rg]="1" (newValue)="setA($event)" [value]="rgbaText.a"></div><div class="box"><div>R</div><div>G</div><div>B</div><div *ngIf="cpAlphaChannel!==\'disabled\'">A</div></div></div><div [style.display]="format !== 0 ? \'none\' : \'block\'" class="hex-text"><div class="box"><input [text] (blur)="setHex(null)" (newValue)="setHex($event)" [value]="hexText"></div><div class="box"><div>Hex</div></div></div><div (click)="formatPolicy()" class="type-policy"></div><div *ngIf="cpPresetColors" class="preset-area"><hr><div class="preset-label">{{cpPresetLabel}}</div><div *ngIf="cpPresetColors.length"><div *ngFor="let color of cpPresetColors" class="preset-color" [style.backgroundColor]="color" (click)="setColorFromString(color)"><span *ngIf="cpAddColorButton" class="{{cpRemoveColorButtonClass}}" (click)="removePresetColor($event, color)"></span></div></div><div *ngIf="!cpPresetColors.length && cpAddColorButton" class="{{cpPresetEmptyMessageClass}}">{{cpPresetEmptyMessage}}</div></div><div *ngIf="cpOKButton || cpCancelButton" class="button-area"><button *ngIf="cpOKButton" type="button" class="{{cpOKButtonClass}}" (click)="oKColor($event)">{{cpOKButtonText}}</button> <button *ngIf="cpCancelButton" type="button" class="{{cpCancelButtonClass}}" (click)="cancelColor($event)">{{cpCancelButtonText}}</button></div></div>',styles:[".color-picker *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:11px}.color-picker{cursor:default;width:230px;height:auto;border:1px solid #777;position:absolute;z-index:100000;background-color:#fff;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.color-picker i{cursor:default;position:relative}.color-picker input{text-align:center;font-size:13px;height:26px;min-width:0;-moz-appearance:textfield}.color-picker input:invalid{box-shadow:none}.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input:-moz-ui-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{width:100%;padding:4px;font-size:11px;text-align:left;color:#555}.color-picker .preset-area .preset-color{-moz-border-radius:25%;-webkit-border-radius:25%;border-radius:25%;-khtml-border-radius:25%;border:1px solid #a9a9a9;cursor:pointer;display:inline-block;height:18px;margin:4px 6px 8px;position:relative;width:18px}
1.color-picker .preset-area .preset-empty-message{font-style:italic;margin-bottom:8px;margin-top:4px;min-height:18px;text-align:center}.color-picker .arrow{height:0;width:0;border-style:solid;position:absolute;z-index:999999}.color-picker .arrow-right{border-width:5px 10px;border-color:transparent #777 transparent transparent;top:10px;left:-20px}.color-picker .arrow-left{border-width:5px 10px;border-color:transparent transparent transparent #777;top:10px;left:100%}.color-picker .arrow-bottom{border-width:10px 5px;border-color:transparent transparent #777;top:-20px;left:10px}.color-picker .arrow-top{border-width:10px 5px;border-color:#777 transparent transparent;left:10px}.color-picker div.cursor-sv{cursor:default;position:relative;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%;-khtml-border-radius:50%;width:15px;height:15px;border:1px solid #ddd}.color-picker .selected-color,.color-picker div.cursor{-moz-border-radius:50%;-webkit-border-radius:50%;-khtml-border-radius:50%}.color-picker div.cursor{cursor:default;position:relative;border-radius:50%;width:16px;height:16px;border:2px solid #222}.color-picker .saturation-lightness{cursor:pointer;width:100%;height:130px;border:none;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od
15rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuza
1HsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+
17669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTj
1xymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .alpha,.color-picker .hue{width:100%;height:16px;border:none;background-size:100% 100%;cursor:pointer}.color-picker .box{display:-webkit-box;display:-webkit-flex;display:-moz-flex;display:-ms-flexbox;display:flex;padding:4px 8px}.color-picker .box .left{position:relative;padding:16px 8px}.color-picker .box .right{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:12px 8px}.color-picker .hue{margin-bottom:16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .selected-color{width:40px;height:40px;top:16px;left:8px;position:absolute;border-radius:50%;border:1px solid #a9a9a9}.color-picker .selected-color-background{width:40px;height:40px;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%;-khtml-border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .type-policy{position:absolute;top:215px;right:12px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center;background-size:8px 16px;-moz-background-size:8px 16px;-webkit-background-size:8px 16px;-o-background-size:8px 16px;width:16px;height:24px}
1.color-picker .hsla-text,.color-picker .rgba-text{width:100%;font-size:11px;padding:4px 8px}.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .hsla-text .box input,.color-picker .rgba-text .box input{min-width:0;-webkit-flex:1;-ms-flex:1;flex:1;margin:0 8px 0 0;float:left;border:1px solid #a9a9a9;padding:1px}.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child{margin-right:0}.color-picker .hsla-text .box div,.color-picker .rgba-text .box div{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center;color:#555;margin-right:8px}.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child{margin-right:0}.color-picker .hex-text{width:100%;font-size:11px;padding:4px 8px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;border:1px solid #a9a9a9;padding:1px}.color-picker .hex-text .box div{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center;color:#555;float:left;clear:left}.color-picker .cp-add-color-button-class{background:0 0;border:0;cursor:pointer;display:inline;margin-left:-3px;margin-top:3px;padding:0;position:absolute}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{color:#999;cursor:not-allowed}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{background:#fff;border-radius:50%;box-shadow:1px 1px 5px #333;cursor:pointer;display:block;height:10px;position:absolute;right:-5px;text-align:center;top:-5px;width:10px}.color-picker .cp-remove-color-button-class:before{bottom:3.5px;content:'x';display:inline-block;font-size:10px;position:relative}"]}]}],t.propDecorators={hueSlider:[{type:i.ViewChild,args:["hueSlider"]}],alphaSlider:[{type:i.ViewChild,args:["alphaSlider"]}],dialogElement:[{type:i.ViewChild,args:["dialogPopup"]}]},t}()},DKTb:function(t,e,n){"use strict";function i(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return i})},Ehmk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i,r=n("eihs");function o(){try{return i.apply(this,arguments)}catch(t){return r.a.e=t,r.a}}function a(t){return i=t,o}},"En8+":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},FFOo:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("mrSG"),r=n("2Bdj"),o=n("6ahw"),a=n("pugT"),s=n("L/V9"),l=n("iLxQ"),u=n("DKTb"),c=function(t){function e(e,n,i){var r=t.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=o.a;break;case 1:if(!e){r.destination=o.a;break}if("object"==typeof e){if(d(e)){var a=e[s.a]();r.syncErrorThrowable=a.syncErrorThrowable,r.destination=a,a.add(r)}else r.syncErrorThrowable=!0,r.destination=new h(r,e);break}default:r.syncErrorThrowable=!0,r.destination=new h(r,e,n,i)}return r}return i.b(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,i){var r=new e(t,n,i);return r.syncErrorThrowable=!1,r},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(a.a),h=function(t){function e(e,n,i,a){var s,l=t.call(this)||this;l._parentSubscriber=e;var u=l;return Object(r.a)(n)?s=n:n&&(s=n.next,i=n.error,a=n.complete,n!==o.a&&(u=Object.create(n),Object(r.a)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(l))),l._context=u,l._next=s,l._error=i,l._complete=a,l}return i.b(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=l.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),l.a.useDeprecatedSynchronousErrorHandling)throw t;Object(u.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!l.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return l.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(u.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c);function d(t){return t instanceof c||"syncErrorThrowable"in t&&t[s.a]}},Fxb1:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("6blF"),r=n("+tJ4"),o=n("S5XQ"),a=n("u67D"),s=n("JcRv"),l=n("2ePl"),u=n("/WYv"),c=n("McSo"),h=n("En8+"),d=n("xTla"),p=function(t){if(t instanceof i.a)return function(e){return t._isScalar?(e.next(t.value),void e.complete()):t.subscribe(e)};if(Object(l.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return Object(o.a)(t);if(t&&"function"==typeof t[h.a])return Object(a.a)(t);if(t&&"function"==typeof t[d.a])return Object(s.a)(t);
1var e=Object(c.a)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},IUTb:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("6blF"),r=n("pugT"),o=n("+tJ4");function a(t,e){return new i.a(e?function(n){var i=new r.a,o=0;return i.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()})),i}:Object(o.a)(t))}},Ip0R:function(t,e,n){"use strict";n.r(e),n.d(e,"\u0275angular_packages_common_common_e",function(){return Qt}),n.d(e,"\u0275angular_packages_common_common_d",function(){return Y}),n.d(e,"\u0275angular_packages_common_common_a",function(){return At}),n.d(e,"\u0275angular_packages_common_common_b",function(){return Rt}),n.d(e,"\u0275angular_packages_common_common_g",function(){return _e}),n.d(e,"\u0275angular_packages_common_common_f",function(){return Le}),n.d(e,"\u0275registerLocaleData",function(){return m}),n.d(e,"formatDate",function(){return et}),n.d(e,"formatCurrency",function(){return St}),n.d(e,"formatNumber",function(){return Et}),n.d(e,"formatPercent",function(){return kt}),n.d(e,"NgLocaleLocalization",function(){return It}),n.d(e,"NgLocalization",function(){return Dt}),n.d(e,"registerLocaleData",function(){return m}),n.d(e,"Plural",function(){return b}),n.d(e,"NumberFormatStyle",function(){return y}),n.d(e,"FormStyle",function(){return _}),n.d(e,"TranslationWidth",function(){return w}),n.d(e,"FormatWidth",function(){return x}),n.d(e,"NumberSymbol",function(){return C}),n.d(e,"WeekDay",function(){return S}),n.d(e,"getNumberOfCurrencyDigits",function(){return G}),n.d(e,"getCurrencySymbol",function(){return X}),n.d(e,"getLocaleDayPeriods",function(){return E}),n.d(e,"getLocaleDayNames",function(){return O}),n.d(e,"getLocaleMonthNames",function(){return T}),n.d(e,"getLocaleId",function(){return k}),n.d(e,"getLocaleEraNames",function(){return A}),n.d(e,"getLocaleWeekEndRange",function(){return P}),n.d(e,"getLocaleFirstDayOfWeek",function(){return D}),n.d(e,"getLocaleDateFormat",function(){return I}),n.d(e,"getLocaleDateTimeFormat",function(){return j}),n.d(e,"getLocaleExtraDayPeriodRules",function(){return z}),n.d(e,"getLocaleExtraDayPeriods",function(){return H}),n.d(e,"getLocalePluralCase",function(){return V}),n.d(e,"getLocaleTimeFormat",function(){return R}),n.d(e,"getLocaleNumberSymbol",function(){return M}),n.d(e,"getLocaleNumberFormat",function(){return F}),n.d(e,"getLocaleCurrencyName",function(){return B}),n.d(e,"getLocaleCurrencySymbol",function(){return N}),n.d(e,"\u0275parseCookieValue",function(){return jt}),n.d(e,"CommonModule",function(){return ze}),n.d(e,"DeprecatedI18NPipesModule",function(){return He}),n.d(e,"NgClass",function(){return Mt}),n.d(e,"NgForOf",function(){return Bt}),n.d(e,"NgForOfContext",function(){return Nt}),n.d(e,"NgIf",function(){return Lt}),n.d(e,"NgIfContext",function(){return zt}),n.d(e,"NgPlural",function(){return qt}),n.d(e,"NgPluralCase",function(){return Gt}),n.d(e,"NgStyle",function(){return Kt}),n.d(e,"NgSwitch",function(){return Ut}),n.d(e,"NgSwitchCase",function(){return Yt}),n.d(e,"NgSwitchDefault",function(){return Xt}),n.d(e,"NgTemplateOutlet",function(){return Zt}),n.d(e,"NgComponentOutlet",function(){return Ft}),n.d(e,"DOCUMENT",function(){return We}),n.d(e,"AsyncPipe",function(){return Se}),n.d(e,"DatePipe",function(){return Ae}),n.d(e,"I18nPluralPipe",function(){return Pe}),n.d(e,"I18nSelectPipe",function(){return Ie}),n.d(e,"JsonPipe",function(){return Re}),n.d(e,"LowerCasePipe",function(){return ke}),n.d(e,"CurrencyPipe",function(){return Fe}),n.d(e,"DecimalPipe",function(){return je}),n.d(e,"PercentPipe",function(){return Me}),n.d(e,"SlicePipe",function(){return Ve}),n.d(e,"UpperCasePipe",function(){return Te}),n.d(e,"TitleCasePipe",function(){return Oe}),n.d(e,"DeprecatedDatePipe",function(){return fe}),n.d(e,"DeprecatedCurrencyPipe",function(){return be}),n.d(e,"DeprecatedDecimalPipe",function(){return ve}),n.d(e,"DeprecatedPercentPipe",function(){return ye}),n.d(e,"\u0275PLATFORM_BROWSER_ID",function(){return Ue}),n.d(e,"\u0275PLATFORM_SERVER_ID",function(){return Ye}),n.d(e,"\u0275PLATFORM_WORKER_APP_ID",function(){return Xe}),n.d(e,"\u0275PLATFORM_WORKER_UI_ID",function(){return qe}),n.d(e,"isPlatformBrowser",function(){return Ge}),n.d(e,"isPlatformServer",function(){return Ke}),n.d(e,"isPlatformWorkerApp",function(){return Ze}),n.d(e,"isPlatformWorkerUi",function(){return Qe}),n.d(e,"VERSION",function(){return Je}),n.d(e,"PlatformLocation",function(){return o}
1),n.d(e,"LOCATION_INITIALIZED",function(){return a}),n.d(e,"LocationStrategy",function(){return s}),n.d(e,"APP_BASE_HREF",function(){return l}),n.d(e,"HashLocationStrategy",function(){return h}),n.d(e,"PathLocationStrategy",function(){return d}),n.d(e,"Location",function(){return u});var i=n("CcnG"),r=n("mrSG"),o=function(){},a=new i.InjectionToken("Location Initialized"),s=function(){},l=new i.InjectionToken("appBaseHref"),u=function(){function t(e){var n=this;this._subject=new i.EventEmitter,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(c(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,c(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function c(t){return t.replace(/\/index.html$/,"")}var h=function(t){function e(e,n){var i=t.call(this)||this;return i._platformLocation=e,i._baseHref="",null!=n&&(i._baseHref=n),i}return Object(r.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1,e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=u.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+u.normalizeQueryParams(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+u.normalizeQueryParams(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),d=function(t){function e(e,n){var i=t.call(this)||this;if(i._platformLocation=e,null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=n,i}return Object(r.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1,e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return u.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+u.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+u.normalizeQueryParams(i));this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+u.normalizeQueryParams(i));this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),p=void 0,f=["en",[["a","p"],["AM","PM"],p],[["AM","PM"],p,p],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],p,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],p,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",p,"{1} 'at' {0}",p],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],g={};function m(t,e,n){"string"!=typeof e&&(n=e,e=t[0]),e=e.toLowerCase().replace(/_/g,"-"),g[e]=t,n&&(g[e][19]=n)}var v={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,0],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",0],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",0],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",0],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",0],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",0],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",0],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,0],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UZS:[void 0,void 0,0],VEF:[void 0,"Bs"],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},y=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scie
1ntific=3]="Scientific",t}({}),b=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),_=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),w=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),x=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),C=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({}),S=function(t){return t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t}({});function k(t){return Y(t)[0]}function E(t,e,n){var i=Y(t);return W(W([i[1],i[2]],e),n)}function O(t,e,n){var i=Y(t);return W(W([i[3],i[4]],e),n)}function T(t,e,n){var i=Y(t);return W(W([i[5],i[6]],e),n)}function A(t,e){return W(Y(t)[7],e)}function D(t){return Y(t)[8]}function P(t){return Y(t)[9]}function I(t,e){return W(Y(t)[10],e)}function R(t,e){return W(Y(t)[11],e)}function j(t,e){return W(Y(t)[12],e)}function M(t,e){var n=Y(t),i=n[13][e];if(void 0===i){if(e===C.CurrencyDecimal)return n[13][C.Decimal];if(e===C.CurrencyGroup)return n[13][C.Group]}return i}function F(t,e){return Y(t)[14][e]}function N(t){return Y(t)[15]||null}function B(t){return Y(t)[16]||null}function V(t){return Y(t)[18]}function L(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function z(t){var e=Y(t);return L(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?U(t):[U(t[0]),U(t[1])]})}function H(t,e,n){var i=Y(t);return L(i),W(W([i[19][0],i[19][1]],e)||[],n)||[]}function W(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function U(t){var e=Object(r.c)(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function Y(t){var e=t.toLowerCase().replace(/_/g,"-"),n=g[e];if(n)return n;var i=e.split("-")[0];if(n=g[i])return n;if("en"===i)return f;throw new Error('Missing locale data for the locale "'+t+'".')}function X(t,e,n){void 0===n&&(n="en");var i=function(t){return Y(t)[17]}(n)[t]||v[t]||[],r=i[1];return"narrow"===e&&"string"==typeof r?r:i[0]||t}var q=2;function G(t){var e,n=v[t];return n&&(e=n[2]),"number"==typeof e?e:q}var K=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Z={},Q=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,J=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),$=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.Milliseconds=6]="Milliseconds",t[t.Day=7]="Day",t}({}),tt=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function et(t,e,n,i){var o=function(t){if(pt(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=Object(r.c)(t.split("-").map(function(t){return+t}),3);return new Date(i[0],i[1]-1,i[2])}if(e=t.match(K))return dt(e)}var o=new Date(t);if(!pt(o))throw new Error('Unable to convert "'+t+'" into a date');return o}(t);e=function t(e,n){var i=k(e);if(Z[i]=Z[i]||{},Z[i][n])return Z[i][n];var r="";switch(n){case"shortDate":r=I(e,x.Short);break;case"mediumDate":r=I(e,x.Medium);break;case"longDate":r=I(e,x.Long);break;case"fullDate":r=I(e,x.Full);break;case"shortTime":r=R(e,x.Short);break;case"mediumTime":r=R(e,x.Medium);break;case"longTime":r=R(e,x.Long);break;case"fullTime":r=R(e,x.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");r=nt(j(e,x.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),l=t(e,"mediumDate");r=nt(j(e,x.Medium),[s,l]);break;case"long":var u=t(e,"longTime"),c=t(e,"longDate");r=nt(j(e,x.Long),[u,c]);break;case"full":var h=t(e,"fullTime"),d=t(e,"fullDate");r=nt(j(e,x.Full),[h,d])}return r&&(Z[i][n]=r),r}(n,e)||e;for(var a,s=[];e;){if(!(a=Q.exec(e))){s.push(e);break}var l=(s=s.concat(a.slice(1))).pop();if(!l)break;e=l}var u=o.getTimezoneOffset();i&&(u=ht(i,u),o=function(t,e,n){var i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(ht(e,i)-i))}(o,i));var c="";
1return s.forEach(function(t){var e=function(t){if(ct[t])return ct[t];var e;switch(t){case"G":case"GG":case"GGG":e=ot(tt.Eras,w.Abbreviated);break;case"GGGG":e=ot(tt.Eras,w.Wide);break;case"GGGGG":e=ot(tt.Eras,w.Narrow);break;case"y":e=rt($.FullYear,1,0,!1,!0);break;case"yy":e=rt($.FullYear,2,0,!0,!0);break;case"yyy":e=rt($.FullYear,3,0,!1,!0);break;case"yyyy":e=rt($.FullYear,4,0,!1,!0);break;case"M":case"L":e=rt($.Month,1,1);break;case"MM":case"LL":e=rt($.Month,2,1);break;case"MMM":e=ot(tt.Months,w.Abbreviated);break;case"MMMM":e=ot(tt.Months,w.Wide);break;case"MMMMM":e=ot(tt.Months,w.Narrow);break;case"LLL":e=ot(tt.Months,w.Abbreviated,_.Standalone);break;case"LLLL":e=ot(tt.Months,w.Wide,_.Standalone);break;case"LLLLL":e=ot(tt.Months,w.Narrow,_.Standalone);break;case"w":e=ut(1);break;case"ww":e=ut(2);break;case"W":e=ut(1,!0);break;case"d":e=rt($.Date,1);break;case"dd":e=rt($.Date,2);break;case"E":case"EE":case"EEE":e=ot(tt.Days,w.Abbreviated);break;case"EEEE":e=ot(tt.Days,w.Wide);break;case"EEEEE":e=ot(tt.Days,w.Narrow);break;case"EEEEEE":e=ot(tt.Days,w.Short);break;case"a":case"aa":case"aaa":e=ot(tt.DayPeriods,w.Abbreviated);break;case"aaaa":e=ot(tt.DayPeriods,w.Wide);break;case"aaaaa":e=ot(tt.DayPeriods,w.Narrow);break;case"b":case"bb":case"bbb":e=ot(tt.DayPeriods,w.Abbreviated,_.Standalone,!0);break;case"bbbb":e=ot(tt.DayPeriods,w.Wide,_.Standalone,!0);break;case"bbbbb":e=ot(tt.DayPeriods,w.Narrow,_.Standalone,!0);break;case"B":case"BB":case"BBB":e=ot(tt.DayPeriods,w.Abbreviated,_.Format,!0);break;case"BBBB":e=ot(tt.DayPeriods,w.Wide,_.Format,!0);break;case"BBBBB":e=ot(tt.DayPeriods,w.Narrow,_.Format,!0);break;case"h":e=rt($.Hours,1,-12);break;case"hh":e=rt($.Hours,2,-12);break;case"H":e=rt($.Hours,1);break;case"HH":e=rt($.Hours,2);break;case"m":e=rt($.Minutes,1);break;case"mm":e=rt($.Minutes,2);break;case"s":e=rt($.Seconds,1);break;case"ss":e=rt($.Seconds,2);break;case"S":e=rt($.Milliseconds,1);break;case"SS":e=rt($.Milliseconds,2);break;case"SSS":e=rt($.Milliseconds,3);break;case"Z":case"ZZ":case"ZZZ":e=at(J.Short);break;case"ZZZZZ":e=at(J.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=at(J.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=at(J.Long);break;default:return null}return ct[t]=e,e}(t);c+=e?e(o,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function nt(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function it(t,e,n,i,r){void 0===n&&(n="-");var o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=n));for(var a=String(t);a.length<e;)a="0"+a;return i&&(a=a.substr(a.length-e)),o+a}function rt(t,e,n,i,r){return void 0===n&&(n=0),void 0===i&&(i=!1),void 0===r&&(r=!1),function(o,a){var s=function(t,e,n){switch(t){case $.FullYear:return e.getFullYear();case $.Month:return e.getMonth();case $.Date:return e.getDate();case $.Hours:return e.getHours();case $.Minutes:return e.getMinutes();case $.Seconds:return e.getSeconds();case $.Milliseconds:var i=1===n?100:2===n?10:1;return Math.round(e.getMilliseconds()/i);case $.Day:return e.getDay();default:throw new Error('Unknown DateType value "'+t+'".')}}(t,o,e);return(n>0||s>-n)&&(s+=n),t===$.Hours&&0===s&&-12===n&&(s=12),it(s,e,M(a,C.MinusSign),i,r)}}function ot(t,e,n,i){return void 0===n&&(n=_.Format),void 0===i&&(i=!1),function(r,o){return function(t,e,n,i,r,o){switch(n){case tt.Months:return T(e,r,i)[t.getMonth()];case tt.Days:return O(e,r,i)[t.getDay()];case tt.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var l,u=z(e),c=H(e,r,i);if(u.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],i=t[1],r=i.hours;a>=n.hours&&s>=n.minutes&&(a<r||a===r&&s<i.minutes)&&(l=c[e])}else t.hours===a&&t.minutes===s&&(l=c[e])}),l)return l}return E(e,r,i)[a<12?0:1];case tt.Eras:return A(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(r,o,t,e,n,i)}}function at(t){return function(e,n,i){var r=-1*i,o=M(n,C.MinusSign),a=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case J.Short:return(r>=0?"+":"")+it(a,2,o)+it(Math.abs(r%60),2,o);case J.ShortGMT:return"GMT"+(r>=0?"+":"")+it(a,1,o);case J.Long:return"GMT"+(r>=0?"+":"")+it(a,2,o)+":"+it(Math.abs(r%60),2,o);case J.Extended:return 0===i?"Z":(r>=0?"+":"")+it(a,2,o)+":"+it(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}var st=0,lt=4;function ut(t,e){return void 0===e&&(e=!1),function(n,i){var r,o,a,s;if(e){var l=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,u=n.getDate();r=1+Math.floor((u+l)/7)}else{var c=(a=n.getFullYear(),s=new Date(a,st,1).getDay(),new Date(a,0,1+(s<=lt?lt:lt+7)-s)),h=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(lt-o.getDay()))).getTime()-c.getTime();r=1+Math.round(h/6048e5)}return it(r,t,M(i,C.MinusSign))}}var ct={};function ht(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function dt(t){var e=new Date(0),n=0,i=0,r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,s=Number(t[5]||0)-i,l=Number(t[6]||0),u=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,l,u),e}function pt(t){return t instanceof Date&&!isNaN(t.valueOf())}
1var ft=/^(\d+)?\.((\d+)(-(\d+))?)?$/,gt=22,mt=".",vt="0",yt=";",bt=",",_t="#",wt="\xa4",xt="%";function Ct(t,e,n,i,r,o,a){void 0===a&&(a=!1);var s="",l=!1;if(isFinite(t)){var u=function(e){var n,i,r,o,a,s=Math.abs(t)+"",l=0;for((i=s.indexOf(mt))>-1&&(s=s.replace(mt,"")),(r=s.search(/e/i))>0?(i<0&&(i=r),i+=+s.slice(r+1),s=s.substring(0,r)):i<0&&(i=s.length),r=0;s.charAt(r)===vt;r++);if(r===(a=s.length))n=[0],i=1;else{for(a--;s.charAt(a)===vt;)a--;for(i-=r,n=[],o=0;r<=a;r++,o++)n[o]=Number(s.charAt(r))}return i>gt&&(n=n.splice(0,gt-1),l=i-1,i=1),{digits:n,exponent:l,integerLen:i}}();a&&(u=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(u));var c=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){var p=o.match(ft);if(null===p)throw new Error(o+" is not a valid digit info");var f=p[1],g=p[3],m=p[5];null!=f&&(c=Tt(f)),null!=g&&(h=Tt(g)),null!=m?d=Tt(m):null!=g&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(e,r),n),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(var l=a;l<i.length;l++)i[l]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,a=o+1),i[0]=0;for(var u=1;u<a;u++)i[u]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r<Math.max(0,o);r++)i.push(0);var h=0!==o,d=e+t.integerLen,p=i.reduceRight(function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,h&&(0===i[n]&&n>=d?i.pop():h=!1),e>=10?1:0},0);p&&(i.unshift(p),t.integerLen++)}(u,h,d);var v=u.digits,y=u.integerLen,b=u.exponent,_=[];for(l=v.every(function(t){return!t});y<c;y++)v.unshift(0);for(;y<0;y++)v.unshift(0);y>0?_=v.splice(y,v.length):(_=v,v=[0]);var w=[];for(v.length>=e.lgSize&&w.unshift(v.splice(-e.lgSize,v.length).join(""));v.length>e.gSize;)w.unshift(v.splice(-e.gSize,v.length).join(""));v.length&&w.unshift(v.join("")),s=w.join(M(n,i)),_.length&&(s+=M(n,r)+_.join("")),b&&(s+=M(n,C.Exponential)+"+"+b)}else s=M(n,C.Infinity);return t<0&&!l?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function St(t,e,n,i,r){var o=Ot(F(e,y.Currency),M(e,C.MinusSign));return o.minFrac=G(i),o.maxFrac=o.minFrac,Ct(t,o,e,C.CurrencyGroup,C.CurrencyDecimal,r).replace(wt,n).replace(wt,"")}function kt(t,e,n){return Ct(t,Ot(F(e,y.Percent),M(e,C.MinusSign)),e,C.Group,C.Decimal,n,!0).replace(new RegExp(xt,"g"),M(e,C.PercentSign))}function Et(t,e,n){return Ct(t,Ot(F(e,y.Decimal),M(e,C.MinusSign)),e,C.Group,C.Decimal,n)}function Ot(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(yt),r=i[0],o=i[1],a=-1!==r.indexOf(mt)?r.split(mt):[r.substring(0,r.lastIndexOf(vt)+1),r.substring(r.lastIndexOf(vt)+1)],s=a[0],l=a[1]||"";n.posPre=s.substr(0,s.indexOf(_t));for(var u=0;u<l.length;u++){var c=l.charAt(u);c===vt?n.minFrac=n.maxFrac=u+1:c===_t?n.maxFrac=u+1:n.posSuf+=c}var h=s.split(bt);if(n.gSize=h[1]?h[1].length:0,n.lgSize=h[2]||h[1]?(h[2]||h[1]).length:0,o){var d=r.length-n.posPre.length-n.posSuf.length,p=o.indexOf(_t);n.negPre=o.substr(0,p).replace(/'/g,""),n.negSuf=o.substr(p+d).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function Tt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var At=new i.InjectionToken("UseV4Plurals"),Dt=function(){};function Pt(t,e,n,i){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}var It=function(t){function e(e,n){var i=t.call(this)||this;return i.locale=e,i.deprecatedPluralFn=n,i}return Object(r.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):V(e||this.locale)(t)){case b.Zero:return"zero";case b.One:return"one";case b.Two:return"two";case b.Few:return"few";case b.Many:return"many";default:return"other"}},e}(Dt);function Rt(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,i=n.toString().replace(/^[^.]*\.?/,""),r=Math.floor(Math.abs(n)),o=i.length,a=parseInt(i,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?b.One:b.Other;
1case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?b.One:b.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===r||1===n?b.One:b.Other;case"ar":return 0===n?b.Zero:1===n?b.One:2===n?b.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?b.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?b.Many:b.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===r&&0===o?b.One:b.Other;case"be":return n%10==1&&n%100!=11?b.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?b.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?b.Many:b.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?b.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?b.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?b.Few:0!==n&&n%1e6==0?b.Many:b.Other;case"bs":case"hr":case"sr":return 0===o&&r%10==1&&r%100!=11||a%10==1&&a%100!=11?b.One:0===o&&r%10===Math.floor(r%10)&&r%10>=2&&r%10<=4&&!(r%100>=12&&r%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?b.Few:b.Other;case"cs":case"sk":return 1===r&&0===o?b.One:r===Math.floor(r)&&r>=2&&r<=4&&0===o?b.Few:0!==o?b.Many:b.Other;case"cy":return 0===n?b.Zero:1===n?b.One:2===n?b.Two:3===n?b.Few:6===n?b.Many:b.Other;case"da":return 1===n||0!==s&&(0===r||1===r)?b.One:b.Other;case"dsb":case"hsb":return 0===o&&r%100==1||a%100==1?b.One:0===o&&r%100==2||a%100==2?b.Two:0===o&&r%100===Math.floor(r%100)&&r%100>=3&&r%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?b.Few:b.Other;case"ff":case"fr":case"hy":case"kab":return 0===r||1===r?b.One:b.Other;case"fil":return 0===o&&(1===r||2===r||3===r)||0===o&&r%10!=4&&r%10!=6&&r%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?b.One:b.Other;case"ga":return 1===n?b.One:2===n?b.Two:n===Math.floor(n)&&n>=3&&n<=6?b.Few:n===Math.floor(n)&&n>=7&&n<=10?b.Many:b.Other;case"gd":return 1===n||11===n?b.One:2===n||12===n?b.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?b.Few:b.Other;case"gv":return 0===o&&r%10==1?b.One:0===o&&r%10==2?b.Two:0!==o||r%100!=0&&r%100!=20&&r%100!=40&&r%100!=60&&r%100!=80?0!==o?b.Many:b.Other:b.Few;case"he":return 1===r&&0===o?b.One:2===r&&0===o?b.Two:0!==o||n>=0&&n<=10||n%10!=0?b.Other:b.Many;case"is":return 0===s&&r%10==1&&r%100!=11||0!==s?b.One:b.Other;case"ksh":return 0===n?b.Zero:1===n?b.One:b.Other;case"kw":case"naq":case"se":case"smn":return 1===n?b.One:2===n?b.Two:b.Other;case"lag":return 0===n?b.Zero:0!==r&&1!==r||0===n?b.Other:b.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?b.Few:0!==a?b.Many:b.Other:b.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?b.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?b.One:b.Other;case"mk":return 0===o&&r%10==1||a%10==1?b.One:b.Other;case"mt":return 1===n?b.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?b.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?b.Many:b.Other;case"pl":return 1===r&&0===o?b.One:0===o&&r%10===Math.floor(r%10)&&r%10>=2&&r%10<=4&&!(r%100>=12&&r%100<=14)?b.Few:0===o&&1!==r&&r%10===Math.floor(r%10)&&r%10>=0&&r%10<=1||0===o&&r%10===Math.floor(r%10)&&r%10>=5&&r%10<=9||0===o&&r%100===Math.floor(r%100)&&r%100>=12&&r%100<=14?b.Many:b.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?b.One:b.Other;case"ro":return 1===r&&0===o?b.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?b.Few:b.Other;case"ru":case"uk":return 0===o&&r%10==1&&r%100!=11?b.One:0===o&&r%10===Math.floor(r%10)&&r%10>=2&&r%10<=4&&!(r%100>=12&&r%100<=14)?b.Few:0===o&&r%10==0||0===o&&r%10===Math.floor(r%10)&&r%10>=5&&r%10<=9||0===o&&r%100===Math.floor(r%100)&&r%100>=11&&r%100<=14?b.Many:b.Other;case"shi":return 0===r||1===n?b.One:n===Math.floor(n)&&n>=2&&n<=10?b.Few:b.Other;case"si":return 0===n||1===n||0===r&&1===a?b.One:b.Other;
1case"sl":return 0===o&&r%100==1?b.One:0===o&&r%100==2?b.Two:0===o&&r%100===Math.floor(r%100)&&r%100>=3&&r%100<=4||0!==o?b.Few:b.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?b.One:b.Other;default:return b.Other}}function jt(t,e){e=encodeURIComponent(e);try{for(var n=Object(r.e)(t.split(";")),i=n.next();!i.done;i=n.next()){var o=i.value,a=o.indexOf("="),s=Object(r.c)(-1==a?[o,""]:[o.slice(0,a),o.slice(a+1)],2),l=s[1];if(s[0].trim()===e)return decodeURIComponent(l)}}catch(t){u={error:t}}finally{try{i&&!i.done&&(c=n.return)&&c.call(n)}finally{if(u)throw u.error}}return null;var u,c}var Mt=function(){function t(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(i["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(i["\u0275stringify"])(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),Ft=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(r,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}(),Nt=function(){function t(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Bt=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(i.isDevMode)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n}
1,t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Nt(null,e.ngForOf,-1,-1),r),a=new Vt(t,o);n.push(a)}else null==r?e._viewContainer.remove(i):(o=e._viewContainer.get(i),e._viewContainer.move(o,r),a=new Vt(t,o),n.push(a))});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);i=0;for(var r=this._viewContainer.length;i<r;i++){var o=this._viewContainer.get(i);o.context.index=i,o.context.count=r}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}(),Vt=function(t,e){this.record=t,this.view=e},Lt=function(){function t(t,e){this._viewContainer=t,this._context=new zt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){Ht("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){Ht("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}(),zt=function(){this.$implicit=null,this.ngIf=null};function Ht(t,e){if(e&&!e.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Object(i["\u0275stringify"])(e)+"'.")}var Wt=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Ut=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t}(),Yt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Wt(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}(),Xt=function(){return function(t,e,n){n._addDefault(new Wt(t,e))}}(),qt=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=Pt(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}(),Gt=function(){return function(t,e,n,i){this.value=t;var r=!isNaN(Number(t));i.addCase(r?"="+t:t,new Wt(n,e))}}(),Kt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}
1),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=Object(r.c)(t.split("."),2),i=n[0],o=n[1];null!=(e=null!=e&&o?""+e+o:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)},t}(),Zt=function(){function t(t){this._viewContainerRef=t}return t.prototype.ngOnChanges=function(t){this._shouldRecreateView(t)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},t.prototype._shouldRecreateView=function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)},t.prototype._hasContextShapeChanged=function(t){var e,n,i=Object.keys(t.previousValue||{}),o=Object.keys(t.currentValue||{});if(i.length===o.length){try{for(var a=Object(r.e)(o),s=a.next();!s.done;s=a.next())if(-1===i.indexOf(s.value))return!0}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return!1}return!0},t.prototype._updateExistingContext=function(t){try{for(var e=Object(r.e)(Object.keys(t)),n=e.next();!n.done;n=e.next()){var i=n.value;this._viewRef.context[i]=this.ngTemplateOutletContext[i]}}catch(t){o={error:t}}finally{try{n&&!n.done&&(a=e.return)&&a.call(e)}finally{if(o)throw o.error}}var o,a},t}(),Qt=[Mt,Ft,Bt,Lt,Zt,Kt,Ut,Yt,Xt,qt,Gt];function Jt(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(i["\u0275stringify"])(t)+"'")}var $t=function(){function t(){}return t.format=function(t,e,n,i){void 0===i&&(i={});var r=i.currency,o=i.currencyAsSymbol,a=void 0!==o&&o,s={minimumIntegerDigits:i.minimumIntegerDigits,minimumFractionDigits:i.minimumFractionDigits,maximumFractionDigits:i.maximumFractionDigits,style:y[n].toLowerCase()};return n==y.Currency&&(s.currency="string"==typeof r?r:void 0,s.currencyDisplay=a?"symbol":"code"),new Intl.NumberFormat(e,s).format(t)},t}(),te=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,ee={yMMMdjms:he(ce([le("year",1),ue("month",3),le("day",1),le("hour",1),le("minute",1),le("second",1)])),yMdjm:he(ce([le("year",1),le("month",1),le("day",1),le("hour",1),le("minute",1)])),yMMMMEEEEd:he(ce([le("year",1),ue("month",4),ue("weekday",4),le("day",1)])),yMMMMd:he(ce([le("year",1),ue("month",4),le("day",1)])),yMMMd:he(ce([le("year",1),ue("month",3),le("day",1)])),yMd:he(ce([le("year",1),le("month",1),le("day",1)])),jms:he(ce([le("hour",1),le("second",1),le("minute",1)])),jm:he(ce([le("hour",1),le("minute",1)]))},ne={yyyy:he(le("year",4)),yy:he(le("year",2)),y:he(le("year",1)),MMMM:he(ue("month",4)),MMM:he(ue("month",3)),MM:he(le("month",2)),M:he(le("month",1)),LLLL:he(ue("month",4)),L:he(ue("month",1)),dd:he(le("day",2)),d:he(le("day",1)),HH:ie(re(he(se(le("hour",2),!1)))),H:re(he(se(le("hour",1),!1))),hh:ie(re(he(se(le("hour",2),!0)))),h:re(he(se(le("hour",1),!0))),jj:he(le("hour",2)),j:he(le("hour",1)),mm:ie(he(le("minute",2))),m:he(le("minute",1)),ss:ie(he(le("second",2))),s:he(le("second",1)),sss:he(le("second",3)),EEEE:he(ue("weekday",4)),EEE:he(ue("weekday",3)),EE:he(ue("weekday",2)),E:he(ue("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(he(se(le("hour",1),!0))),Z:ae("short"),z:ae("long"),ww:he({}),w:he({}),G:he(ue("era",1)),GG:he(ue("era",2)),GGG:he(ue("era",3)),GGGG:he(ue("era",4))};function ie(t){return function(e,n){var i=t(e,n);return 1==i.length?"0"+i:i}}function re(t){return function(e,n){return t(e,n).split(" ")[0]}}function oe(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function ae(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var i=oe(t,n,e);return i?i.substring(3):""}}function se(t,e){return t.hour12=e,t}function le(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function ue(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function ce(t){return t.reduce(function(t,e){return Object(r.a)({},t,e)},{})}function he(t){return function(e,n){return oe(e,n,t)}}var de=new Map,pe=function(){function t(){}return t.format=function(t,e,n){return function(t,e,n){var i=ee[t];if(i)return i(e,n);var r=t,o=de.get(r);if(!o){o=[];var a=void 0;te.exec(t);for(var s=t;s;)(a=te.exec(s))?s=(o=o.concat(a.slice(1))).pop():(o.push(s),s=null);de.set(r,o)}return o.reduce(function(t,i){var r=ne[i];return t+(r?r(e,n):function(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(i))},"")}(n,t,e)},t}(),fe=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;var i;if("string"==typeof e&&(e=e.trim()),ge(e))i=e;else if(isNaN(e-parseFloat(e)))if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=Object(r.c)(e.split("-").map(function(t){return parseInt(t,10)}),3);
1i=new Date(o[0],o[1]-1,o[2])}else i=new Date(e);else i=new Date(parseFloat(e));if(!ge(i)){var a=void 0;if("string"!=typeof e||!(a=e.match(K)))throw Jt(t,e);i=dt(a)}return pe.format(i,this._locale,t._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t}();function ge(t){return t instanceof Date&&!isNaN(t.valueOf())}function me(t,e,n,i,r,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw Jt(t,n);var s,l,u;if(i!==y.Currency&&(s=1,l=0,u=3),r){var c=r.match(ft);if(null===c)throw new Error(r+" is not a valid digit info for number pipes");null!=c[1]&&(s=Tt(c[1])),null!=c[3]&&(l=Tt(c[3])),null!=c[5]&&(u=Tt(c[5]))}return $t.format(n,e,i,{minimumIntegerDigits:s,minimumFractionDigits:l,maximumFractionDigits:u,currency:o,currencyAsSymbol:a})}var ve=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return me(t,this._locale,e,y.Decimal,n)},t}(),ye=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return me(t,this._locale,e,y.Percent,n)},t}(),be=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,i,r){return void 0===n&&(n="USD"),void 0===i&&(i=!1),me(t,this._locale,e,y.Currency,r,n,i)},t}(),_e=[ve,ye,be,fe],we=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),xe=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),Ce=new we,Se=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,i.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(Object(i["\u0275isPromise"])(e))return xe;if(Object(i["\u0275isObservable"])(e))return Ce;throw Jt(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}(),ke=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw Jt(t,e);return e.toLowerCase()},t}(),Ee
vendor: 7,067 bytes, line 1
1=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,
1Oe=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw Jt(t,e);return e.replace(Ee,function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()})},t}(),Te=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw Jt(t,e);return e.toUpperCase()},t}(),Ae=function(){function t(t){this.locale=t}return t.prototype.transform=function(e,n,i,r){if(void 0===n&&(n="mediumDate"),null==e||""===e||e!=e)return null;try{return et(e,n,r||this.locale,i)}catch(e){throw Jt(t,e.message)}},t}(),De=/#/g,Pe=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw Jt(t,n);return n[Pt(e,Object.keys(n),this._localization,i)].replace(De,e.toString())},t}(),Ie=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw Jt(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}(),Re=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}(),je=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,i){if(Ne(e))return null;i=i||this._locale;try{return Et(Be(e),i,n)}catch(e){throw Jt(t,e.message)}},t}(),Me=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,i){if(Ne(e))return null;i=i||this._locale;try{return kt(Be(e),i,n)}catch(e){throw Jt(t,e.message)}},t}(),Fe=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,i,r,o){if(void 0===i&&(i="symbol"),Ne(e))return null;o=o||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");var a=n||"USD";"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?X(a,"symbol"===i?"wide":"narrow",o):i);try{return St(Be(e),o,a,n,r)}catch(e){throw Jt(t,e.message)}},t}();function Ne(t){return null==t||""===t||t!=t}function Be(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}var Ve=function(){function t(){}return t.prototype.transform=function(e,n,i){if(null==e)return e;if(!this.supports(e))throw Jt(t,e);return e.slice(n,i)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}(),Le=[Se,Te,ke,Re,Ve,je,Me,Oe,Fe,Ae,Pe,Ie],ze=function(){},He=function(){},We=new i.InjectionToken("DocumentToken"),Ue="browser",Ye="server",Xe="browserWorkerApp",qe="browserWorkerUi";function Ge(t){return t===Ue}function Ke(t){return t===Ye}function Ze(t){return t===Xe}function Qe(t){return t===qe}var Je=new i.Version("6.0.0")},J9Y1:function(t,e,n){var i;!function(){function r(t,e,n){return t.call.apply(t.bind,arguments)}function o(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function a(t,e,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:o).apply(null,arguments)}var s=Date.now||function(){return+new Date},l=!!window.FontFace;function u(t,e,n,i){if(e=t.c.createElement(e),n)for(var r in n)n.hasOwnProperty(r)&&("style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return i&&e.appendChild(t.c.createTextNode(i)),e}function c(t,e,n){(t=t.c.getElementsByTagName(e)[0])||(t=document.documentElement),t.insertBefore(n,t.lastChild)}function h(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t,e,n){e=e||[],n=n||[];for(var i=t.className.split(/\s+/),r=0;r<e.length;r+=1){for(var o=!1,a=0;a<i.length;a+=1)if(e[r]===i[a]){o=!0;break}o||i.push(e[r])}for(e=[],r=0;r<i.length;r+=1){for(o=!1,a=0;a<n.length;a+=1)if(i[r]===n[a]){o=!0;break}o||e.push(i[r])}t.className=e.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(t,e){for(var n=t.className.split(/\s+/),i=0,r=n.length;i<r;i++)if(n[i]==e)return!0;return!1}function f(t,e,n){function i(){s&&r&&o&&(s(a),s=null)}e=u(t,"link",{rel:"stylesheet",href:e,media:"all"});var r=!1,o=!0,a=null,s=n||null;l?(e.onload=function(){r=!0,i()},e.onerror=function(){r=!0,a=Error("Stylesheet failed to load"),i()}):setTimeout(function(){r=!0,i()},0),c(t,"head",e)}function g(t,e,n,i){var r=t.c.getElementsByTagName("head")[0];if(r){var o=u(t,"script",{src:e}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&r.removeChild(o))},r.appendChild(o),setTimeout(function(){a||(a=!0,n&&n(Error("Script load timeout")))},i||5e3),o}return null}function m(){this.a=0,this.c=null}function v(t){return t.a++,function(){t.a--,b(t)}}function y(t,e){t.c=e,b(t)}function b(t){0==t.a&&t.c&&(t.c(),t.c=null)}function _(t){this.a=t||"-"}function w(t,e){this.c=t,this.f=4,this.a="n";var n=(e||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function x(t){var e=[];t=t.split(/,\s*/);for(var n=0;n<t.length;n++){var i=t[n].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?e.push("'"+i+"'"):e.push(i)}return e.join(",")}function C(t){return t.a+t.f}function S(t){var e="normal";return"o"===t.a?e="oblique":"i"===t.a&&(e="italic"),e}function k(t){var e=4,n="n",i=null;return t&&((i=t.match(/(normal|oblique|italic)/i))&&i[1]&&(n=i[1].substr(0,1).toLowerCase()),(i=t.match(/([1-9]00|normal|bold)/i))&&i[1]&&(/bold/i.test(i[1])?e=7:/[1-9]00/.test(i[1])&&(e=parseInt(i[1].substr(0,1),10)))),n+e}function E(t){if(t.g){var e=p(t.f,t.a.c("wf","active")),n=[],i=[t.a.c("wf","loading")];e||n.push(t.a.c("wf","inactive")),d(t.f,n,i)}O(t,"inactive")}function O(t,e,n){t.j&&t.h[e]&&(n?t.h[e](n.c,C(n)):t.h[e]())}function T(t,e){this.c=t,this.f=e,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function A(t){c(t.c,"body",t.a)}function D(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+x(t.c)+";font-style:"+S(t)+";font-weight:"+t.f+"00;"}function P(t,e,n,i,r,o){this.g=t,this.j=e,this.a=i,this.c=n,this.f=r||3e3,this.h=o||void 0}function I(t,e,n,i,r,o,a){this.v=t,this.B=e,this.c=n,this.a=i,this.s=a||"BESbswy",this.f={},this.w=r||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new T(this.c,this.s),this.h=new T(this.c,this.s),this.j=new T(this.c,this.s),this.m=new T(this.c,this.s),t=D(t=new w(this.a.c+",serif",C(this.a))),this.g.a.style.cssText=t,t=D(t=new w(this.a.c+",sans-serif",C(this.a))),this.h.a.style.cssText=t,t=D(t=new w("serif",C(this.a))),this.j.a.style.cssText=t,t=D(t=new w("sans-serif",C(this.a))),this.m.a.style.cssText=t,A(this.g),A(this.h),A(this.j),A(this.m)}_.prototype.c=function(t){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return e.join(this.a)},P.prototype.start=function(){var t=this.c.o.document,e=this,n=s(),i=new Promise(function(i,r){!function o(){s()-n>=e.f?r():t.fonts.load(function(t){return S(t)+" "+t.f+"00 300px "+x(t.c)}
vendor: 5,615 bytes, line 1
1(e.a),e.h).then(function(t){1<=t.length?i():setTimeout(o,25)},function(){r()})}()}),r=null,o=new Promise(function(t,n){r=setTimeout(n,e.f)});Promise.race([o,i]).then(function(){r&&(clearTimeout(r),r=null),e.g(e.a)},function(){e.j(e.a)})};var R={D:"serif",C:"sans-serif"},j=null;function M(){if(null===j){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);j=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return j}function F(t,e,n){for(var i in R)if(R.hasOwnProperty(i)&&e===t.f[R[i]]&&n===t.f[R[i]])return!0;return!1}function N(t,e){setTimeout(a(function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),e(this.a)},t),0)}function B(t,e,n){this.c=t,this.a=e,this.f=0,this.m=this.j=!1,this.s=n}I.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),function t(e){var n,i=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(n=i===e.f.serif&&r===e.f["sans-serif"])||(n=M()&&F(e,i,r)),n?s()-e.A>=e.w?M()&&F(e,i,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?N(e,e.v):N(e,e.B):function(e){setTimeout(a(function(){t(this)},e),50)}(e):N(e,e.v)}(this)};var V=null;function L(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),O(t,"active")):E(t.a))}function z(t){this.j=t,this.a=new function(){this.c={}},this.h=0,this.f=this.g=!0}function H(t,e,n,i,r){var o=0==--t.h;(t.f||t.g)&&setTimeout(function(){var t=r||null,s=i||{};if(0===n.length&&o)E(e.a);else{e.f+=n.length,o&&(e.j=o);var l,u=[];for(l=0;l<n.length;l++){var c=n[l],h=s[c.c],p=e.a,f=c;if(p.g&&d(p.f,[p.a.c("wf",f.c,C(f).toString(),"loading")]),O(p,"fontloading",f),p=null,null===V)if(window.FontFace){f=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);V=f?42<parseInt(f[1],10):!g}else V=!1;p=V?new P(a(e.g,e),a(e.h,e),e.c,c,e.s,h):new I(a(e.g,e),a(e.h,e),e.c,c,e.s,t,h),u.push(p)}for(l=0;l<u.length;l++)u[l].start()}},0)}function W(t,e){this.c=t,this.a=e}function U(t,e){this.c=t,this.a=e}B.prototype.g=function(t){var e=this.a;e.g&&d(e.f,[e.a.c("wf",t.c,C(t).toString(),"active")],[e.a.c("wf",t.c,C(t).toString(),"loading"),e.a.c("wf",t.c,C(t).toString(),"inactive")]),O(e,"fontactive",t),this.m=!0,L(this)},B.prototype.h=function(t){var e=this.a;if(e.g){var n=p(e.f,e.a.c("wf",t.c,C(t).toString(),"active")),i=[],r=[e.a.c("wf",t.c,C(t).toString(),"loading")];n||i.push(e.a.c("wf",t.c,C(t).toString(),"inactive")),d(e.f,i,r)}O(e,"fontinactive",t),L(this)},z.prototype.load=function(t){this.c=new function(t,e){this.a=t,this.o=e||t,this.c=this.o.document}(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(t,e,n){var i=[],r=n.timeout;!function(t){t.g&&d(t.f,[t.a.c("wf","loading")]),O(t,"loading")}(e),i=function(t,e,n){var i,r=[];for(i in e)if(e.hasOwnProperty(i)){var o=t.c[i];o&&r.push(o(e[i],n))}return r}(t.a,n,t.c);var o=new B(t.c,e,r);for(t.h=i.length,e=0,n=i.length;e<n;e++)i[e].load(function(e,n,i){H(t,o,e,n,i)})}(this,new function(t,e){this.c=t,this.f=t.o.document.documentElement,this.h=e,this.a=new _("-"),this.j=!1!==e.events,this.g=!1!==e.classes}(this.c,t),t)},W.prototype.load=function(t){var e=this,n=e.a.projectId,i=e.a.version;if(n){var r=e.c.o;g(this.c,(e.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(i?"?v="+i:""),function(i){i?t([]):(r["__MonotypeConfiguration__"+n]=function(){return e.a},function e(){if(r["__mti_fntLst"+n]){var i=r["__mti_fntLst"+n](),o=[];if(i)for(var a=0;a<i.length;a++){var s=i[a].fontfamily;o.push(void 0!=i[a].fontStyle&&void 0!=i[a].fontWeight?new w(s,i[a].fontStyle+i[a].fontWeight):new w(s))}t(o)}else setTimeout(function(){e()},50)}())}).id="__MonotypeAPIScript__"+n}else t([])},U.prototype.load=function(t){var e,n,i=this.a.urls||[],r=this.a.families||[],o=this.a.testStrings||{},a=new m;for(e=0,n=i.length;e<n;e++)f(this.c,i[e],v(a));var s=[];for(e=0,n=r.length;e<n;e++)if((i=r[e].split(":"))[1])for(var l=i[1].split(","),u=0;u<l.length;u+=1)s.push(new w(i[0],l[u]));else s.push(new w(i[0]));y(a,function(){t(s,o)})};var Y={latin:"BESbswy","latin-ext":"\xe7\xf6\xfc\u011f\u015f",cyrillic:"\u0439\u044f\u0416",greek:"\u03b1\u03b2\u03a3",khmer:"\u1780\u1781\u1782",Hanuman:"\u1780\u1781\u1782"},X={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},q={i:"i",italic:"i",n:"n",normal:"n"},G=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function K(t,e){this.c=t,this.a=e}var Z={Arimo:!0,Cousine:!0,Tinos:!0};function Q(t,e){this.c=t,this.a=e}function J(t,e){this.c=t,this.f=e,this.a=[]}K.prototype.load=function(t){var e=new m,n=this.c,i=new function(t,e){this.c=t||"https://fonts.googleapis.com/css",this.a=[],this.f=[],this.g=e||""}(this.a.api,this.a.text),r=this.a.families;!function(t,e){for(var n=e.length,i=0;i<n;i++){var r=e[i].split(":");3==r.length&&t.f.push(r.pop());var o="";2==r.length&&""!=r[1]&&(o=":"),t.a.push(r.join(o))}}(i,r);var o=new function(t){this.f=r,this.a=[],this.c={}}(0);!function(t){for(var e=t.f.length,n=0;n<e;n++){var i=t.f[n].split(":"),r=i[0].replace(/\+/g," "),o=["n4"];if(2<=i.length){var a;if(a=[],s=i[1])for(var s,l=(s=s.split(",")).length,u=0;u<l;u++){var c;if((c=s[u]).match(/^[\w-]+$/))if(null==(h=G.exec(c.toLowerCase())))c="";
1else{if(c=null==(c=h[2])||""==c?"n":q[c],null==(h=h[1])||""==h)h="4";else var h=X[h]||(isNaN(h)?"4":h.substr(0,1));c=[c,h].join("")}else c="";c&&a.push(c)}0<a.length&&(o=a),3==i.length&&(a=[],0<(i=(i=i[2])?i.split(","):a).length&&(i=Y[i[0]])&&(t.c[r]=i))}for(t.c[r]||(i=Y[r])&&(t.c[r]=i),i=0;i<o.length;i+=1)t.a.push(new w(r,o[i]))}}(o),f(n,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var e=t.a.length,n=[],i=0;i<e;i++)n.push(t.a[i].replace(/ /g,"+"));return e=t.c+"?family="+n.join("%7C"),0<t.f.length&&(e+="&subset="+t.f.join(",")),0<t.g.length&&(e+="&text="+encodeURIComponent(t.g)),e}(i),v(e)),y(e,function(){t(o.a,o.c,Z)})},Q.prototype.load=function(t){var e=this.a.id,n=this.c.o;e?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+e+".js",function(e){if(e)t([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){e=n.Typekit.config.fn;for(var i=[],r=0;r<e.length;r+=2)for(var o=e[r],a=e[r+1],s=0;s<a.length;s++)i.push(new w(o,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(t){}t(i)}},2e3):t([])},J.prototype.load=function(t){var e=this.f.id,n=this.c.o,i=this;e?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[e]=function(e,n){for(var r=0,o=n.fonts.length;r<o;++r){var a=n.fonts[r];i.a.push(new w(a.name,k("font-weight:"+a.weight+";font-style:"+a.style)))}t(i.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+e+".js",function(e){e&&t([])})):t([])};var $=new z(window);$.a.c.custom=function(t,e){return new U(e,t)},$.a.c.fontdeck=function(t,e){return new J(e,t)},$.a.c.monotype=function(t,e){return new W(e,t)},$.a.c.typekit=function(t,e){return new Q(e,t)},$.a.c.google=function(t,e){return new K(e,t)};var tt={load:a($.load,$)};void 0===(i=(function(){return tt}).call(e,n,e,t))||(t.exports=i)}()},JEAp:function(t,e,n){var i,r=r||function(t){"use strict";if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=function(){return t.URL||t.webkitURL||t},n=t.document.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in n,r=/constructor/i.test(t.HTMLElement)||t.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent),a=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},s=function(t){setTimeout(function(){"string"==typeof t?e().revokeObjectURL(t):t.remove()},4e4)},l=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},u=function(u,c,h){h||(u=l(u));var d,p=this,f="application/octet-stream"===u.type,g=function(){!function(t,e,n){for(var i=(e=[].concat(e)).length;i--;){var r=t["on"+e[i]];if("function"==typeof r)try{r.call(t,t)}catch(t){a(t)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,i)return d=e().createObjectURL(u),void setTimeout(function(){var t,e;n.href=d,n.download=c,t=n,e=new MouseEvent("click"),t.dispatchEvent(e),g(),s(d),p.readyState=p.DONE});!function(){if((o||f&&r)&&t.FileReader){var n=new FileReader;return n.onloadend=function(){var e=o?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,p.readyState=p.DONE,g()},n.readAsDataURL(u),void(p.readyState=p.INIT)}d||(d=e().createObjectURL(u)),f?t.location.href=d:t.open(d,"_blank")||(t.location.href=d),p.readyState=p.DONE,g(),s(d)}()},c=u.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=l(t)),navigator.msSaveOrOpenBlob(t,e)}:(c.abort=function(){},c.readyState=c.INIT=0,c.WRITING=1,c.DONE=2,c.error=c.onwritestart=c.onprogress=c.onwrite=c.onabort=c.onerror=c.onwriteend=null,function(t,e,n){return new u(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==t&&t.exports?t.exports.saveAs=r:null!==n("B9Yq")&&null!==n("PDX0")&&(void 0===(i=(function(){return r}).call(e,n,e,t))||(t.exports=i))},JcRv:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("xTla"),r=function(t){return function(e){var n=t[i.a]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},K9Ia:function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return h});var i=n("mrSG"),r=n("6blF"),o=n("FFOo"),a=n("pugT"),s=n("8g8A"),l=n("uMaO"),u=n("L/V9"),c=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i.b(e,t),e}(o.a),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i.b(e,t),e.prototype[u.a]=function(){return new c(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].next(t)},e.prototype.error=function(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new l.a(this,t))},e.prototype.asObservable=function(){var t=new r.a;return t.source=this,t},e.create=function(t,e){return new d(t,e)},e}(r.a),d=function(t){function e(e,n){var i=t.call(this)||this;return i.destination=e,i.source=n,i}return i.b(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):a.a.EMPTY},e}(h)},"L/V9":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber"},MGBS:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("mrSG"),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.b(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("FFOo").a)},McSo:function(t,e,n){"use strict";function i(t){return null!=t&&"object"==typeof t}n.d(e,"a",function(){return i})},NlKi:function(t,e,n){var i=n("jT1Q"),r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=r.Raven,a=new i;a.noConflict=function(){return r.Raven=o,a},a.afterLoad(),t.exports=a,t.exports.Client=i},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},PEPO:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.Hsva=function(t,e,n,i){this.h=t,this.s=e,this.v=n,this.a=i},e.Hsla=function(t,e,n,i){this.h=t,this.s=e,this.l=n,this.a=i},e.Rgba=function(t,e,n,i){this.r=t,this.g=e,this.b=n,this.a=i}},RdDz:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";return function(t,e,n){e=e||"",n=n||512;for(var i=atob(t),r=[],o=0;o<i.length;o+=n){for(var a=i.slice(o,o+n),s=new Array(a.length),l=0;l<a.length;l++)s[l]=a.charCodeAt(l);var u=new Uint8Array(s);r.push(u)}return new Blob(r,{type:e})}})?i.apply(e,[]):i)||(t.exports=r)},S1nX:function(t,e,n){"use strict";var i=n("mrSG"),r=n("K9Ia"),o=n("6blF"),a=n("FFOo"),s=n("pugT");function l(){return function(t){return t.lift(new u(t))}}var u=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new c(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.b(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(a.a),h=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i.b(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new p(this.getSubject(),this))),t.closed?(this._connection=null,t=s.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return l()(this)},e}(o.a).prototype,d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:h._subscribe},_isComplete:{value:h._isComplete,writable:!0},getSubject:{value:h.getSubject},connect:{value:h.connect},refCount:{value:h.refCount}},p=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i.b(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(r.b);function f(){return new r.a}function g(){return function(t){return l()((e=f,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,d);return i.source=t,i.subjectFactory=n,i})(t));var e}}n.d(e,"a",function(){return g})},S5XQ:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("DKTb"),r=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,i.a),e}}},"U/5H":function(t,e,n){var i,r;!function(o){"use strict";void 0===(r="function"==typeof(i=function(){if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,n,i,r,o,a,s,l,u,c,h,d,p,f,g,m,v,y,b,_,w={},x=/\s+/g,C=/left|right|inline/,S="Sortable"+(new Date).getTime(),k=window,E=k.document,O=k.parseInt,T=k.setTimeout,A=k.jQuery||k.Zepto,D=k.Polymer,P=!1,I="draggable"in E.createElement("div"),R=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((_=E.createElement("x")).style.cssText="pointer-events:auto","auto"===_.style.pointerEvents),j=!1,M=Math.abs,F=Math.min,N=[],B=[],V=it(function(t,e,n){if(n&&e.scroll){var i,r,o,a,c,h,d=n[S],p=e.scrollSensitivity,f=e.scrollSpeed,g=t.clientX,m=t.clientY,v=window.innerWidth,y=window.innerHeight;if(l!==n&&(l=n,u=e.scrollFn,!0===(s=e.scroll))){s=n;do{if(s.offsetWidth<s.scrollWidth||s.offsetHeight<s.scrollHeight)break}while(s=s.parentNode)}s&&(i=s,r=s.getBoundingClientRect(),o=(M(r.right-g)<=p)-(M(r.left-g)<=p),a=(M(r.bottom-m)<=p)-(M(r.top-m)<=p)),o||a||(a=(y-m<=p)-(m<=p),((o=(v-g<=p)-(g<=p))||a)&&(i=k)),w.vx===o&&w.vy===a&&w.el===i||(w.el=i,w.vx=o,w.vy=a,clearInterval(w.pid),i&&(w.pid=setInterval(function(){if(h=a?a*f:0,c=o?o*f:0,"function"==typeof u)return u.call(d,c,h,t);i===k?k.scrollTo(k.pageXOffset+c,k.pageYOffset+h):(i.scrollTop+=h,i.scrollLeft+=c)},24)))}},30),L=function(t){function e(t,e){return void 0!==t&&!0!==t||(t=n.name),"function"==typeof t?t:function(n,i){var r=i.options.group.name;return e?t:t&&(t.join?t.indexOf(r)>-1:r==t)}}var n={},i=t.group;i&&"object"==typeof i||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){P={capture:!1,passive:!1}}}))}catch(t){}function z(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=rt({},e),t[S]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.no
1deName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==z.supportPointer};for(var i in n)!(i in e)&&(e[i]=n[i]);for(var r in L(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&I,Y(t,"mousedown",this._onTapStart),Y(t,"touchstart",this._onTapStart),e.supportPointer&&Y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Y(t,"dragover",this),Y(t,"dragenter",this)),B.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function H(e,n){"clone"!==e.lastPullMode&&(n=!0),i&&i.state!==n&&(G(i,"display",n?"none":""),n||i.state&&(e.options.group.revertClone?(r.insertBefore(i,o),e._animate(t,i)):r.insertBefore(i,t)),i.state=n)}function W(t,e,n){if(t){n=n||E;do{if(">*"===e&&t.parentNode===n||nt(t,e))return t}while(t=U(t))}return null}function U(t){var e=t.host;return e&&e.nodeType?e:t.parentNode}function Y(t,e,n){t.addEventListener(e,n,P)}function X(t,e,n){t.removeEventListener(e,n,P)}function q(t,e,n){if(t)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(x," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(x," ")}}function G(t,e,n){var i=t&&t.style;if(i){if(void 0===n)return E.defaultView&&E.defaultView.getComputedStyle?n=E.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in i||(e="-webkit-"+e),i[e]=n+("string"==typeof n?"":"px")}}function K(t,e,n){if(t){var i=t.getElementsByTagName(e),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function Z(t,e,n,r,o,a,s,l){t=t||e[S];var u=E.createEvent("Event"),c=t.options,h="on"+n.charAt(0).toUpperCase()+n.substr(1);u.initEvent(n,!0,!0),u.to=o||e,u.from=a||e,u.item=r||e,u.clone=i,u.oldIndex=s,u.newIndex=l,e.dispatchEvent(u),c[h]&&c[h].call(t,u)}function Q(t,e,n,i,r,o,a,s){var l,u,c=t[S],h=c.options.onMove;return(l=E.createEvent("Event")).initEvent("move",!0,!0),l.to=e,l.from=t,l.dragged=n,l.draggedRect=i,l.related=r||e,l.relatedRect=o||e.getBoundingClientRect(),l.willInsertAfter=s,t.dispatchEvent(l),h&&(u=h.call(c,l,a)),u}function J(t){t.draggable=!1}function $(){j=!1}function tt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;n--;)i+=e.charCodeAt(n);return i.toString(36)}function et(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)"TEMPLATE"===t.nodeName.toUpperCase()||">*"!==e&&!nt(t,e)||n++;return n}function nt(t,e){if(t){var n=(e=e.split(".")).shift().toUpperCase(),i=new RegExp("\\s("+e.join("|")+")(?=\\s)","g");return!(""!==n&&t.nodeName.toUpperCase()!=n||e.length&&((" "+t.className+" ").match(i)||[]).length!=e.length)}return!1}function it(t,e){var n,i;return function(){void 0===n&&(n=arguments,i=this,T(function(){1===n.length?t.call(i,n[0]):t.apply(i,n),n=void 0},e))}}function rt(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function ot(t){return D&&D.dom?D.dom(t).cloneNode(!0):A?A(t).clone(!0)[0]:t.cloneNode(!0)}function at(t){return T(t,0)}function st(t){return clearTimeout(t)}return z.prototype={constructor:z,_onTapStart:function(e){var n,i=this,r=this.el,o=this.options,s=o.preventOnFilter,l=e.type,u=e.touches&&e.touches[0],c=(u||e).target,h=e.target.shadowRoot&&e.path&&e.path[0]||c,d=o.filter;if(function(t){for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var i=e[n];i.checked&&N.push(i)}}(r),!t&&!(/mousedown|pointerdown/.test(l)&&0!==e.button||o.disabled)&&!h.isContentEditable&&(c=W(c,o.draggable,r))&&a!==c){if(n=et(c,o.draggable),"function"==typeof d){if(d.call(this,e,c,this))return Z(i,h,"filter",c,r,r,n),void(s&&e.preventDefault())}else if(d&&(d=d.split(",").some(function(t){if(t=W(h,t.trim(),r))return Z(i,t,"filter",c,r,r,n),!0})))return void(s&&e.preventDefault());o.handle&&!W(h,o.handle,r)||this._prepareDragStart(e,u,c,n)}},_prepareDragStart:function(n,i,s,l){var u,c=this,h=c.el,d=c.options,f=h.ownerDocument;s&&!t&&s.parentNode===h&&(v=n,r=h,e=(t=s).parentNode,o=t.nextSibling,a=s,g=d.group,p=l,this._lastX=(i||n).clientX,this._lastY=(i||n).clientY,t.style["will-change"]="all",u=function(){c._disableDelayedDrag(),t.draggable=c.nativeDraggable,q(t,d.chosenClass,!0),c._triggerDragStart(n,i),Z(c,r,"choose",t,r,r,p)},d.ignore.split(",").forEach(function(e){K(t,e.trim(),J)}),Y(f,"mouseup",c._onDrop),Y(f,"touchend",c._onDrop),Y(f,"touchcancel",c._onDrop),Y(f,"selectstart",c),d.supportPointer&&Y(f,"pointercancel",c._onDrop),d.delay?(Y(f,"mouseup",c._disableDelayedDrag),Y(f,"touchend",c._disableDelayedDrag),Y(f,"touchcancel",c._disableDelayedDrag),Y(f,"mousemove",c._disableDelayedDrag),Y(f,"touchmove",c._disableDelayedDrag),d.supportPointer&&Y(f,"pointermove",c._disableDelayedDrag),c._dragStartTimer=T(u,d.delay)):u())},_disableDelayedDrag:function(){var t=this.el.ownerDocument;clearTimeout(this._dragStartTimer),X(t,"mouseup",this._disableDelayedDrag),X(t,"touchend",this._disableDelayedDrag),X(t,"touchcancel",this._disableDelayedDrag),X(t,"mousemove",this._disableDelayedDrag),X(t,"touchmove",this._disableDelayedDrag),X(t,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,n){(n=n||("touch"==e.pointerType?e:null))?this._onDragStart(v={target:t,clientX:n.clientX,clientY:n.clientY},"touch"):this.nativeDraggable?(Y(t,"dragend",this),Y(r,"dragstart",this._onDragStart)):this._onDragStart(v,!0);try{E.selection?at(function(){E.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){if(r&&t){var e=this.options;q(t,e.ghostClass,!0),q(t,e.dragClass,!1),z.active=this,Z(this,r,"start",t,r,r,p)}
1else this._nulling()},_emulateDragOver:function(){if(y){if(this._lastX===y.clientX&&this._lastY===y.clientY)return;this._lastX=y.clientX,this._lastY=y.clientY,R||G(n,"display","none");var t=E.elementFromPoint(y.clientX,y.clientY),e=t,i=B.length;if(t&&t.shadowRoot&&(e=t=t.shadowRoot.elementFromPoint(y.clientX,y.clientY)),e)do{if(e[S]){for(;i--;)B[i]({clientX:y.clientX,clientY:y.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);R||G(n,"display","")}},_onTouchMove:function(t){if(v){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=o.clientX-v.clientX+r.x,s=o.clientY-v.clientY+r.y,l=t.touches?"translate3d("+a+"px,"+s+"px,0)":"translate("+a+"px,"+s+"px)";if(!z.active){if(i&&F(M(o.clientX-this._lastX),M(o.clientY-this._lastY))<i)return;this._dragStarted()}this._appendGhost(),b=!0,y=o,G(n,"webkitTransform",l),G(n,"mozTransform",l),G(n,"msTransform",l),G(n,"transform",l),t.preventDefault()}},_appendGhost:function(){if(!n){var e,i=t.getBoundingClientRect(),o=G(t),a=this.options;q(n=t.cloneNode(!0),a.ghostClass,!1),q(n,a.fallbackClass,!0),q(n,a.dragClass,!0),G(n,"top",i.top-O(o.marginTop,10)),G(n,"left",i.left-O(o.marginLeft,10)),G(n,"width",i.width),G(n,"height",i.height),G(n,"opacity","0.8"),G(n,"position","fixed"),G(n,"zIndex","100000"),G(n,"pointerEvents","none"),a.fallbackOnBody&&E.body.appendChild(n)||r.appendChild(n),e=n.getBoundingClientRect(),G(n,"width",2*i.width-e.width),G(n,"height",2*i.height-e.height)}},_onDragStart:function(e,n){var o=this,a=e.dataTransfer,s=o.options;o._offUpEvents(),g.checkPull(o,o,t,e)&&((i=ot(t)).draggable=!1,i.style["will-change"]="",G(i,"display","none"),q(i,o.options.chosenClass,!1),o._cloneId=at(function(){r.insertBefore(i,t),Z(o,r,"clone",t)})),q(t,s.dragClass,!0),n?("touch"===n?(Y(E,"touchmove",o._onTouchMove),Y(E,"touchend",o._onDrop),Y(E,"touchcancel",o._onDrop),s.supportPointer&&(Y(E,"pointermove",o._onTouchMove),Y(E,"pointerup",o._onDrop))):(Y(E,"mousemove",o._onTouchMove),Y(E,"mouseup",o._onDrop)),o._loopId=setInterval(o._emulateDragOver,50)):(a&&(a.effectAllowed="move",s.setData&&s.setData.call(o,a,t)),Y(E,"drop",o),o._dragStartId=at(o._dragStarted))},_onDragOver:function(a){var s,l,u,p,f=this.el,v=this.options,y=v.group,_=z.active,w=g===y,x=!1,k=v.sort;if(void 0!==a.preventDefault&&(a.preventDefault(),!v.dragoverBubble&&a.stopPropagation()),!t.animated&&(b=!0,_&&!v.disabled&&(w?k||(p=!r.contains(t)):m===this||(_.lastPullMode=g.checkPull(this,_,t,a))&&y.checkPut(this,_,t,a))&&(void 0===a.rootEl||a.rootEl===this.el))){if(V(a,v,this.el),j)return;if(s=W(a.target,v.draggable,f),l=t.getBoundingClientRect(),m!==this&&(m=this,x=!0),p)return H(_,!0),e=r,void(i||o?r.insertBefore(t,i||o):k||r.appendChild(t));if(0===f.children.length||f.children[0]===n||f===a.target&&function(t,e){var n=t.lastElementChild.getBoundingClientRect();return e.clientY-(n.top+n.height)>5||e.clientX-(n.left+n.width)>5}(f,a)){if(0!==f.children.length&&f.children[0]!==n&&f===a.target&&(s=f.lastElementChild),s){if(s.animated)return;u=s.getBoundingClientRect()}H(_,w),!1!==Q(r,f,t,l,s,u,a)&&(t.contains(f)||(f.appendChild(t),e=f),this._animate(l,t),s&&this._animate(u,s))}else if(s&&!s.animated&&s!==t&&void 0!==s.parentNode[S]){c!==s&&(c=s,h=G(s),d=G(s.parentNode));var E=(u=s.getBoundingClientRect()).right-u.left,O=u.bottom-u.top,A=C.test(h.cssFloat+h.display)||"flex"==d.display&&0===d["flex-direction"].indexOf("row"),D=s.offsetWidth>t.offsetWidth,P=s.offsetHeight>t.offsetHeight,I=(A?(a.clientX-u.left)/E:(a.clientY-u.top)/O)>.5,R=s.nextElementSibling,M=!1;if(A){var F=t.offsetTop,N=s.offsetTop;M=F===N?s.previousElementSibling===t&&!D||I&&D:s.previousElementSibling===t||t.previousElementSibling===s?(a.clientY-u.top)/O>.5:N>F}else x||(M=R!==t&&!P||I&&P);var B=Q(r,f,t,l,s,u,a,M);!1!==B&&(1!==B&&-1!==B||(M=1===B),j=!0,T($,30),H(_,w),t.contains(f)||(M&&!R?f.appendChild(t):s.parentNode.insertBefore(t,M?R:s)),e=t.parentNode,this._animate(l,t),this._animate(u,s))}}},_animate:function(t,e){var n=this.options.animation;if(n){var i=e.getBoundingClientRect();1===t.nodeType&&(t=t.getBoundingClientRect()),G(e,"transition","none"),G(e,"transform","translate3d("+(t.left-i.left)+"px,"+(t.top-i.top)+"px,0)"),G(e,"transition","all "+n+"ms"),G(e,"transform","translate3d(0,
10,0)"),clearTimeout(e.animated),e.animated=T(function(){G(e,"transition",""),G(e,"transform",""),e.animated=!1},n)}},_offUpEvents:function(){var t=this.el.ownerDocument;X(E,"touchmove",this._onTouchMove),X(E,"pointermove",this._onTouchMove),X(t,"mouseup",this._onDrop),X(t,"touchend",this._onDrop),X(t,"pointerup",this._onDrop),X(t,"touchcancel",this._onDrop),X(t,"pointercancel",this._onDrop),X(t,"selectstart",this)},_onDrop:function(a){var s=this.el,l=this.options;clearInterval(this._loopId),clearInterval(w.pid),clearTimeout(this._dragStartTimer),st(this._cloneId),st(this._dragStartId),X(E,"mouseover",this),X(E,"mousemove",this._onTouchMove),this.nativeDraggable&&(X(E,"drop",this),X(s,"dragstart",this._onDragStart)),this._offUpEvents(),a&&(b&&(a.preventDefault(),!l.dropBubble&&a.stopPropagation()),n&&n.parentNode&&n.parentNode.removeChild(n),r!==e&&"clone"===z.active.lastPullMode||i&&i.parentNode&&i.parentNode.removeChild(i),t&&(this.nativeDraggable&&X(t,"dragend",this),J(t),t.style["will-change"]="",q(t,this.options.ghostClass,!1),q(t,this.options.chosenClass,!1),Z(this,r,"unchoose",t,e,r,p),r!==e?(f=et(t,l.draggable))>=0&&(Z(null,e,"add",t,e,r,p,f),Z(this,r,"remove",t,e,r,p,f),Z(null,e,"sort",t,e,r,p,f),Z(this,r,"sort",t,e,r,p,f)):t.nextSibling!==o&&(f=et(t,l.draggable))>=0&&(Z(this,r,"update",t,e,r,p,f),Z(this,r,"sort",t,e,r,p,f)),z.active&&(null!=f&&-1!==f||(f=p),Z(this,r,"end",t,e,r,p,f),this.save()))),this._nulling()}
1,_nulling:function(){r=t=e=n=o=i=a=s=l=v=y=b=f=c=h=m=g=z.active=null,N.forEach(function(t){t.checked=!0}),N.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.preventDefault()}(e));break;case"mouseover":this._onDrop(e);break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)W(t=n[i],o.draggable,this.el)&&e.push(t.getAttribute(o.dataIdAttr)||tt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,i){var r=n.children[i];W(r,this.options.draggable,n)&&(e[t]=r)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set(this)},closest:function(t,e){return W(t,e||this.options.draggable,this.el)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];n[t]=e,"group"===t&&L(n)},destroy:function(){var t=this.el;t[S]=null,X(t,"mousedown",this._onTapStart),X(t,"touchstart",this._onTapStart),X(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(X(t,"dragover",this),X(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),B.splice(B.indexOf(this._onDragOver),1),this._onDrop(),this.el=t=null}},Y(E,"touchmove",function(t){z.active&&t.preventDefault()}),z.utils={on:Y,off:X,css:G,find:K,is:function(t,e){return!!W(t,e,t)},extend:rt,throttle:it,closest:W,toggleClass:q,clone:ot,index:et,nextTick:at,cancelNextTick:st},z.create=function(t,e){return new z(t,e)},z.version="1.7.0",z})?i.call(e,n,e,t):i)||(t.exports=r)}()},Zn8D:function(t,e,n){"use strict";var i=n("psW0");function r(t){return t}function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(i.a)(r,t)}n.d(e,"a",function(){return o})},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},eihs:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i={e:{}}},epSk:function(t,e,n){var i,r,o,a,s,l,u,c,h,d,p,f,g,m,v,y,b,_,w,x,C=C||{version:"2.3.1"};function S(t,e){var n=t.canvas,i=e.targetCanvas,r=i.getContext("2d");r.translate(0,i.height),r.scale(1,-1),r.drawImage(n,0,n.height-i.height,i.width,i.height,0,0,i.width,i.height)}function k(t,e){var n=e.targetCanvas.getContext("2d"),i=e.destinationWidth,r=e.destinationHeight,o=i*r*4,a=new Uint8Array(this.imageBuffer,0,o),s=new Uint8ClampedArray(this.imageBuffer,0,o);t.readPixels(0,0,i,r,t.RGBA,t.UNSIGNED_BYTE,a);var l=new ImageData(s,i,r);n.putImageData(l,0,0)}e.fabric=C,"undefined"!=typeof document&&"undefined"!=typeof window?(C.document=document,C.window=window):(C.document=n(6).jsdom(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]}}),C.jsdomImplForWrapper=n(5).implForWrapper,C.nodeCanvas=n(4).Canvas,C.window=C.document.defaultView,DOMParser=n(3).DOMParser),C.isTouchSupported="ontouchstart"in C.window,C.isLikelyNode="undefined"!=typeof Buffer&&"undefined"==typeof window,C.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","instantiated_by_use"],C.DPI=96,C.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:e[-+]?\\d+)?)",C.fontPaths={},C.iMatrix=[1,0,0,1,0,0],C.canvasModule="canvas",C.perfLimitSizeTotal=2097152,C.maxCacheSideLimit=4096,C.minCacheSideLimit=256,C.charWidthsCache={},C.textureSize=2048,C.enableGLFiltering=!0,C.devicePixelRatio=C.window.devicePixelRatio||C.window.webkitDevicePixelRatio||C.window.mozDevicePixelRatio||1,C.browserShadowBlurConstant=1,C.initFilterBackend=function(){return C.enableGLFiltering&&C.isWebglSupported&&C.isWebglSupported(C.textureSize)?(console.log("max texture size: "+C.maxTextureSize),new C.WebglFilterBackend({tileSize:C.textureSize})):C.Canvas2dFilterBackend?new C.Canvas2dFilterBackend:void 0},"undefined"!=typeof document&&"undefined"!=typeof window&&(window.fabric=C),function(){function t(t,e){if(this.__eventListeners[t]){var n=this.__eventListeners[t];e?n[n.indexOf(e)]=!1:C.util.array.fill(n,!1)}}function e(t,e){if(this.__eventListeners||(this.__eventListeners={}),1===arguments.length)for(var n in t)this.on(n,t[n]);else this.__eventListeners[t]||(this.__eventListeners[t]=[]),this.__eventListeners[t].push(e);return this}function n(e,n){if(this.__eventListeners){if(0===arguments.length)for(e in this.__eventListeners)t.call(this,e);else if(1===arguments.length&&"object"==typeof arguments[0])for(var i in e)t.call(this,i,e[i]);else t.call(this,e,n);return this}}function i(t,e){if(this.__eventListeners){var n=this.__eventListeners[t];if(n){for(var i=0,r=n.length;i<r;i++)n[i]&&n[i].call(this,e||{});return this.__eventListeners[t]=n.filter(function(t){return!1!==t}),this}}}C.Observable={observe:e,stopObserving:n,fire:i,on:e,off:n,trigger:i}}(),C.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var t=0,e=arguments.length;t<e;t++)this._onObjectAdded(arguments[t]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(t,e,n){var i=this.getObjects();return n?i[e]=t:i.splice(e,0,t),this._onObjectAdded&&this._onObjectAdded(t),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var t,e=this.getObjects(),n=!1,i=0,r=arguments.length;i<r;i++)-1!==(t=e.indexOf(arguments[i]))&&(n=!0,e.splice(t,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[i]));return this.renderOnAddRemove&&n&&this.requestRenderAll(),this}
1,forEachObject:function(t,e){for(var n=this.getObjects(),i=0,r=n.length;i<r;i++)t.call(e,n[i],i,n);return this},getObjects:function(t){return void 0===t?this._objects:this._objects.filter(function(e){return e.type===t})},item:function(t){return this.getObjects()[t]},isEmpty:function(){return 0===this.getObjects().length},size:function(){return this.getObjects().length},contains:function(t){return this.getObjects().indexOf(t)>-1},complexity:function(){return this.getObjects().reduce(function(t,e){return t+(e.complexity?e.complexity():0)},0)}},C.CommonMethods={_setOptions:function(t){for(var e in t)this.set(e,t[e])},_initGradient:function(t,e){!t||!t.colorStops||t instanceof C.Gradient||this.set(e,new C.Gradient(t))},_initPattern:function(t,e,n){!t||!t.source||t instanceof C.Pattern?n&&n():this.set(e,new C.Pattern(t,n))},_initClipping:function(t){if(t.clipTo&&"string"==typeof t.clipTo){var e=C.util.getFunctionBody(t.clipTo);void 0!==e&&(this.clipTo=new Function("ctx",e))}},_setObject:function(t){for(var e in t)this._set(e,t[e])},set:function(t,e){return"object"==typeof t?this._setObject(t):this._set(t,"function"==typeof e&&"clipTo"!==t?e(this.get(t)):e),this},_set:function(t,e){this[t]=e},toggle:function(t){var e=this.get(t);return"boolean"==typeof e&&this.set(t,!e),this},get:function(t){return this[t]}},i=e,r=Math.sqrt,o=Math.atan2,a=Math.pow,s=Math.abs,l=Math.PI/180,u=Math.PI/2,C.util={cos:function(t){if(0===t)return 1;switch(t<0&&(t=-t),t/u){case 1:case 3:return 0;case 2:return-1}return Math.cos(t)},sin:function(t){if(0===t)return 0;var e=1;switch(t<0&&(e=-1),t/u){case 1:return e;case 2:return 0;case 3:return-e}return Math.sin(t)},removeFromArray:function(t,e){var n=t.indexOf(e);return-1!==n&&t.splice(n,1),t},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t},degreesToRadians:function(t){return t*l},radiansToDegrees:function(t){return t/l},rotatePoint:function(t,e,n){t.subtractEquals(e);var i=C.util.rotateVector(t,n);return new C.Point(i.x,i.y).addEquals(e)},rotateVector:function(t,e){var n=C.util.sin(e),i=C.util.cos(e);return{x:t.x*i-t.y*n,y:t.x*n+t.y*i}},transformPoint:function(t,e,n){return n?new C.Point(e[0]*t.x+e[2]*t.y,e[1]*t.x+e[3]*t.y):new C.Point(e[0]*t.x+e[2]*t.y+e[4],e[1]*t.x+e[3]*t.y+e[5])},makeBoundingBoxFromPoints:function(t){var e=[t[0].x,t[1].x,t[2].x,t[3].x],n=C.util.array.min(e),i=C.util.array.max(e)-n,r=[t[0].y,t[1].y,t[2].y,t[3].y],o=C.util.array.min(r);return{left:n,top:o,width:i,height:C.util.array.max(r)-o}},invertTransform:function(t){var e=1/(t[0]*t[3]-t[1]*t[2]),n=[e*t[3],-e*t[1],-e*t[2],e*t[0]],i=C.util.transformPoint({x:t[4],y:t[5]},n,!0);return n[4]=-i.x,n[5]=-i.y,n},toFixed:function(t,e){return parseFloat(Number(t).toFixed(e))},parseUnit:function(t,e){var n=/\D{0,2}$/.exec(t),i=parseFloat(t);switch(e||(e=C.Text.DEFAULT_SVG_FONT_SIZE),n[0]){case"mm":return i*C.DPI/25.4;case"cm":return i*C.DPI/2.54;case"in":return i*C.DPI;case"pt":return i*C.DPI/72;case"pc":return i*C.DPI/72*12;case"em":return i*e;default:return i}},falseFunction:function(){return!1},getKlass:function(t,e){return t=C.util.string.camelize(t.charAt(0).toUpperCase()+t.slice(1)),C.util.resolveNamespace(e)[t]},getSvgAttributes:function(t){var e=["instantiated_by_use","style","id","class"];switch(t){case"linearGradient":e=e.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":e=e.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":e=e.concat(["offset","stop-color","stop-opacity"])}return e},resolveNamespace:function(t){if(!t)return C;var e,n=t.split("."),r=n.length,o=i||C.window;for(e=0;e<r;++e)o=o[n[e]];return o},loadImage:function(t,e,n,i){if(t){var r=C.util.createImage(),o=function(){e&&e.call(n,r),r=r.onload=r.onerror=null};r.onload=o,r.onerror=function(){C.log("Error loading "+r.src),e&&e.call(n,null,!0),r=r.onload=r.onerror=null},0!==t.indexOf("data")&&i&&(r.crossOrigin=i),"data:image/svg"===t.substring(0,14)&&(r.onload=null,C.util.loadImageInDom(r,o)),r.src=t}else e&&e.call(n,t)},loadImageInDom:function(t,e){var n=C.document.createElement("div");n.style.width=n.style.height="1px",n.style.left=n.style.top="-100%",n.style.position="absolute",n.appendChild(t),C.document.querySelector("body").appendChild(n),t.onload=function(){e(),n.parentNode.removeChild(n),n=null}},enlivenObjects:function(t,e,n,i){function r(){++a===s&&e&&e(o)}var o=[],a=0,s=(t=t||[]).length;s?t.forEach(function(t,e){t&&t.type?C.util.getKlass(t.type,n).fromObject(t,function(n,a){a||(o[e]=n),i&&i(t,n,a),r()}):r()}):e&&e(o)},enlivenPatterns:function(t,e){function n(){++r===o&&e&&e(i)}var i=[],r=0,o=(t=t||[]).length;o?t.forEach(function(t,e){t&&t.source?new C.Pattern(t,function(t){i[e]=t,n()}):(i[e]=t,n())}):e&&e(i)},groupSVGElements:function(t,e,n){var i;return 1===t.length?t[0]:(e&&(e.width&&e.height?e.centerPoint={x:e.width/2,y:e.height/2}:(delete e.width,delete e.height)),i=new C.Group(t,e),void 0!==n&&(i.sourcePath=n),i)},populateWithProperties:function(t,e,n){if(n&&"[object Array]"===Object.prototype.toString.call(n))for(var i=0,r=n.length;i<r;i++)n[i]in t&&(e[n[i]]=t[n[i]])},drawDashedLine:function(t,e,n,i,a,s){var l=i-e,u=a-n,c=r(l*l+u*u),h=o(u,l),d=s.length,p=0,f=!0;for(t.save(),t.translate(e,n),t.moveTo(0,0),t.rotate(h),e=0;c>e;)(e+=s[p++%d])>c&&(e=c),t[f?"lineTo":"moveTo"](e,0),f=!f;
1t.restore()},createCanvasElement:function(){return C.document.createElement("canvas")},createImage:function(){return C.document.createElement("img")},clipContext:function(t,e){e.save(),e.beginPath(),t.clipTo(e),e.clip()},multiplyTransformMatrices:function(t,e,n){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],n?0:t[0]*e[4]+t[2]*e[5]+t[4],n?0:t[1]*e[4]+t[3]*e[5]+t[5]]},qrDecompose:function(t){var e=o(t[1],t[0]),n=a(t[0],2)+a(t[1],2),i=r(n),s=(t[0]*t[3]-t[2]*t[1])/i,u=o(t[0]*t[2]+t[1]*t[3],n);return{angle:e/l,scaleX:i,scaleY:s,skewX:u/l,skewY:0,translateX:t[4],translateY:t[5]}},customTransformMatrix:function(t,e,n){var i=[1,0,s(Math.tan(n*l)),1],r=[s(t),0,0,s(e)];return C.util.multiplyTransformMatrices(r,i,!0)},resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.flipX=!1,t.flipY=!1,t.rotate(0)},getFunctionBody:function(t){return(String(t).match(/function[^{]*\{([\s\S]*)\}/)||{})[1]},isTransparent:function(t,e,n,i){i>0&&(e>i?e-=i:e=0,n>i?n-=i:n=0);var r,o=!0,a=t.getImageData(e,n,2*i||1,2*i||1),s=a.data.length;for(r=3;r<s&&0!=(o=a.data[r]<=0);r+=4);return a=null,o},parsePreserveAspectRatioAttribute:function(t){var e,n="meet",i=t.split(" ");return i&&i.length&&("meet"!==(n=i.pop())&&"slice"!==n?(e=n,n="meet"):i.length&&(e=i.pop())),{meetOrSlice:n,alignX:"none"!==e?e.slice(1,4):"none",alignY:"none"!==e?e.slice(5,8):"none"}},clearFabricFontCache:function(t){t?C.charWidthsCache[t]&&delete C.charWidthsCache[t]:C.charWidthsCache={}},limitDimsByArea:function(t,e){var n=Math.sqrt(e*t),i=Math.floor(e/n);return{x:Math.floor(n),y:i}},capValue:function(t,e,n){return Math.max(t,Math.min(e,n))},findScaleToFit:function(t,e){return Math.min(e.width/t.width,e.height/t.height)},findScaleToCover:function(t,e){return Math.max(e.width/t.width,e.height/t.height)}},function(){var t={},e={},n={},i=Array.prototype.join;function r(e,n,r,s,l,u,c){var h=i.call(arguments);if(t[h])return t[h];var d=Math.PI,p=c*d/180,f=C.util.sin(p),g=C.util.cos(p),m=0,v=0,y=-g*e*.5-f*n*.5,b=-g*n*.5+f*e*.5,_=(r=Math.abs(r))*r,w=(s=Math.abs(s))*s,x=b*b,S=y*y,k=_*w-_*x-w*S,E=0;if(k<0){var O=Math.sqrt(1-k/(_*w));r*=O,s*=O}else E=(l===u?-1:1)*Math.sqrt(k/(_*x+w*S));var T=E*r*b/s,A=-E*s*y/r,D=g*T-f*A+.5*e,P=f*T+g*A+.5*n,I=a(1,0,(y-T)/r,(b-A)/s),R=a((y-T)/r,(b-A)/s,(-y-T)/r,(-b-A)/s);0===u&&R>0?R-=2*d:1===u&&R<0&&(R+=2*d);for(var j=Math.ceil(Math.abs(R/d*2)),M=[],F=R/j,N=8/3*Math.sin(F/4)*Math.sin(F/4)/Math.sin(F/2),B=I+F,V=0;V<j;V++)M[V]=o(I,B,g,f,r,s,D,P,N,m,v),m=M[V][4],v=M[V][5],I=B,B+=F;return t[h]=M,M}function o(t,n,r,o,a,s,l,u,c,h,d){var p=i.call(arguments);if(e[p])return e[p];var f=C.util.cos(t),g=C.util.sin(t),m=C.util.cos(n),v=C.util.sin(n),y=r*a*m-o*s*v+l,b=o*a*m+r*s*v+u;return e[p]=[h+c*(-r*a*g-o*s*f),d+c*(-o*a*g+r*s*f),y+c*(r*a*v+o*s*m),b+c*(o*a*v-r*s*m),y,b],e[p]}function a(t,e,n,i){var r=Math.atan2(e,t),o=Math.atan2(i,n);return o>=r?o-r:2*Math.PI-(r-o)}function s(t,e,r,o,a,s,l,u){var c=i.call(arguments);if(n[c])return n[c];var h,d,p,f,g,m,v,y,b=Math.sqrt,_=Math.min,w=Math.max,x=Math.abs,C=[],S=[[],[]];d=6*t-12*r+6*a,h=-3*t+9*r-9*a+3*l,p=3*r-3*t;for(var k=0;k<2;++k)if(k>0&&(d=6*e-12*o+6*s,h=-3*e+9*o-9*s+3*u,p=3*o-3*e),x(h)<1e-12){if(x(d)<1e-12)continue;0<(f=-p/d)&&f<1&&C.push(f)}else(v=d*d-4*p*h)<0||(0<(g=(-d+(y=b(v)))/(2*h))&&g<1&&C.push(g),0<(m=(-d-y)/(2*h))&&m<1&&C.push(m));for(var E,O=C.length,T=O;O--;)S[0][O]=(E=1-(f=C[O]))*E*E*t+3*E*E*f*r+3*E*f*f*a+f*f*f*l,S[1][O]=E*E*E*e+3*E*E*f*o+3*E*f*f*s+f*f*f*u;S[0][T]=t,S[1][T]=e,S[0][T+1]=l,S[1][T+1]=u;var A=[{x:_.apply(null,S[0]),y:_.apply(null,S[1])},{x:w.apply(null,S[0]),y:w.apply(null,S[1])}];return n[c]=A,A}C.util.drawArc=function(t,e,n,i){for(var o=[[],[],[],[]],a=r(i[5]-e,i[6]-n,i[0],i[1],i[3],i[4],i[2]),s=0,l=a.length;s<l;s++)o[s][0]=a[s][0]+e,o[s][1]=a[s][1]+n,o[s][2]=a[s][2]+e,o[s][3]=a[s][3]+n,o[s][4]=a[s][4]+e,o[s][5]=a[s][5]+n,t.bezierCurveTo.apply(t,o[s])},C.util.getBoundsOfArc=function(t,e,n,i,o,a,l,u,c){for(var h,d=0,p=0,f=[],g=r(u-t,c-e,n,i,a,l,o),m=0,v=g.length;m<v;m++)h=s(d,p,g[m][0],g[m][1],g[m][2],g[m][3],g[m][4],g[m][5]),f.push({x:h[0].x+t,y:h[0].y+e}
1),f.push({x:h[1].x+t,y:h[1].y+e}),d=g[m][4],p=g[m][5];return f},C.util.getBoundsOfCurve=s}(),function(){var t=Array.prototype.slice;function e(t,e,n){if(t&&0!==t.length){var i=t.length-1,r=e?t[i][e]:t[i];if(e)for(;i--;)n(t[i][e],r)&&(r=t[i][e]);else for(;i--;)n(t[i],r)&&(r=t[i]);return r}}C.util.array={fill:function(t,e){for(var n=t.length;n--;)t[n]=e;return t},invoke:function(e,n){for(var i=t.call(arguments,2),r=[],o=0,a=e.length;o<a;o++)r[o]=i.length?e[o][n].apply(e[o],i):e[o][n].call(e[o]);return r},min:function(t,n){return e(t,n,function(t,e){return t<e})},max:function(t,n){return e(t,n,function(t,e){return t>=e})}}}(),function(){function t(e,n,i){if(i)if(!C.isLikelyNode&&n instanceof Element)e=n;else if(n instanceof Array){e=[];for(var r=0,o=n.length;r<o;r++)e[r]=t({},n[r],i)}else if(n&&"object"==typeof n)for(var a in n)n.hasOwnProperty(a)&&(e[a]=t({},n[a],i));else e=n;else for(var a in n)e[a]=n[a];return e}C.util.object={extend:t,clone:function(e,n){return t({},e,n)}},C.util.object.extend(C.util,C.Observable)}(),function(){function t(t,e){var n=t.charCodeAt(e);if(isNaN(n))return"";if(n<55296||n>57343)return t.charAt(e);if(55296<=n&&n<=56319){if(t.length<=e+1)throw"High surrogate without following low surrogate";var i=t.charCodeAt(e+1);if(56320>i||i>57343)throw"High surrogate without following low surrogate";return t.charAt(e)+t.charAt(e+1)}if(0===e)throw"Low surrogate without preceding high surrogate";var r=t.charCodeAt(e-1);if(55296>r||r>56319)throw"Low surrogate without preceding high surrogate";return!1}C.util.string={camelize:function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},capitalize:function(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())},escapeXml:function(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")},graphemeSplit:function(e){var n,i=0,r=[];for(i=0;i<e.length;i++)!1!==(n=t(e,i))&&r.push(n);return r}}}(),function(){var t=Array.prototype.slice,e=function(){},n=function(){for(var t in{toString:1})if("toString"===t)return!1;return!0}(),i=function(t,e,i){for(var r in e)t.prototype[r]=r in t.prototype&&"function"==typeof t.prototype[r]&&(e[r]+"").indexOf("callSuper")>-1?function(t){return function(){var n=this.constructor.superclass;this.constructor.superclass=i;var r=e[t].apply(this,arguments);if(this.constructor.superclass=n,"initialize"!==t)return r}}(r):e[r],n&&(e.toString!==Object.prototype.toString&&(t.prototype.toString=e.toString),e.valueOf!==Object.prototype.valueOf&&(t.prototype.valueOf=e.valueOf))};function r(){}function o(e){for(var n=null,i=this;i.constructor.superclass;){var r=i.constructor.superclass.prototype[e];if(i[e]!==r){n=r;break}i=i.constructor.superclass.prototype}return n?arguments.length>1?n.apply(this,t.call(arguments,1)):n.call(this):console.log("tried to callSuper "+e+", method not found in prototype chain",this)}C.util.createClass=function(){var n=null,a=t.call(arguments,0);function s(){this.initialize.apply(this,arguments)}"function"==typeof a[0]&&(n=a.shift()),s.superclass=n,s.subclasses=[],n&&(r.prototype=n.prototype,s.prototype=new r,n.subclasses.push(s));for(var l=0,u=a.length;l<u;l++)i(s,a[l],n);return s.prototype.initialize||(s.prototype.initialize=e),s.prototype.constructor=s,s.prototype.callSuper=o,s}}(),function(){function t(t){var e,n=Array.prototype.slice.call(arguments,1),i=n.length;for(e=0;e<i;e++)if(!/^(?:function|object|unknown)$/.test(typeof t[n[e]]))return!1;return!0}var e,n,i,r,o=(i=0,function(t){return t.__uniqueID||(t.__uniqueID="uniqueID__"+i++)});r={},e=function(t){return r[t]},n=function(t,e){r[t]=e};var a,s,l=t(C.document.documentElement,"addEventListener","removeEventListener")&&t(C.window,"addEventListener","removeEventListener"),u=t(C.document.documentElement,"attachEvent","detachEvent")&&t(C.window,"attachEvent","detachEvent"),c={},h={};l?(a=function(t,e,n,i){t&&t.addEventListener(e,n,!u&&i)},s=function(t,e,n,i){t&&t.removeEventListener(e,n,!u&&i)}):u?(a=function(t,i,r){if(t){var a=o(t);n(a,t),c[a]||(c[a]={}),c[a][i]||(c[a][i]=[]);var s=function(t,n){return{handler:n,wrappedHandler:function(t,n){return function(i){n.call(e(t),i||C.window.event)}}(t,n)}}(a,r);c[a][i].push(s),t.attachEvent("on"+i,s.wrappedHandler)}},s=function(t,e,n){if(t){var i,r=o(t);if(c[r]&&c[r][e])for(var a=0,s=c[r][e].length;a<s;a++)(i=c[r][e][a])&&i.handler===n&&(t.detachEvent("on"+e,i.wrappedHandler),c[r][e][a]=null)}}):(a=function(t,e,n){if(t){var i=o(t);if(h[i]||(h[i]={}),!h[i][e]){h[i][e]=[];var r=t["on"+e];r&&h[i][e].push(r),t["on"+e]=function(t,e){return function(n){if(h[t]&&h[t][e])for(var i=h[t][e],r=0,o=i.length;r<o;r++)i[r].call(this,n||C.window.event)}}(i,e)}h[i][e].push(n)}},s=function(t,e,n){if(t){var i=o(t);if(h[i]&&h[i][e])for(var r=h[i][e],a=0,s=r.length;a<s;a++)r[a]===n&&r.splice(a,1)}}),C.util.addListener=a,C.util.removeListener=s;var d=function(t){return t.clientX},p=function(t){return t.clientY};function f(t,e,n){var i,r=t["touchend"===t.type?"changedTouches":"touches"];return r&&r[0]&&(i=r[0][n]),void 0===i&&(i=t[n]),i}C.isTouchSupported&&(d=function(t){return f(t,0,"clientX")},p=function(t){return f(t,0,"clientY")}),C.util.getPointer=function(t){t||(t=C.window.event);var e=C.util.getScrollLeftTop(t.target||("unknown"!=typeof t.srcElement?t.srcElement:null));return{x:d(t)+e.left,y:p(t)+e.top}}}(),_=C.document.createElement("div"),w=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,x=function(t){return t},"string"==typeof _.style.opacity?x=function(t,e){return t.style.opacity=e,t}:"string"==typeof _.style.filter&&(x=function(t,e){var n=t.style;return t.currentStyle&&!t.currentStyle.hasLayout&&(n.zoom=1),w.test(n.filter)?n.filter=n.filter.replace(w,e=e>
1=.9999?"":"alpha(opacity="+100*e+")"):n.filter+=" alpha(opacity="+100*e+")",t}),C.util.setStyle=function(t,e){var n=t.style;if(!n)return t;if("string"==typeof e)return t.style.cssText+=";"+e,e.indexOf("opacity")>-1?x(t,e.match(/opacity:\s*(\d?\.?\d*)/)[1]):t;for(var i in e)"opacity"===i?x(t,e[i]):n["float"===i||"cssFloat"===i?void 0===n.styleFloat?"cssFloat":"styleFloat":i]=e[i];return t},function(){var t,e,n,i,r=Array.prototype.slice,o=function(t){return r.call(t,0)};try{t=o(C.document.childNodes)instanceof Array}catch(t){}function a(t,e){var n=C.document.createElement(t);for(var i in e)"class"===i?n.className=e[i]:"for"===i?n.htmlFor=e[i]:n.setAttribute(i,e[i]);return n}function s(t){for(var e=0,n=0,i=C.document.documentElement,r=C.document.body||{scrollLeft:0,scrollTop:0};t&&(t.parentNode||t.host)&&((t=t.parentNode||t.host)===C.document?(e=r.scrollLeft||i.scrollLeft||0,n=r.scrollTop||i.scrollTop||0):(e+=t.scrollLeft||0,n+=t.scrollTop||0),1!==t.nodeType||"fixed"!==t.style.position););return{left:e,top:n}}t||(o=function(t){for(var e=new Array(t.length),n=t.length;n--;)e[n]=t[n];return e}),e=C.document.defaultView&&C.document.defaultView.getComputedStyle?function(t,e){var n=C.document.defaultView.getComputedStyle(t,null);return n?n[e]:void 0}:function(t,e){var n=t.style[e];return!n&&t.currentStyle&&(n=t.currentStyle[e]),n},i="userSelect"in(n=C.document.documentElement.style)?"userSelect":"MozUserSelect"in n?"MozUserSelect":"WebkitUserSelect"in n?"WebkitUserSelect":"KhtmlUserSelect"in n?"KhtmlUserSelect":"",C.util.makeElementUnselectable=function(t){return void 0!==t.onselectstart&&(t.onselectstart=C.util.falseFunction),i?t.style[i]="none":"string"==typeof t.unselectable&&(t.unselectable="on"),t},C.util.makeElementSelectable=function(t){return void 0!==t.onselectstart&&(t.onselectstart=null),i?t.style[i]="":"string"==typeof t.unselectable&&(t.unselectable=""),t},C.util.getScript=function(t,e){var n=C.document.getElementsByTagName("head")[0],i=C.document.createElement("script"),r=!0;i.onload=i.onreadystatechange=function(t){if(r){if("string"==typeof this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)return;r=!1,e(t||C.window.event),i=i.onload=i.onreadystatechange=null}},i.src=t,n.appendChild(i)},C.util.getById=function(t){return"string"==typeof t?C.document.getElementById(t):t},C.util.toArray=o,C.util.makeElement=a,C.util.addClass=function(t,e){t&&-1===(" "+t.className+" ").indexOf(" "+e+" ")&&(t.className+=(t.className?" ":"")+e)},C.util.wrapElement=function(t,e,n){return"string"==typeof e&&(e=a(e,n)),t.parentNode&&t.parentNode.replaceChild(e,t),e.appendChild(t),e},C.util.getScrollLeftTop=s,C.util.getElementOffset=function(t){var n,i,r=t&&t.ownerDocument,o={left:0,top:0},a={left:0,top:0},l={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!r)return a;for(var u in l)a[l[u]]+=parseInt(e(t,u),10)||0;return n=r.documentElement,void 0!==t.getBoundingClientRect&&(o=t.getBoundingClientRect()),i=s(t),{left:o.left+i.left-(n.clientLeft||0)+a.left,top:o.top+i.top-(n.clientTop||0)+a.top}},C.util.getElementStyle=e,C.util.getNodeCanvas=function(t){var e=C.jsdomImplForWrapper(t);return e._canvas||e._image}}(),function(){var t=function(){for(var t=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP.3.0")},function(){return new XMLHttpRequest}],e=t.length;e--;)try{if(t[e]())return t[e]}catch(t){}}();function e(){}C.util.request=function(n,i){i||(i={});var r=i.method?i.method.toUpperCase():"GET",o=i.onComplete||function(){},a=t(),s=i.body||i.parameters;return a.onreadystatechange=function(){4===a.readyState&&(o(a),a.onreadystatechange=e)},"GET"===r&&(s=null,"string"==typeof i.parameters&&(n=function(t,e){return t+(/\?/.test(t)?"&":"?")+e}(n,i.parameters))),a.open(r,n,!0),"POST"!==r&&"PUT"!==r||a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(s),a}}(),C.log=function(){},C.warn=function(){},"undefined"!=typeof console&&["log","warn"].forEach(function(t){void 0!==console[t]&&"function"==typeof console[t].apply&&(C[t]=function(){return console[t].apply(console,arguments)})}),function(){function t(){return!1}var e=C.window.requestAnimationFrame||C.window.webkitRequestAnimationFrame||C.window.mozRequestAnimationFrame||C.window.oRequestAnimationFrame||C.window.msRequestAnimationFrame||function(t){return C.window.setTimeout(t,1e3/60)},n=C.window.cancelAnimationFrame||C.window.clearTimeout;function i(){return e.apply(C.window,arguments)}C.util.animate=function(e){i(function(n){e||(e={});var r,o=n||+new Date,a=e.duration||500,s=o+a,l=e.onChange||t,u=e.abort||t,c=e.onComplete||t,h=e.easing||function(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e},d="startValue"in e?e.startValue:0,p="endValue"in e?e.endValue:100,f=e.byValue||p-d;e.onStart&&e.onStart(),function t(n){if(u())c(p,1,1);else{var g=(r=n||+new Date)>s?a:r-o,m=g/a,v=h(g,d,f,a),y=Math.abs((v-d)/f);l(v,y,m),r>s?e.onComplete&&e.onComplete():i(t)}}(o)})},C.util.requestAnimFrame=i,C.util.cancelAnimFrame=function(){return n.apply(C.window,arguments)}}(),C.util.animateColor=function(t,e,n,i){var r=new C.Color(t).getSource(),o=new C.Color(e).getSource();C.util.animate(C.util.object.extend(i=i||{},{duration:n||500,startValue:r,endValue:o,byValue:o,easing:function(t,e,n,r){var o,a,s,l;return o=e,a=n,s=i.colorEasing?i.colorEasing(t,r):1-Math.cos(t/r*(Math.PI/2)),l="rgba("+parseInt(o[0]+s*(a[0]-o[0]),10)+","+parseInt(o[1]+s*(a[1]-o[1]),10)+","+parseInt(o[2]+s*(a[2]-o[2]),10),(l+=","+(o&&a?parseFloat(o[3]+s*(a[3]-o[3])):1))+")"}}))}
vendor: 4,247 bytes, line 1
1,function(){function t(t,e,n,i){return t<Math.abs(e)?(t=e,i=n/4):i=0===e&&0===t?n/(2*Math.PI)*Math.asin(1):n/(2*Math.PI)*Math.asin(e/t),{a:t,c:e,p:n,s:i}}function e(t,e,n){return t.a*Math.pow(2,10*(e-=1))*Math.sin((e*n-t.s)*(2*Math.PI)/t.p)}function n(t,e,n,r){return n-i(r-t,0,n,r)+e}function i(t,e,n,i){return(t/=i)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e}C.util.ease={easeInQuad:function(t,e,n,i){return n*(t/=i)*t+e},easeOutQuad:function(t,e,n,i){return-n*(t/=i)*(t-2)+e},easeInOutQuad:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,i){return n*(t/=i)*t*t+e},easeOutCubic:function(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,i){return n*(t/=i)*t*t*t+e},easeOutQuart:function(t,e,n,i){return-n*((t=t/i-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,i){return n*(t/=i)*t*t*t*t+e},easeOutQuint:function(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e},easeOutSine:function(t,e,n,i){return n*Math.sin(t/i*(Math.PI/2))+e},easeInOutSine:function(t,e,n,i){return-n/2*(Math.cos(Math.PI*t/i)-1)+e},easeInExpo:function(t,e,n,i){return 0===t?e:n*Math.pow(2,10*(t/i-1))+e},easeOutExpo:function(t,e,n,i){return t===i?e+n:n*(1-Math.pow(2,-10*t/i))+e},easeInOutExpo:function(t,e,n,i){return 0===t?e:t===i?e+n:(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,n,i){return-n*(Math.sqrt(1-(t/=i)*t)-1)+e},easeOutCirc:function(t,e,n,i){return n*Math.sqrt(1-(t=t/i-1)*t)+e},easeInOutCirc:function(t,e,n,i){return(t/=i/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(n,i,r,o){var a=0;return 0===n?i:1==(n/=o)?i+r:(a||(a=.3*o),-e(t(r,r,a,1.70158),n,o)+i)},easeOutElastic:function(e,n,i,r){var o=0,a=i;if(0===e)return n;if(1==(e/=r))return n+i;o||(o=.3*r);var s=t(a,i,o,1.70158);return s.a*Math.pow(2,-10*e)*Math.sin((e*r-s.s)*(2*Math.PI)/s.p)+s.c+n},easeInOutElastic:function(n,i,r,o){var a=0,s=r;if(0===n)return i;if(2==(n/=o/2))return i+r;a||(a=o*(.3*1.5));var l=t(s,r,a,1.70158);return n<1?-.5*e(l,n,o)+i:l.a*Math.pow(2,-10*(n-=1))*Math.sin((n*o-l.s)*(2*Math.PI)/l.p)*.5+l.c+i},easeInBack:function(t,e,n,i,r){return void 0===r&&(r=1.70158),n*(t/=i)*t*((r+1)*t-r)+e},easeOutBack:function(t,e,n,i,r){return void 0===r&&(r=1.70158),n*((t=t/i-1)*t*((r+1)*t+r)+1)+e},easeInOutBack:function(t,e,n,i,r){return void 0===r&&(r=1.70158),(t/=i/2)<1?n/2*(t*t*((1+(r*=1.525))*t-r))+e:n/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},easeInBounce:n,easeOutBounce:i,easeInOutBounce:function(t,e,r,o){return t<o/2?.5*n(2*t,0,r,o)+e:.5*i(2*t-o,0,r,o)+.5*r+e}}}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend,r=n.util.object.clone,o=n.util.toFixed,a=n.util.parseUnit,s=n.util.multiplyTransformMatrices,l={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity"},u={stroke:"strokeOpacity",fill:"fillOpacity"};function c(t){return t in l?l[t]:t}function h(t,e,i,r){var o,l="[object Array]"===Object.prototype.toString.call(e);if("fill"!==t&&"stroke"!==t||"none"!==e)if("strokeDashArray"===t)e="none"===e?null:e.replace(/,/g," ").split(/\s+/).map(function(t){return parseFloat(t)});else if("transformMatrix"===t)e=i&&i.transformMatrix?s(i.transformMatrix,n.parseTransformAttribute(e)):n.parseTransformAttribute(e);
1else if("visible"===t)e="none"!==e&&"hidden"!==e,i&&!1===i.visible&&(e=!1);else if("opacity"===t)e=parseFloat(e),i&&void 0!==i.opacity&&(e*=i.opacity);else if("textAnchor"===t)e="start"===e?"left":"end"===e?"right":"center";else if("charSpacing"===t)o=a(e,r)/r*1e3;else if("paintFirst"===t){var u=e.indexOf("fill"),c=e.indexOf("stroke");e="fill",u>-1&&c>-1&&c<u?e="stroke":-1===u&&c>-1&&(e="stroke")}else o=l?e.map(a):a(e,r);else e="";return!l&&isNaN(o)?e:o}function d(t){return new RegExp("^("+t.join("|")+")\\b","i")}function p(t,e){var n,i,r,o=[];for(i=0,r=e.length;i<r;i++)n=t.getElementsByTagName(e[i]),o=o.concat(Array.prototype.slice.call(n));return o}function f(t,e){var n,i=!0;return(n=g(t,e.pop()))&&e.length&&(i=function(t,e){for(var n,i=!0;t.parentNode&&1===t.parentNode.nodeType&&e.length;)i&&(n=e.pop()),i=g(t=t.parentNode,n);return 0===e.length}(t,e)),n&&i&&0===e.length}function g(t,e){var n,i,r=t.nodeName,o=t.getAttribute("class"),a=t.getAttribute("id");if(n=new RegExp("^"+r,"i"),e=e.replace(n,""),a&&e.length&&(n=new RegExp("#"+a+"(?![a-zA-Z\\-]+)","i"),e=e.replace(n,"")),o&&e.length)for(i=(o=o.split(" ")).length;i--;)n=new RegExp("\\."+o[i]+"(?![a-zA-Z\\-]+)","i"),e=e.replace(n,"");return 0===e.length}function m(t,e){var n;if(t.getElementById&&(n=t.getElementById(e)),n)return n;var i,r,o,a=t.getElementsByTagName("*");for(r=0,o=a.length;r<o;r++)if(e===(i=a[r]).getAttribute("id"))return i}n.svgValidTagNamesRegEx=d(["path","circle","polygon","polyline","ellipse","rect","line","image","text","linearGradient","radialGradient","stop"]),n.svgViewBoxElementsRegEx=d(["symbol","image","marker","pattern","view","svg"]),n.svgInvalidAncestorsRegEx=d(["pattern","defs","symbol","metadata","clipPath","mask","desc"]),n.svgValidParentsRegEx=d(["symbol","g","a","svg"]),n.cssRules={},n.gradientDefs={},n.parseTransformAttribute=function(){function t(t,e,i){t[i]=Math.tan(n.util.degreesToRadians(e[0]))}var e=[1,0,0,1,0,0],i=n.reNum,r="(?:\\s+,?\\s*|,\\s*)",o="(?:(?:(matrix)\\s*\\(\\s*("+i+")"+r+"("+i+")"+r+"("+i+")"+r+"("+i+")"+r+"("+i+")"+r+"("+i+")\\s*\\))|(?:(translate)\\s*\\(\\s*("+i+")(?:"+r+"("+i+"))?\\s*\\))|(?:(scale)\\s*\\(\\s*("+i+")(?:"+r+"("+i+"))?\\s*\\))|(?:(rotate)\\s*\\(\\s*("+i+")(?:"+r+"("+i+")"+r+"("+i+"))?\\s*\\))|(?:(skewX)\\s*\\(\\s*("+i+")\\s*\\))|(?:(skewY)\\s*\\(\\s*("+i+")\\s*\\)))",a=new RegExp("^\\s*(?:(?:"+o+"(?:"+r+"*"+o+")*)?)\\s*$"),s=new RegExp(o,"g");return function(i){var r=e.concat(),l=[];if(!i||i&&!a.test(i))return r;i.replace(s,function(i){var a=new RegExp(o).exec(i).filter(function(t){return!!t}),s=a[1],u=a.slice(2).map(parseFloat);switch(s){case"translate":!function(t,e){t[4]=e[0],2===e.length&&(t[5]=e[1])}(r,u);break;case"rotate":u[0]=n.util.degreesToRadians(u[0]),function(t,e){var i=n.util.cos(e[0]),r=n.util.sin(e[0]),o=0,a=0;3===e.length&&(o=e[1],a=e[2]),t[0]=i,t[1]=r,t[2]=-r,t[3]=i,t[4]=o-(i*o-r*a),t[5]=a-(r*o+i*a)}(r,u);break;case"scale":!function(t,e){var n=2===e.length?e[1]:e[0];t[0]=e[0],t[3]=n}(r,u);break;case"skewX":t(r,u,2);break;case"skewY":t(r,u,1);break;case"matrix":r=u}l.push(r.concat()),r=e.concat()});for(var u=l[0];l.length>1;)l.shift(),u=n.util.multiplyTransformMatrices(u,l[0]);return u}}();var v=new RegExp("^\\s*("+n.reNum+"+)\\s*,?\\s*("+n.reNum+"+)\\s*,?\\s*("+n.reNum+"+)\\s*,?\\s*("+n.reNum+"+)\\s*$");function y(t){var e,i,r,o,s,l,u=t.getAttribute("viewBox"),c=1,h=1,d=t.getAttribute("width"),p=t.getAttribute("height"),f=t.getAttribute("x")||0,g=t.getAttribute("y")||0,m=t.getAttribute("preserveAspectRatio")||"",y=!u||!n.svgViewBoxElementsRegEx.test(t.nodeName)||!(u=u.match(v)),b=!d||!p||"100%"===d||"100%"===p,_=y&&b,w={},x="",C=0,S=0;if(w.width=0,w.height=0,w.toBeParsed=_,_)return w;if(y)return w.width=a(d),w.height=a(p),w;if(e=-parseFloat(u[1]),i=-parseFloat(u[2]),r=parseFloat(u[3]),o=parseFloat(u[4]),b?(w.width=r,w.height=o):(w.width=a(d),w.height=a(p),c=w.width/r,h=w.height/o),"none"!==(m=n.util.parsePreserveAspectRatioAttribute(m)).alignX&&("meet"===m.meetOrSlice&&(h=c=c>h?h:c),"slice"===m.meetOrSlice&&(h=c=c>h?c:h),C=w.width-r*c,S=w.height-o*c,"Mid"===m.alignX&&(C/=2),"Mid"===m.alignY&&(S/=2),"Min"===m.alignX&&(C=0),"Min"===m.alignY&&(S=0)),1===c&&1===h&&0===e&&0===i&&0===f&&0===g)return w;if((f||g)&&(x=" translate("+a(f)+" "+a(g)+") "),s=x+" matrix("+c+" 0 0 "+h+" "+(e*c+C)+" "+(i*h+S)+") ","svg"===t.nodeName){for(l=t.ownerDocument.createElement("g");t.firstChild;)l.appendChild(t.firstChild);t.appendChild(l)}else s=(l=t).getAttribute("transform")+s;return l.setAttribute("transform",s),w}
1n.parseSVGDocument=function(t,e,i,o){if(t){!function(t){for(var e=p(t,["use","svg:use"]),n=0;e.length&&n<e.length;){var i,r,o,a,s=e[n],l=s.getAttribute("xlink:href").substr(1),u=s.getAttribute("x")||0,c=s.getAttribute("y")||0,h=m(t,l).cloneNode(!0),d=(h.getAttribute("transform")||"")+" translate("+u+", "+c+")",f=e.length;if(y(h),/^svg$/i.test(h.nodeName)){var g=h.ownerDocument.createElement("g");for(r=0,a=(o=h.attributes).length;r<a;r++)i=o.item(r),g.setAttribute(i.nodeName,i.nodeValue);for(;h.firstChild;)g.appendChild(h.firstChild);h=g}for(r=0,a=(o=s.attributes).length;r<a;r++)"x"!==(i=o.item(r)).nodeName&&"y"!==i.nodeName&&"xlink:href"!==i.nodeName&&("transform"===i.nodeName?d=i.nodeValue+" "+d:h.setAttribute(i.nodeName,i.nodeValue));h.setAttribute("transform",d),h.setAttribute("instantiated_by_use","1"),h.removeAttribute("id"),s.parentNode.replaceChild(h,s),e.length===f&&n++}}(t);var a,s,l=n.Object.__uid++,u=y(t),c=n.util.toArray(t.getElementsByTagName("*"));if(u.crossOrigin=o&&o.crossOrigin,u.svgUid=l,0===c.length&&n.isLikelyNode){var h=[];for(a=0,s=(c=t.selectNodes('//*[name(.)!="svg"]')).length;a<s;a++)h[a]=c[a];c=h}var d=c.filter(function(t){return y(t),n.svgValidTagNamesRegEx.test(t.nodeName.replace("svg:",""))&&!function(t,e){for(;t&&(t=t.parentNode);)if(t.nodeName&&e.test(t.nodeName.replace("svg:",""))&&!t.getAttribute("instantiated_by_use"))return!0;return!1}(t,n.svgInvalidAncestorsRegEx)});!d||d&&!d.length?e&&e([],{}):(n.gradientDefs[l]=n.getGradientDefs(t),n.cssRules[l]=n.getCSSRules(t),n.parseElements(d,function(t,n){e&&e(t,u,n,c)},r(u),i,o))}};var b=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+n.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+n.reNum+"))?\\s+(.*)");i(n,{parseFontDeclaration:function(t,e){var n=t.match(b);if(n){var i=n[1],r=n[3],o=n[4],s=n[5],l=n[6];i&&(e.fontStyle=i),r&&(e.fontWeight=isNaN(parseFloat(r))?r:parseFloat(r)),o&&(e.fontSize=a(o)),l&&(e.fontFamily=l),s&&(e.lineHeight="normal"===s?1:s)}},getGradientDefs:function(t){var e,n,i,r=p(t,["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"]),o=0,a={},s={};for(o=r.length;o--;)i=(e=r[o]).getAttribute("xlink:href"),n=e.getAttribute("id"),i&&(s[n]=i.substr(1)),a[n]=e;for(n in s){var l=a[s[n]].cloneNode(!0);for(e=a[n];l.firstChild;)e.appendChild(l.firstChild)}return a},parseAttributes:function(t,e,r){if(t){var a,s,l={};void 0===r&&(r=t.getAttribute("svgUid")),t.parentNode&&n.svgValidParentsRegEx.test(t.parentNode.nodeName)&&(l=n.parseAttributes(t.parentNode,e,r)),s=l&&l.fontSize||t.getAttribute("font-size")||n.Text.DEFAULT_SVG_FONT_SIZE;var d=e.reduce(function(e,n){return(a=t.getAttribute(n))&&(e[n]=a),e},{});d=i(d,i(function(t,e){var i={};for(var r in n.cssRules[e])if(f(t,r.split(" ")))for(var o in n.cssRules[e][r])i[o]=n.cssRules[e][r][o];return i}(t,r),n.parseStyleAttribute(t)));var p,g,m={};for(var v in d)g=h(p=c(v),d[v],l,s),m[p]=g;m&&m.font&&n.parseFontDeclaration(m.font,m);var y=i(l,m);return n.svgValidParentsRegEx.test(t.nodeName)?y:function(t){for(var e in u)if(void 0!==t[u[e]]&&""!==t[e]){if(void 0===t[e]){if(!n.Object.prototype[e])continue;t[e]=n.Object.prototype[e]}if(0!==t[e].indexOf("url(")){var i=new n.Color(t[e]);t[e]=i.setAlpha(o(i.getAlpha()*t[u[e]],2)).toRgba()}}return t}(y)}},parseElements:function(t,e,i,r,o){new n.ElementsParser(t,e,i,r,o).parse()},parseStyleAttribute:function(t){var e={},n=t.getAttribute("style");return n?("string"==typeof n?function(t,e){var n,i;t.replace(/;\s*$/,"").split(";").forEach(function(t){var r=t.split(":");n=r[0].trim().toLowerCase(),i=r[1].trim(),e[n]=i})}(n,e):function(t,e){for(var n in t)void 0!==t[n]&&(e[n.toLowerCase()]=t[n])}(n,e),e):e},parsePointsAttribute:function(t){if(!t)return null;var e,n,i=[];for(e=0,n=(t=(t=t.replace(/,/g," ").trim()).split(/\s+/)).length;e<n;e+=2)i.push({x:parseFloat(t[e]),y:parseFloat(t[e+1])});return i},getCSSRules:function(t){var e,i,r=t.getElementsByTagName("style"),o={};for(e=0,i=r.length;e<i;e++){var a=r[e].textContent||r[e].text;""!==(a=a.replace(/\/\*[\s\S]*?\*\//g,"")).trim()&&a.match(/[^{]*\{[\s\S]*?\}/g).map(function(t){return t.trim()}
1).forEach(function(t){var r=t.match(/([\s\S]*?)\s*\{([^}]*)\}/),a={},s=r[2].trim().replace(/;$/,"").split(/\s*;\s*/);for(e=0,i=s.length;e<i;e++){var l=s[e].split(/\s*:\s*/);a[l[0]]=l[1]}(t=r[1]).split(",").forEach(function(t){""!==(t=t.replace(/^svg/i,"").trim())&&(o[t]?n.util.object.extend(o[t],a):o[t]=n.util.object.clone(a))})})}return o},loadSVGFromURL:function(t,e,i,r){t=t.replace(/^\n\s*/,"").trim(),new n.util.request(t,{method:"get",onComplete:function(t){var o=t.responseXML;o&&!o.documentElement&&n.window.ActiveXObject&&t.responseText&&((o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(t.responseText.replace(/<!DOCTYPE[\s\S]*?(\[[\s\S]*\])*?>/i,""))),o&&o.documentElement||e&&e(null),n.parseSVGDocument(o.documentElement,function(t,n,i,r){e&&e(t,n,i,r)},i,r)}})},loadSVGFromString:function(t,e,i,r){var o;if(t=t.trim(),"undefined"!=typeof DOMParser){var a=new DOMParser;a&&a.parseFromString&&(o=a.parseFromString(t,"text/xml"))}else n.window.ActiveXObject&&((o=new ActiveXObject("Microsoft.XMLDOM")).async="false",o.loadXML(t.replace(/<!DOCTYPE[\s\S]*?(\[[\s\S]*\])*?>/i,"")));n.parseSVGDocument(o.documentElement,function(t,n,i,r){e(t,n,i,r)},i,r)}})}(),C.ElementsParser=function(t,e,n,i,r){this.elements=t,this.callback=e,this.options=n,this.reviver=i,this.svgUid=n&&n.svgUid||0,this.parsingOptions=r,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g},C.ElementsParser.prototype.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},C.ElementsParser.prototype.createObjects=function(){for(var t=0,e=this.elements.length;t<e;t++)this.elements[t].setAttribute("svgUid",this.svgUid),function(t,e){setTimeout(function(){t.createObject(t.elements[e],e)},0)}(this,t)},C.ElementsParser.prototype.createObject=function(t,e){var n=C[C.util.string.capitalize(t.tagName.replace("svg:",""))];if(n&&n.fromElement)try{this._createObject(n,t,e)}catch(t){C.log(t)}else this.checkIfDone()},C.ElementsParser.prototype._createObject=function(t,e,n){t.fromElement(e,this.createCallback(n,e),this.options)},C.ElementsParser.prototype.createCallback=function(t,e){var n=this;return function(i){var r;n.resolveGradient(i,"fill"),n.resolveGradient(i,"stroke"),i instanceof C.Image&&(r=i.parsePreserveAspectRatioAttribute(e)),i._removeTransformMatrix(r),n.reviver&&n.reviver(e,i),n.instances[t]=i,n.checkIfDone()}},C.ElementsParser.prototype.resolveGradient=function(t,e){var n=t[e];if(/^url\(/.test(n)){var i=this.regexUrl.exec(n)[1];this.regexUrl.lastIndex=0,C.gradientDefs[this.svgUid][i]&&t.set(e,C.Gradient.fromElement(C.gradientDefs[this.svgUid][i],t))}},C.ElementsParser.prototype.checkIfDone=function(){0==--this.numElements&&(this.instances=this.instances.filter(function(t){return null!=t}),this.callback(this.instances,this.elements))},function(t){"use strict";var n=e.fabric||(e.fabric={});function i(t,e){this.x=t,this.y=e}n.Point?n.warn("fabric.Point is already defined"):(n.Point=i,i.prototype={type:"point",constructor:i,add:function(t){return new i(this.x+t.x,this.y+t.y)},addEquals:function(t){return this.x+=t.x,this.y+=t.y,this},scalarAdd:function(t){return new i(this.x+t,this.y+t)},scalarAddEquals:function(t){return this.x+=t,this.y+=t,this},subtract:function(t){return new i(this.x-t.x,this.y-t.y)},subtractEquals:function(t){return this.x-=t.x,this.y-=t.y,this},scalarSubtract:function(t){return new i(this.x-t,this.y-t)},scalarSubtractEquals:function(t){return this.x-=t,this.y-=t,this},multiply:function(t){return new i(this.x*t,this.y*t)},multiplyEquals:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return new i(this.x/t,this.y/t)},divideEquals:function(t){return this.x/=t,this.y/=t,this},eq:function(t){return this.x===t.x&&this.y===t.y},lt:function(t){return this.x<t.x&&this.y<t.y},lte:function(t){return this.x<=t.x&&this.y<=t.y},gt:function(t){return this.x>t.x&&this.y>t.y},gte:function(t){return this.x>=t.x&&this.y>=t.y},lerp:function(t,e){return void 0===e&&(e=.5),e=Math.max(Math.min(1,e),0),new i(this.x+(t.x-this.x)*e,this.y+(t.y-this.y)*e)},distanceFrom:function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},midPointFrom:function(t){return this.lerp(t)},min:function(t){return new i(Math.min(this.x,t.x),Math.min(this.y,t.y))},max:function(t){return new i(Math.max(this.x,t.x),Math.max(this.y,t.y))},toString:function(){return this.x+","+this.y},setXY:function(t,e){return this.x=t,this.y=e,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setFromPoint:function(t){return this.x=t.x,this.y=t.y,this},swap:function(t){var e=this.x,n=this.y;this.x=t.x,this.y=t.y,t.x=e,t.y=n},clone:function(){return new i(this.x,this.y)}})}(),function(t){"use strict";var n=e.fabric||(e.fabric={});function i(t){this.status=t,this.points=[]}n.Intersection?n.warn("fabric.Intersection is already defined"):(n.Intersection=i,n.Intersection.prototype={constructor:i,appendPoint:function(t){return this.points.push(t),this},appendPoints:function(t){return this.points=this.points.concat(t),this}},n.Intersection.intersectLineLine=function(t,e,r,o){var a,s=(o.x-r.x)*(t.y-r.y
vendor: 5,718 bytes, line 1
1)-(o.y-r.y)*(t.x-r.x),l=(e.x-t.x)*(t.y-r.y)-(e.y-t.y)*(t.x-r.x),u=(o.y-r.y)*(e.x-t.x)-(o.x-r.x)*(e.y-t.y);if(0!==u){var c=s/u,h=l/u;0<=c&&c<=1&&0<=h&&h<=1?(a=new i("Intersection")).appendPoint(new n.Point(t.x+c*(e.x-t.x),t.y+c*(e.y-t.y))):a=new i}else a=new i(0===s||0===l?"Coincident":"Parallel");return a},n.Intersection.intersectLinePolygon=function(t,e,n){var r,o,a=new i,s=n.length;for(o=0;o<s;o++)r=i.intersectLineLine(t,e,n[o],n[(o+1)%s]),a.appendPoints(r.points);return a.points.length>0&&(a.status="Intersection"),a},n.Intersection.intersectPolygonPolygon=function(t,e){var n,r=new i,o=t.length;for(n=0;n<o;n++){var a=i.intersectLinePolygon(t[n],t[(n+1)%o],e);r.appendPoints(a.points)}return r.points.length>0&&(r.status="Intersection"),r},n.Intersection.intersectPolygonRectangle=function(t,e,r){var o=e.min(r),a=e.max(r),s=new n.Point(a.x,o.y),l=new n.Point(o.x,a.y),u=i.intersectLinePolygon(o,s,t),c=i.intersectLinePolygon(s,a,t),h=i.intersectLinePolygon(a,l,t),d=i.intersectLinePolygon(l,o,t),p=new i;return p.appendPoints(u.points),p.appendPoints(c.points),p.appendPoints(h.points),p.appendPoints(d.points),p.points.length>0&&(p.status="Intersection"),p})}(),function(t){"use strict";var n=e.fabric||(e.fabric={});function i(t){t?this._tryParsingColor(t):this.setSource([0,0,0,1])}function r(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}n.Color?n.warn("fabric.Color is already defined."):(n.Color=i,n.Color.prototype={_tryParsingColor:function(t){var e;t in i.colorNameMap&&(t=i.colorNameMap[t]),"transparent"===t&&(e=[255,255,255,0]),e||(e=i.sourceFromHex(t)),e||(e=i.sourceFromRgb(t)),e||(e=i.sourceFromHsl(t)),e||(e=[0,0,0,1]),e&&this.setSource(e)},_rgbToHsl:function(t,e,i){var r,o,a,s=n.util.array.max([t/=255,e/=255,i/=255]),l=n.util.array.min([t,e,i]);if(a=(s+l)/2,s===l)r=o=0;else{var u=s-l;switch(o=a>.5?u/(2-s-l):u/(s+l),s){case t:r=(e-i)/u+(e<i?6:0);break;case e:r=(i-t)/u+2;break;case i:r=(t-e)/u+4}r/=6}return[Math.round(360*r),Math.round(100*o),Math.round(100*a)]},getSource:function(){return this._source},setSource:function(t){this._source=t},toRgb:function(){var t=this.getSource();return"rgb("+t[0]+","+t[1]+","+t[2]+")"},toRgba:function(){var t=this.getSource();return"rgba("+t[0]+","+t[1]+","+t[2]+","+t[3]+")"},toHsl:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return"hsl("+e[0]+","+e[1]+"%,"+e[2]+"%)"},toHsla:function(){var t=this.getSource(),e=this._rgbToHsl(t[0],t[1],t[2]);return"hsla("+e[0]+","+e[1]+"%,"+e[2]+"%,"+t[3]+")"},toHex:function(){var t,e,n,i=this.getSource();return t=1===(t=i[0].toString(16)).length?"0"+t:t,e=1===(e=i[1].toString(16)).length?"0"+e:e,n=1===(n=i[2].toString(16)).length?"0"+n:n,t.toUpperCase()+e.toUpperCase()+n.toUpperCase()},toHexa:function(){var t,e=this.getSource();return t=1===(t=(t=Math.round(255*e[3])).toString(16)).length?"0"+t:t,this.toHex()+t.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(t){var e=this.getSource();return e[3]=t,this.setSource(e),this},toGrayscale:function(){var t=this.getSource(),e=parseInt((.3*t[0]+.59*t[1]+.11*t[2]).toFixed(0),10);return this.setSource([e,e,e,t[3]]),this},toBlackWhite:function(t){var e=this.getSource(),n=(.3*e[0]+.59*e[1]+.11*e[2]).toFixed(0),i=e[3];return t=t||127,n=Number(n)<Number(t)?0:255,this.setSource([n,n,n,i]),this},overlayWith:function(t){t instanceof i||(t=new i(t));var e,n=[],r=this.getAlpha(),o=this.getSource(),a=t.getSource();for(e=0;e<3;e++)n.push(Math.round(.5*o[e]+.5*a[e]));return n[3]=r,this.setSource(n),this}},n.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/,n.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/,n.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,n.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA5
15D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},n.Color.fromRgb=function(t){return i.fromSource(i.sourceFromRgb(t))},n.Color.sourceFromRgb=function(t){var e=t.match(i.reRGBa);if(e){var n=parseInt(e[1],10)/(/%$/.test(e[1])?100:1)*(/%$/.test(e[1])?255:1),r=parseInt(e[2],10)/(/%$/.test(e[2])?100:1)*(/%$/.test(e[2])?255:1),o=parseInt(e[3],10)/(/%$/.test(e[3])?100:1)*(/%$/.test(e[3])?255:1);return[parseInt(n,10),parseInt(r,10),parseInt(o,10),e[4]?parseFloat(e[4]):1]}},n.Color.fromRgba=i.fromRgb,n.Color.fromHsl=function(t){return i.fromSource(i.sourceFromHsl(t))},n.Color.sourceFromHsl=function(t){var e=t.match(i.reHSLa);if(e){var n,o,a,s=(parseFloat(e[1])%360+360)%360/360,l=parseFloat(e[2])/(/%$/.test(e[2])?100:1),u=parseFloat(e[3])/(/%$/.test(e[3])?100:1);if(0===l)n=o=a=u;else{var c=u<=.5?u*(l+1):u+l-u*l,h=2*u-c;n=r(h,c,s+1/3),o=r(h,c,s),a=r(h,c,s-1/3)}return[Math.round(255*n),Math.round(255*o),Math.round(255*a),e[4]?parseFloat(e[4]):1]}},n.Color.fromHsla=i.fromHsl,n.Color.fromHex=function(t){return i.fromSource(i.sourceFromHex(t))},n.Color.sourceFromHex=function(t){if(t.match(i.reHex)){var e=t.slice(t.indexOf("#")+1),n=3===e.length||4===e.length,r=8===e.length||4===e.length,o=n?e.charAt(0)+e.charAt(0):e.substring(0,2),a=n?e.charAt(1)+e.charAt(1):e.substring(2,4),s=n?e.charAt(2)+e.charAt(2):e.substring(4,6),l=r?n?e.charAt(3)+e.charAt(3):e.substring(6,8):"FF";return[parseInt(o,16),parseInt(a,16),parseInt(s,16),parseFloat((parseInt(l,16)/255).toFixed(2))]}},n.Color.fromSource=function(t){var e=new i;return e.setSource(t),e})}(),function(){function t(t){var e,n,i,r,o=t.getAttribute("style"),a=t.getAttribute("offset")||0;if(a=(a=parseFloat(a)/(/%$/.test(a)?100:1))<0?0:a>1?1:a,o){var s=o.split(/\s*;\s*/);for(""===s[s.length-1]&&s.pop(),r=s.length;r--;){var l=s[r].split(/\s*:\s*/),u=l[0].trim(),c=l[1].trim();"stop-color"===u?e=c:"stop-opacity"===u&&(i=c)}}return e||(e=t.getAttribute("stop-color")||"rgb(0,0,0)"),i||(i=t.getAttribute("stop-opacity")),n=(e=new C.Color(e)).getAlpha(),i=isNaN(parseFloat(i))?1:parseFloat(i),i*=n,{offset:a,color:e.toRgb(),opacity:i}}var e=C.util.object.clone;function n(t,e,n){var i,r=0,o=1,a="";for(var s in e)"Infinity"===e[s]?e[s]=1:"-Infinity"===e[s]&&(e[s]=0),i=parseFloat(e[s],10),o="string"==typeof e[s]&&/^(\d+\.\d+)%|(\d+)%$/.test(e[s])?.01:1,"x1"===s||"x2"===s||"r2"===s?(o*="objectBoundingBox"===n?t.width:1,r="objectBoundingBox"===n&&t.left||0):"y1"!==s&&"y2"!==s||(o*="objectBoundingBox"===n?t.height:1,r="objectBoundingBox"===n&&t.top||0),e[s]=i*o+r;if("ellipse"===t.type&&null!==e.r2&&"objectBoundingBox"===n&&t.rx!==t.ry){var l=t.ry/t.rx;a=" scale(1, "+l+")",e.y1&&(e.y1/=l),e.y2&&(e.y2/=l)}return a}C.Gradient=C.util.createClass({offsetX:0,offsetY:0,initialize:function(t){t||(t={});var e={};this.id=C.Object.__uid++,this.type=t.type||"linear",e={x1:t.coords.x1||0,y1:t.coords.y1||0,x2:t.coords.x2||0,y2:t.coords.y2||0},"radial"===this.type&&(e.r1=t.coords.r1||0,e.r2=t.coords.r2||0),this.coords=e,this.colorStops=t.colorStops.slice(),t.gradientTransform&&(this.gradientTransform=t.gradientTransform),this.offsetX=t.offsetX||this.offsetX,this.offsetY=t.offsetY||this.offsetY},addColorStop:function(t){for(var e in t){var n=new C.Color(t[e]);this.colorStops.push({offset:parseFloat(e),color:n.toRgb(),opacity:n.getAlpha()})}return this}
1,toObject:function(t){var e={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return C.util.populateWithProperties(this,e,t),e},toSVG:function(t){var n,i,r,o,a=e(this.coords,!0),s=e(this.colorStops,!0),l=a.r1>a.r2,u=t.width/2,c=t.height/2;for(var h in s.sort(function(t,e){return t.offset-e.offset}),"path"===t.type&&(u-=t.pathOffset.x,c-=t.pathOffset.y),a)"x1"===h||"x2"===h?a[h]+=this.offsetX-u:"y1"!==h&&"y2"!==h||(a[h]+=this.offsetY-c);if(o='id="SVGID_'+this.id+'" gradientUnits="userSpaceOnUse"',this.gradientTransform&&(o+=' gradientTransform="matrix('+this.gradientTransform.join(" ")+')" '),"linear"===this.type?r=["<linearGradient ",o,' x1="',a.x1,'" y1="',a.y1,'" x2="',a.x2,'" y2="',a.y2,'">\n']:"radial"===this.type&&(r=["<radialGradient ",o,' cx="',l?a.x1:a.x2,'" cy="',l?a.y1:a.y2,'" r="',l?a.r1:a.r2,'" fx="',l?a.x2:a.x1,'" fy="',l?a.y2:a.y1,'">\n']),"radial"===this.type){if(l)for((s=s.concat()).reverse(),n=0,i=s.length;n<i;n++)s[n].offset=1-s[n].offset;var d=Math.min(a.r1,a.r2);if(d>0){var p=d/Math.max(a.r1,a.r2);for(n=0,i=s.length;n<i;n++)s[n].offset+=p*(1-s[n].offset)}}for(n=0,i=s.length;n<i;n++){var f=s[n];r.push("<stop ",'offset="',100*f.offset+"%",'" style="stop-color:',f.color,void 0!==f.opacity?";stop-opacity: "+f.opacity:";",'"/>\n')}return r.push("linear"===this.type?"</linearGradient>\n":"</radialGradient>\n"),r.join("")},toLive:function(t){var e,n,i,r=C.util.object.clone(this.coords);if(this.type){for("linear"===this.type?e=t.createLinearGradient(r.x1,r.y1,r.x2,r.y2):"radial"===this.type&&(e=t.createRadialGradient(r.x1,r.y1,r.r1,r.x2,r.y2,r.r2)),n=0,i=this.colorStops.length;n<i;n++){var o=this.colorStops[n].color,a=this.colorStops[n].opacity,s=this.colorStops[n].offset;void 0!==a&&(o=new C.Color(o).setAlpha(a).toRgba()),e.addColorStop(s,o)}return e}}}),C.util.object.extend(C.Gradient,{fromElement:function(e,i){var r,o,a,s,l=e.getElementsByTagName("stop"),u=e.getAttribute("gradientUnits")||"objectBoundingBox",c=e.getAttribute("gradientTransform"),h=[];for("linear"==(r="linearGradient"===e.nodeName||"LINEARGRADIENT"===e.nodeName?"linear":"radial")?o=function(t){return{x1:t.getAttribute("x1")||0,y1:t.getAttribute("y1")||0,x2:t.getAttribute("x2")||"100%",y2:t.getAttribute("y2")||0}}(e):"radial"===r&&(o=function(t){return{x1:t.getAttribute("fx")||t.getAttribute("cx")||"50%",y1:t.getAttribute("fy")||t.getAttribute("cy")||"50%",r1:0,x2:t.getAttribute("cx")||"50%",y2:t.getAttribute("cy")||"50%",r2:t.getAttribute("r")||"50%"}}(e)),s=l.length;s--;)h.push(t(l[s]));a=n(i,o,u);var d=new C.Gradient({type:r,coords:o,colorStops:h,offsetX:-i.left,offsetY:-i.top});return(c||""!==a)&&(d.gradientTransform=C.parseTransformAttribute((c||"")+a)),d},forObject:function(t,e){return e||(e={}),n(t,e.coords,"userSpaceOnUse"),new C.Gradient(e)}})}(),function(){"use strict";var t=C.util.toFixed;C.Pattern=C.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(t,e){if(t||(t={}),this.id=C.Object.__uid++,this.setOptions(t),!t.source||t.source&&"string"!=typeof t.source)e&&e(this);else if(void 0!==C.util.getFunctionBody(t.source))this.source=new Function(C.util.getFunctionBody(t.source)),e&&e(this);else{var n=this;this.source=C.util.createImage(),C.util.loadImage(t.source,function(t){n.source=t,e&&e(n)},null,this.crossOrigin)}},toObject:function(e){var n,i,r=C.Object.NUM_FRACTION_DIGITS;return"function"==typeof this.source?n=String(this.source):"string"==typeof this.source.src?n=this.source.src:"object"==typeof this.source&&this.source.toDataURL&&(n=this.source.toDataURL()),i={type:"pattern",source:n,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:t(this.offsetX,r),offsetY:t(this.offsetY,r),patternTransform:this.patternTransform?this.patternTransform.concat():null},C.util.populateWithProperties(this,i,e),i},toSVG:function(t){var e="function"==typeof this.source?this.source():this.source,n=e.width/t.width,i=e.height/t.height,r=this.offsetX/t.width,o=this.offsetY/t.height,a="";return"repeat-x"!==this.repeat&&"no-repeat"!==this.repeat||(i=1),"repeat-y"!==this.repeat&&"no-repeat"!==this.repeat||(n=1),e.src?a=e.src:e.toDataURL&&(a=e.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+r+'" y="'+o+'" width="'+n+'" height="'+i+'">\n<image x="0" y="0" width="'+e.width+'" height="'+e.height+'" xlink:href="'+a+'"></image>\n</pattern>\n'},setOptions:function(t){for(var e in t)this[e]=t[e]},toLive:function(t){var e="function"==typeof this.source?this.source():this.source;if(!e)return"";if(void 0!==e.src){if(!e.complete)return"";
1if(0===e.naturalWidth||0===e.naturalHeight)return""}return t.createPattern(e,this.repeat)}})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.toFixed;n.Shadow?n.warn("fabric.Shadow is already defined."):(n.Shadow=n.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,initialize:function(t){for(var e in"string"==typeof t&&(t=this._parseShadow(t)),t)this[e]=t[e];this.id=n.Object.__uid++},_parseShadow:function(t){var e=t.trim(),i=n.Shadow.reOffsetsAndBlur.exec(e)||[];return{color:(e.replace(n.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)").trim(),offsetX:parseInt(i[1],10)||0,offsetY:parseInt(i[2],10)||0,blur:parseInt(i[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(t){var e=40,r=40,o=n.Object.NUM_FRACTION_DIGITS,a=n.util.rotateVector({x:this.offsetX,y:this.offsetY},n.util.degreesToRadians(-t.angle)),s=new n.Color(this.color);return t.width&&t.height&&(e=100*i((Math.abs(a.x)+this.blur)/t.width,o)+20,r=100*i((Math.abs(a.y)+this.blur)/t.height,o)+20),t.flipX&&(a.x*=-1),t.flipY&&(a.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+r+'%" height="'+(100+2*r)+'%" x="-'+e+'%" width="'+(100+2*e)+'%" >\n\t<feGaussianBlur in="SourceAlpha" stdDeviation="'+i(this.blur?this.blur/2:0,o)+'"></feGaussianBlur>\n\t<feOffset dx="'+i(a.x,o)+'" dy="'+i(a.y,o)+'" result="oBlur" ></feOffset>\n\t<feFlood flood-color="'+s.toRgb()+'" flood-opacity="'+s.getAlpha()+'"/>\n\t<feComposite in2="oBlur" operator="in" />\n\t<feMerge>\n\t\t<feMergeNode></feMergeNode>\n\t\t<feMergeNode in="SourceGraphic"></feMergeNode>\n\t</feMerge>\n</filter>\n'},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke};var t={},e=n.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke"].forEach(function(n){this[n]!==e[n]&&(t[n]=this[n])},this),t}}),n.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:px)?(?:\s?|$))?(-?\d+(?:px)?(?:\s?|$))?(\d+(?:px)?)?(?:\s?|$)(?:$|\s)/)}(),function(){"use strict";if(C.StaticCanvas)C.warn("fabric.StaticCanvas is already defined.");else{var t=C.util.object.extend,e=C.util.getElementOffset,n=C.util.removeFromArray,i=C.util.toFixed,r=C.util.transformPoint,o=C.util.invertTransform,a=new Error("Could not initialize `canvas` element");C.StaticCanvas=C.util.createClass(C.CommonMethods,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(t,e)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,clipTo:null,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:C.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,onBeforeScaleRotate:function(){},enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,_initStatic:function(t,e){var n=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(t),this._initOptions(e),this._setImageSmoothing(),this.interactive||this._initRetinaScaling(),e.overlayImage&&this.setOverlayImage(e.overlayImage,n),e.backgroundImage&&this.setBackgroundImage(e.backgroundImage,n),e.backgroundColor&&this.setBackgroundColor(e.backgroundColor,n),e.overlayColor&&this.setOverlayColor(e.overlayColor,n),this.calcOffset()},_isRetinaScaling:function(){return 1!==C.devicePixelRatio&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?C.devicePixelRatio:1},_initRetinaScaling:function(){this._isRetinaScaling()&&(this.lowerCanvasEl.setAttribute("width",this.width*C.devicePixelRatio),this.lowerCanvasEl.setAttribute("height",this.height*C.devicePixelRatio),this.contextContainer.scale(C.devicePixelRatio,C.devicePixelRatio))},calcOffset:function(){return this._offset=e(this.lowerCanvasEl),this},setOverlayImage:function(t,e,n){return this.__setBgOverlayImage("overlayImage",t,e,n)},setBackgroundImage:function(t,e,n){return this.__setBgOverlayImage("backgroundImage",t,e,n)},setOverlayColor:function(t,e){return this.__setBgOverlayColor("overlayColor",t,e)}
1,setBackgroundColor:function(t,e){return this.__setBgOverlayColor("backgroundColor",t,e)},_setImageSmoothing:function(){var t=this.getContext();t.imageSmoothingEnabled=t.imageSmoothingEnabled||t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled||t.oImageSmoothingEnabled,t.imageSmoothingEnabled=this.imageSmoothingEnabled},__setBgOverlayImage:function(t,e,n,i){return"string"==typeof e?C.util.loadImage(e,function(e){e&&(this[t]=new C.Image(e,i)),n&&n(e)},this,i&&i.crossOrigin):(i&&e.setOptions(i),this[t]=e,n&&n(e)),this},__setBgOverlayColor:function(t,e,n){return this[t]=e,this._initGradient(e,t),this._initPattern(e,t,n),this},_createCanvasElement:function(){var t=C.util.createCanvasElement();if(!t)throw a;if(t.style||(t.style={}),void 0===t.getContext)throw a;return t},_initOptions:function(t){this._setOptions(t),this.width=this.width||parseInt(this.lowerCanvasEl.width,10)||0,this.height=this.height||parseInt(this.lowerCanvasEl.height,10)||0,this.lowerCanvasEl.style&&(this.lowerCanvasEl.width=this.width,this.lowerCanvasEl.height=this.height,this.lowerCanvasEl.style.width=this.width+"px",this.lowerCanvasEl.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(t){this.lowerCanvasEl=t&&t.getContext?t:C.util.getById(t)||this._createCanvasElement(),C.util.addClass(this.lowerCanvasEl,"lower-canvas"),this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(t,e){return this.setDimensions({width:t},e)},setHeight:function(t,e){return this.setDimensions({height:t},e)},setDimensions:function(t,e){var n;for(var i in e=e||{},t)n=t[i],e.cssOnly||(this._setBackstoreDimension(i,t[i]),n+="px",this.hasLostContext=!0),e.backstoreOnly||this._setCssDimension(i,n);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(),this._initRetinaScaling(),this._setImageSmoothing(),this.calcOffset(),e.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(t,e){return this.lowerCanvasEl[t]=e,this.upperCanvasEl&&(this.upperCanvasEl[t]=e),this.cacheCanvasEl&&(this.cacheCanvasEl[t]=e),this[t]=e,this},_setCssDimension:function(t,e){return this.lowerCanvasEl.style[t]=e,this.upperCanvasEl&&(this.upperCanvasEl.style[t]=e),this.wrapperEl&&(this.wrapperEl.style[t]=e),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(t){var e,n,i,r=this._activeObject;for(this.viewportTransform=t,n=0,i=this._objects.length;n<i;n++)(e=this._objects[n]).group||e.setCoords(!1,!0);return r&&"activeSelection"===r.type&&r.setCoords(!1,!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(t,e){var n=t,i=this.viewportTransform.slice(0);t=r(t,o(this.viewportTransform)),i[0]=e,i[3]=e;var a=r(t,i);return i[4]+=n.x-a.x,i[5]+=n.y-a.y,this.setViewportTransform(i)},setZoom:function(t){return this.zoomToPoint(new C.Point(0,0),t),this},absolutePan:function(t){var e=this.viewportTransform.slice(0);return e[4]=-t.x,e[5]=-t.y,this.setViewportTransform(e)},relativePan:function(t){return this.absolutePan(new C.Point(-t.x-this.viewportTransform[4],-t.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(t){this.stateful&&t.setupState(),t._set("canvas",this),t.setCoords(),this.fire("object:added",{target:t}),t.fire("added")},_onObjectRemoved:function(t){this.fire("object:removed",{target:t}),t.fire("removed"),delete t.canvas},clearContext:function(t){return t.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this._objects.length=0,this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){return this.renderCanvas(this.contextContainer,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=C.util.requestAnimFrame
1(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var t={},e=this.width,n=this.height,i=o(this.viewportTransform);return t.tl=r({x:0,y:0},i),t.br=r({x:e,y:n},i),t.tr=new C.Point(t.br.x,t.tl.y),t.bl=new C.Point(t.tl.x,t.br.y),this.vptCoords=t,t},renderCanvas:function(t,e){var n=this.viewportTransform;this.isRendering&&(C.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.calcViewportBoundaries(),this.clearContext(t),this.fire("before:render"),this.clipTo&&C.util.clipContext(this,t),this._renderBackground(t),t.save(),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this._renderObjects(t,e),t.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(t),this.clipTo&&t.restore(),this._renderOverlay(t),this.controlsAboveOverlay&&this.interactive&&this.drawControls(t),this.fire("after:render")},_renderObjects:function(t,e){var n,i;for(n=0,i=e.length;n<i;++n)e[n]&&e[n].render(t)},_renderBackgroundOrOverlay:function(t,e){var n,i=this[e+"Color"];i&&(t.fillStyle=i.toLive?i.toLive(t,this):i,t.fillRect(i.offsetX||0,i.offsetY||0,this.width,this.height)),(i=this[e+"Image"])&&(this[e+"Vpt"]&&(n=this.viewportTransform,t.save(),t.transform(n[0],n[1],n[2],n[3],n[4],n[5])),i.render(t),this[e+"Vpt"]&&t.restore())},_renderBackground:function(t){this._renderBackgroundOrOverlay(t,"background")},_renderOverlay:function(t){this._renderBackgroundOrOverlay(t,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},centerObjectH:function(t){return this._centerObject(t,new C.Point(this.getCenter().left,t.getCenterPoint().y))},centerObjectV:function(t){return this._centerObject(t,new C.Point(t.getCenterPoint().x,this.getCenter().top))},centerObject:function(t){var e=this.getCenter();return this._centerObject(t,new C.Point(e.left,e.top))},viewportCenterObject:function(t){var e=this.getVpCenter();return this._centerObject(t,e)},viewportCenterObjectH:function(t){var e=this.getVpCenter();return this._centerObject(t,new C.Point(e.x,t.getCenterPoint().y)),this},viewportCenterObjectV:function(t){var e=this.getVpCenter();return this._centerObject(t,new C.Point(t.getCenterPoint().x,e.y))},getVpCenter:function(){var t=this.getCenter(),e=o(this.viewportTransform);return r({x:t.left,y:t.top},e)},_centerObject:function(t,e){return t.setPositionByOrigin(e,"center","center"),t.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(t){return this.toDatalessObject(t)},toObject:function(t){return this._toObjectMethod("toObject",t)},toDatalessObject:function(t){return this._toObjectMethod("toDatalessObject",t)},_toObjectMethod:function(e,n){var i={version:C.version,objects:this._toObjects(e,n)};return t(i,this.__serializeBgOverlay(e,n)),C.util.populateWithProperties(this,i,n),i},_toObjects:function(t,e){return this.getObjects().filter(function(t){return!t.excludeFromExport}).map(function(n){return this._toObject(n,t,e)},this)},_toObject:function(t,e,n){var i;this.includeDefaultValues||(i=t.includeDefaultValues,t.includeDefaultValues=!1);var r=t[e](n);return this.includeDefaultValues||(t.includeDefaultValues=i),r},__serializeBgOverlay:function(t,e){var n={},i=this.backgroundImage,r=this.overlayImage;return this.backgroundColor&&(n.background=this.backgroundColor.toObject?this.backgroundColor.toObject(e):this.backgroundColor),this.overlayColor&&(n.overlay=this.overlayColor.toObject?this.overlayColor.toObject(e):this.overlayColor),i&&!i.excludeFromExport&&(n.backgroundImage=this._toObject(i,t,e)),r&&!r.excludeFromExport&&(n.overlayImage=this._toObject(r,t,e)),n},svgViewportTransformation:!0,toSVG:function(t,e){t||(t={});var n=[];return this._setSVGPreamble(n,t),this._setSVGHeader(n,t),this._setSVGBgOverlayColor(n,"backgroundColor"),this._setSVGBgOverlayImage(n,"backgroundImage",e),this._setSVGObjects(n,e),this._setSVGBgOverlayColor(n,"overlayColor"),this._setSVGBgOverlayImage(n,"overlayImage",e),n.push("</svg>"),n.join("")},_setSVGPreamble:function(t,e){e.suppressPreamble||t.push('<?xml version="1.0" encoding="',e.encoding||"UTF-8",'" standalone="no" ?>\n','<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ','"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n')},_setSVGHeader:function(t,e){var n,r=e.width||this.width,o=e.height||this.height,a='viewBox="0 0 '+this.width+" "+this.height+'" ',s=C.Object.NUM_FRACTION_DIGITS;e.viewBox?a='viewBox="'+e.viewBox.x+" "+e.viewBox.y+" "+e.viewBox.width+" "+e.viewBox.height+'" ':this.svgViewportTransformation&&(a='viewB
1ox="'+i(-(n=this.viewportTransform)[4]/n[0],s)+" "+i(-n[5]/n[3],s)+" "+i(this.width/n[0],s)+" "+i(this.height/n[3],s)+'" '),t.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',r,'" ','height="',o,'" ',a,'xml:space="preserve">\n',"<desc>Created with Fabric.js ",C.version,"</desc>\n","<defs>\n",this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),"</defs>\n")},createSVGRefElementsMarkup:function(){var t=this;return["backgroundColor","overlayColor"].map(function(e){var n=t[e];if(n&&n.toLive)return n.toSVG(t,!1)}).join("")},createSVGFontFacesMarkup:function(){var t,e,n,i,r,o,a,s,l="",u={},c=C.fontPaths,h=this.getObjects();for(a=0,s=h.length;a<s;a++)if(e=(t=h[a]).fontFamily,-1!==t.type.indexOf("text")&&!u[e]&&c[e]&&(u[e]=!0,t.styles))for(r in n=t.styles)for(o in i=n[r])!u[e=i[o].fontFamily]&&c[e]&&(u[e]=!0);for(var d in u)l+=["\t\t@font-face {\n","\t\t\tfont-family: '",d,"';\n","\t\t\tsrc: url('",c[d],"');\n","\t\t}\n"].join("");return l&&(l=['\t<style type="text/css">',"<![CDATA[\n",l,"]]>","</style>\n"].join("")),l},_setSVGObjects:function(t,e){var n,i,r,o=this.getObjects();for(i=0,r=o.length;i<r;i++)(n=o[i]).excludeFromExport||this._setSVGObject(t,n,e)},_setSVGObject:function(t,e,n){t.push(e.toSVG(n))},_setSVGBgOverlayImage:function(t,e,n){this[e]&&this[e].toSVG&&t.push(this[e].toSVG(n))},_setSVGBgOverlayColor:function(t,e){var n=this[e],i=this.viewportTransform,r=this.width/i[0],o=this.height/i[3];if(n)if(n.toLive){var a=n.repeat;t.push('<rect transform="translate(',r/2,",",o/2,')"',' x="',n.offsetX-r/2,'" y="',n.offsetY-o/2,'" ','width="',"repeat-y"===a||"no-repeat"===a?n.source.width:r,'" height="',"repeat-x"===a||"no-repeat"===a?n.source.height:o,'" fill="url(#SVGID_'+n.id+')"',"></rect>\n")}else t.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',this[e],'"',"></rect>\n")},sendToBack:function(t){if(!t)return this;var e,i,r,o=this._activeObject;if(t===o&&"activeSelection"===t.type)for(e=(r=o._objects).length;e--;)n(this._objects,i=r[e]),this._objects.unshift(i);else n(this._objects,t),this._objects.unshift(t);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(t){if(!t)return this;var e,i,r,o=this._activeObject;if(t===o&&"activeSelection"===t.type)for(r=o._objects,e=0;e<r.length;e++)n(this._objects,i=r[e]),this._objects.push(i);else n(this._objects,t),this._objects.push(t);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(t,e){if(!t)return this;var i,r,o,a,s,l=this._activeObject,u=0;if(t===l&&"activeSelection"===t.type)for(s=l._objects,i=0;i<s.length;i++)(o=this._objects.indexOf(r=s[i]))>0+u&&(a=o-1,n(this._objects,r),this._objects.splice(a,0,r)),u++;else 0!==(o=this._objects.indexOf(t))&&(a=this._findNewLowerIndex(t,o,e),n(this._objects,t),this._objects.splice(a,0,t));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(t,e,n){var i,r;if(n){for(i=e,r=e-1;r>=0;--r)if(t.intersectsWithObject(this._objects[r])||t.isContainedWithinObject(this._objects[r])||this._objects[r].isContainedWithinObject(t)){i=r;break}}else i=e-1;return i},bringForward:function(t,e){if(!t)return this;var i,r,o,a,s,l=this._activeObject,u=0;if(t===l&&"activeSelection"===t.type)for(i=(s=l._objects).length;i--;)(o=this._objects.indexOf(r=s[i]))<this._objects.length-1-u&&(a=o+1,n(this._objects,r),this._objects.splice(a,0,r)),u++;else(o=this._objects.indexOf(t))!==this._objects.length-1&&(a=this._findNewUpperIndex(t,o,e),n(this._objects,t),this._objects.splice(a,0,t));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(t,e,n){var i,r,o;if(n){for(i=e,r=e+1,o=this._objects.length;r<o;++r)if(t.intersectsWithObject(this._objects[r])||t.isContainedWithinObject(this._objects[r])||this._objects[r].isContainedWithinObject(t)){i=r;break}}else i=e+1;return i},moveTo:function(t,e){return n(this._objects,t),this._objects.splice(e,0,t),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(C.util.cancelAnimFrame
1(this.isRendering),this.isRendering=0),this.forEachObject(function(t){t.dispose&&t.dispose()}),this._objects=[],this.backgroundImage=null,this.overlayImage=null,this._iTextInstances=null,this.lowerCanvasEl=null,this.contextContainer=null,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this.getObjects().length+" }>"}}),t(C.StaticCanvas.prototype,C.Observable),t(C.StaticCanvas.prototype,C.Collection),t(C.StaticCanvas.prototype,C.DataURLExporter),t(C.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(t){var e=C.util.createCanvasElement();if(!e||!e.getContext)return null;var n=e.getContext("2d");if(!n)return null;switch(t){case"getImageData":return void 0!==n.getImageData;case"setLineDash":return void 0!==n.setLineDash;case"toDataURL":return void 0!==e.toDataURL;case"toDataURLWithQuality":try{return e.toDataURL("image/jpeg",0),!0}catch(t){}return!1;default:return null}}}),C.StaticCanvas.prototype.toJSON=C.StaticCanvas.prototype.toObject,C.isLikelyNode&&(C.StaticCanvas.prototype.createPNGStream=function(){var t=C.util.getNodeCanvas(this.lowerCanvasEl);return t&&t.createPNGStream()},C.StaticCanvas.prototype.createJPEGStream=function(t){var e=C.util.getNodeCanvas(this.lowerCanvasEl);return e&&e.createJPEGStream(t)})}}(),C.BaseBrush=C.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,setShadow:function(t){return this.shadow=new C.Shadow(t),this},_setBrushStyles:function(){var t=this.canvas.contextTop;t.strokeStyle=this.color,t.lineWidth=this.width,t.lineCap=this.strokeLineCap,t.miterLimit=this.strokeMiterLimit,t.lineJoin=this.strokeLineJoin,C.StaticCanvas.supports("setLineDash")&&t.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(t){var e=this.canvas.viewportTransform;t.save(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},_setShadow:function(){if(this.shadow){var t=this.canvas.contextTop,e=this.canvas.getZoom();t.shadowColor=this.shadow.color,t.shadowBlur=this.shadow.blur*e,t.shadowOffsetX=this.shadow.offsetX*e,t.shadowOffsetY=this.shadow.offsetY*e}},_resetShadow:function(){var t=this.canvas.contextTop;t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0}}),C.PencilBrush=C.util.createClass(C.BaseBrush,{initialize:function(t){this.canvas=t,this._points=[]},_drawSegment:function(t,e,n){var i=e.midPointFrom(n);return t.quadraticCurveTo(e.x,e.y,i.x,i.y),i},onMouseDown:function(t){this._prepareForDrawing(t),this._captureDrawingPath(t),this._render()},onMouseMove:function(t){if(this._captureDrawingPath(t)&&this._points.length>1)if(this.needsFullRender)this.canvas.clearContext(this.canvas.contextTop),this._render();else{var e=this._points,n=e.length,i=this.canvas.contextTop;this._saveAndTransform(i),this.oldEnd&&(i.beginPath(),i.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(i,e[n-2],e[n-1],!0),i.stroke(),i.restore()}},onMouseUp:function(){this.oldEnd=void 0,this._finalizeAndAddPath()},_prepareForDrawing:function(t){var e=new C.Point(t.x,t.y);this._reset(),this._addPoint(e),this.canvas.contextTop.moveTo(e.x,e.y)},_addPoint:function(t){return!(this._points.length>1&&t.eq(this._points[this._points.length-1])||(this._points.push(t),0))},_reset:function(){this._points.length=0,this._setBrushStyles();var t=new C.Color(this.color);this.needsFullRender=t.getAlpha()<1,this._setShadow()},_captureDrawingPath:function(t){var e=new C.Point(t.x,t.y);return this._addPoint(e)},_render:function(){var t,e,n=this.canvas.contextTop,i=this._points[0],r=this._points[1];if(this._saveAndTransform(n),n.beginPath(),2===this._points.length&&i.x===r.x&&i.y===r.y){var o=this.width/1e3;i=new C.Point(i.x,i.y),r=new C.Point(r.x,r.y),i.x-=o,r.x+=o}for(n.moveTo(i.x,i.y),t=1,e=this._points.length;t<e;t++)this._drawSegment(n,i,r),i=this._points[t],r=this._points[t+1];n.lineTo(i.x,i.y),n.stroke(),n.restore()},convertPointsToSVGPath:function(t){var e,n=[],i=this.width/1e3,r=new C.Point(t[0].x,t[0].y),o=new C.Point(t[1].x,t[1].y),a=t.length,s=1,l=1,u=a>2;for(u&&(s=t[2].x<o.x?-1:t[2].x===o.x?0:1,l=t[2].y<o.y?-1:t[2].y===o.y?0:1),n.push("M ",r.x-s*i," ",r.y-l*i," "),e=1;e<a;e++){if(!r.eq(o)){var c=r.midPointFrom(o);n.push("Q ",r.x," ",r.y," ",c.x," ",c.y," ")}r=t[e],e+1<t.length&&(o=t[e+1])}return u&&(s=r.x>t[e-2].x?1:r.x===t[e-2].x?0:-1,l=r.y>t[e-2].y?1:r.y===t[e-2].y?0:-1),n.push("L ",r.x+s*i," ",r.y+l*i),n},createPath:function(t){var e=new C.Path(t,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray}),n=new C.Point(e.left+e.width/2,e.top+e.height/2);return n=e.translateToGivenOrigin(n,"center","center",e.originX,e.originY),e.top=n.y,e.left=n.x,this.shadow&&(this.shadow.affectStroke=!0,e.setShadow(this.shadow)),e},_finalizeAndAddPath:function(){this.canvas.contextTop.closePath();var t=this.convertPointsToSVGPath(this._points).join("");if("M 0 0 Q 0 0 0 0 L 0 0"!==t){var e=this.createPath(t);this.canvas.clearContext(this.canvas.contextTop),this.canvas.add(e),this.canvas.renderAll(),e.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:e})}else this.canvas.requestRenderAll()}}),C.CircleBrush=C.util.createClass(C.BaseBrush,{width:10,initialize:function(t){this.canvas=t,this.points=[]},drawDot:function(t){var e=this.addPoint(t),n=this.canvas.contextTop;this._saveAndTransform(n),n.fillStyle=e.fill,n.beginPath(),n.arc(e.x,e.y,e.radius,0,2*Math.PI,!1),n.closePath(),n.fill(),n.restore(
vendor: 4,138 bytes, line 1
1)},onMouseDown:function(t){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(t)},_render:function(){var t,e,n,i=this.canvas.contextTop,r=this.points;for(this._saveAndTransform(i),t=0,e=r.length;t<e;t++)i.fillStyle=(n=r[t]).fill,i.beginPath(),i.arc(n.x,n.y,n.radius,0,2*Math.PI,!1),i.closePath(),i.fill();i.restore()},onMouseMove:function(t){this.drawDot(t)},onMouseUp:function(){var t,e,n=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;var i=[];for(t=0,e=this.points.length;t<e;t++){var r=this.points[t],o=new C.Circle({radius:r.radius,left:r.x,top:r.y,originX:"center",originY:"center",fill:r.fill});this.shadow&&o.setShadow(this.shadow),i.push(o)}var a=new C.Group(i,{originX:"center",originY:"center"});a.canvas=this.canvas,this.canvas.add(a),this.canvas.fire("path:created",{path:a}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=n,this.canvas.requestRenderAll()},addPoint:function(t){var e=new C.Point(t.x,t.y),n=C.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,i=new C.Color(this.color).setAlpha(C.util.getRandomInt(0,100)/100).toRgba();return e.radius=n,e.fill=i,this.points.push(e),e}}),C.SprayBrush=C.util.createClass(C.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(t){this.canvas=t,this.sprayChunks=[]},onMouseDown:function(t){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseMove:function(t){this.addSprayChunk(t),this.render(this.sprayChunkPoints)},onMouseUp:function(){var t=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var e=[],n=0,i=this.sprayChunks.length;n<i;n++)for(var r=this.sprayChunks[n],o=0,a=r.length;o<a;o++){var s=new C.Rect({width:r[o].width,height:r[o].width,left:r[o].x+1,top:r[o].y+1,originX:"center",originY:"center",fill:this.color});e.push(s)}this.optimizeOverlapping&&(e=this._getOptimizedRects(e));var l=new C.Group(e,{originX:"center",originY:"center"});this.shadow&&l.setShadow(this.shadow),this.canvas.add(l),this.canvas.fire("path:created",{path:l}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=t,this.canvas.requestRenderAll()},_getOptimizedRects:function(t){var e,n,i,r={};for(n=0,i=t.length;n<i;n++)r[e=t[n].left+""+t[n].top]||(r[e]=t[n]);var o=[];for(e in r)o.push(r[e]);return o},render:function(t){var e,n,i=this.canvas.contextTop;for(i.fillStyle=this.color,this._saveAndTransform(i),e=0,n=t.length;e<n;e++){var r=t[e];void 0!==r.opacity&&(i.globalAlpha=r.opacity),i.fillRect(r.x,r.y,r.width,r.width)}i.restore()},_render:function(){var t,e,n=this.canvas.contextTop;for(n.fillStyle=this.color,this._saveAndTransform(n),t=0,e=this.sprayChunks.length;t<e;t++)this.render(this.sprayChunks[t]);n.restore()},addSprayChunk:function(t){this.sprayChunkPoints=[];var e,n,i,r,o=this.width/2;for(r=0;r<this.density;r++){e=C.util.getRandomInt(t.x-o,t.x+o),n=C.util.getRandomInt(t.y-o,t.y+o),i=this.dotWidthVariance?C.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):this.dotWidth;var a=new C.Point(e,n);a.width=i,this.randomOpacity&&(a.opacity=C.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(a)}this.sprayChunks.push(this.sprayChunkPoints)}}),C.PatternBrush=C.util.createClass(C.PencilBrush,{getPatternSrc:function(){var t=C.document.createElement("canvas"),e=t.getContext("2d");return t.width=t.height=25,e.fillStyle=this.color,e.beginPath(),e.arc(10,10,10,0,2*Math.PI,!1),e.closePath(),e.fill(),t},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(){return this.canvas.contextTop.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(){this.callSuper("_setBrushStyles"),this.canvas.contextTop.strokeStyle=this.getPattern()},createPath:function(t){var e=this.callSuper("createPath",t),n=e._getLeftTopCoords().scalarAdd(e.strokeWidth/2);
1return e.stroke=new C.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-n.x,offsetY:-n.y}),e}}),function(){var t=C.util.getPointer,e=C.util.degreesToRadians,n=C.util.radiansToDegrees,i=Math.atan2,r=Math.abs,o=C.StaticCanvas.supports("setLineDash");for(var a in C.Canvas=C.util.createClass(C.StaticCanvas,{initialize:function(t,e){e||(e={}),this.renderAndResetBound=this.renderAndReset.bind(this),this._initStatic(t,e),this._initInteractive(),this._createCacheCanvas()},uniScaleTransform:!1,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",rotationCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=C.PencilBrush&&new C.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var t,e,n,i=this.getActiveObjects();if(i.length>0&&!this.preserveObjectStacking){e=[],n=[];for(var r=0,o=this._objects.length;r<o;r++)-1===i.indexOf(t=this._objects[r])?e.push(t):n.push(t);i.length>1&&(this._activeObject._objects=n),e.push.apply(e,n)}else e=this._objects;return e},renderAll:function(){return!this.contextTopDirty||this._groupSelector||this.isDrawingMode||(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&this.renderTopLayer(this.contextTop),this.renderCanvas(this.contextContainer,this._chooseObjectsToRender()),this},renderTopLayer:function(t){this.isDrawingMode&&this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.selection&&this._groupSelector&&this._drawSelection(t)},renderTop:function(){var t=this.contextTop;return this.clearContext(t),this.renderTopLayer(t),this.fire("after:render"),this.contextTopDirty=!0,this},_resetCurrentTransform:function(){var t=this._currentTransform;t.target.set({scaleX:t.original.scaleX,scaleY:t.original.scaleY,skewX:t.original.skewX,skewY:t.original.skewY,left:t.original.left,top:t.original.top}),this._shouldCenterTransform(t.target)?("center"!==t.originX&&(t.mouseXSign="right"===t.originX?-1:1),"center"!==t.originY&&(t.mouseYSign="bottom"===t.originY?-1:1),t.originX="center",t.originY="center"):(t.originX=t.original.originX,t.originY=t.original.originY)},containsPoint:function(t,e,n){var i,r=n||this.getPointer(t,!0);return i=e.group&&e.group===this._activeObject&&"activeSelection"===e.group.type?this._normalizePointer(e.group,r):{x:r.x,y:r.y},e.containsPoint(i)||e._findTargetCorner(r)},_normalizePointer:function(t,e){var n=t.calcTransformMatrix(),i=C.util.invertTransform(n),r=this.restorePointerVpt(e);return C.util.transformPoint(r,i)},isTargetTransparent:function(t,e,n){if(t.shouldCache()&&t._cacheCanvas){var i=this._normalizePointer(t,{x:e,y:n});return C.util.isTransparent(t._cacheContext,t.cacheTranslationX+i.x*t.zoomX,t.cacheTranslationY+i.y*t.zoomY,this.targetFindTolerance)}var r=this.contextCache,o=t.selectionBackgroundColor,a=this.viewportTransform;return t.selectionBackgroundColor="",this.clearContext(r),r.save(),r.transform(a[0],a[1],a[2],a[3],a[4],a[5]),t.render(r),r.restore(),t===this._activeObject&&t._renderControls(r,{hasBorders:!1,transparentCorners:!1},{hasBorders:!1}),t.selectionBackgroundColor=o,C.util.isTransparent(r,e,n,this.targetFindTolerance)},_isSelectionKeyPressed:function(t){return"[object Array]"===Object.prototype.toString.call(this.selectionKey)?!!this.selectionKey.find(function(e){return!0===t[e]}):t[this.selectionKey]},_shouldClearSelection:function(t,e){var n=this.getActiveObjects(),i=this._activeObject;return!e||e&&i&&n.length>1&&-1===n.indexOf(e)&&i!==e&&!this._isSelectionKeyPressed(t)||e&&!e.evented||e&&!e.selectable&&i&&i!==e},_shouldCenterTransform:function(t){if(t){var e,n=this._currentTransform;return"scale"===n.action||"scaleX"===n.action||"scaleY"===n.action?e=this.centeredScaling||t.centeredScaling:"rotate"===n.action&&(e=this.centeredRotation||t.centeredRotation),e?!n.altKey:n.altKey}},_getOriginFromCorner:function(t,e){var n={x:t.originX,y:t.originY};return"ml"===e||"tl"===e||"bl"===e?n.x="right":"mr"!==e&&"tr"!==e&&"br"!==e||(n.x="left"),"tl"===e||"mt"===e||"tr"===e?n.y="bottom":"bl"!==e&&"mb"!==e&&"br"!==e||(n.y="top"),n},_getActionFromCorner:function(t,e,n){if(!e)return"drag";switch(e){case"mtr":return"rotate";case"ml":case"mr":return n[this.altActionKey]?"skewY":"scaleX";case"mt":case"mb":return n[this.altActionKey]?"skewX":"scaleY";default:return"scale"}},_setupCurrentTransform:function(t,n){if(n){var i=this.getPointer(t),r=n._findTargetCorner(this.getPointer(t,!0)),o=this._getActionFromCorner(n,r,t),a=this._getOriginFromCorner(n,r);this._currentTransform={target:n,action:o,corner:r,scaleX:n.scaleX,scaleY:n.scaleY,skewX:n.skewX,skewY:n.skewY,offsetX:i.x-n.left,offsetY:i.y-n.top,originX:a.x,originY:a.y,ex:i.x,ey:i.y,lastX:i.x,lastY:i.y,theta:e(n.angle),width:n.width*n.scaleX,mouseXSign:1,mouseYSign:1,shiftKey:t.shiftKey,altKey:t[this.centeredKey]},this._currentTransform.original={left:n.left,top:n.top,scaleX:n.scaleX,scaleY:n.scaleY,skewX:n.skewX,skewY:n.skewY,originX:a.x,originY:a.y},this._resetCurrentTransform(),this._beforeTransform(t)}}
1,_translateObject:function(t,e){var n=this._currentTransform,i=n.target,r=t-n.offsetX,o=e-n.offsetY,a=!i.get("lockMovementX")&&i.left!==r,s=!i.get("lockMovementY")&&i.top!==o;return a&&i.set("left",r),s&&i.set("top",o),a||s},_changeSkewTransformOrigin:function(t,e,n){var i="originX",r={0:"center"},o=e.target.skewX,a="left",s="right",l="mt"===e.corner||"ml"===e.corner?1:-1,u=1;t=t>0?1:-1,"y"===n&&(o=e.target.skewY,a="top",s="bottom",i="originY"),r[-1]=a,r[1]=s,e.target.flipX&&(u*=-1),e.target.flipY&&(u*=-1),0===o?(e.skewSign=-l*t*u,e[i]=r[-t]):(e.skewSign=o=o>0?1:-1,e[i]=r[o*l*u])},_skewObject:function(t,e,n){var i,r=this._currentTransform,o=r.target,a=o.get("lockSkewingX"),s=o.get("lockSkewingY");if(a&&"x"===n||s&&"y"===n)return!1;var l,u,c=o.getCenterPoint(),h=o.toLocalPoint(new C.Point(t,e),"center","center")[n],d=o.toLocalPoint(new C.Point(r.lastX,r.lastY),"center","center")[n],p=o._getTransformedDimensions();return this._changeSkewTransformOrigin(h-d,r,n),l=o.toLocalPoint(new C.Point(t,e),r.originX,r.originY)[n],u=o.translateToOriginPoint(c,r.originX,r.originY),i=this._setObjectSkew(l,r,n,p),r.lastX=t,r.lastY=e,o.setPositionByOrigin(u,r.originX,r.originY),i},_setObjectSkew:function(t,e,n,i){var r,o,a,s,l,u,c,h,d,p,f=e.target,g=e.skewSign;return"x"===n?(l="y",u="Y",c="X",d=0,p=f.skewY):(l="x",u="X",c="Y",d=f.skewX,p=0),s=f._getTransformedDimensions(d,p),(h=2*Math.abs(t)-s[n])<=2?r=0:(r=g*Math.atan(h/f["scale"+c]/(s[l]/f["scale"+u])),r=C.util.radiansToDegrees(r)),o=f["skew"+c]!==r,f.set("skew"+c,r),0!==f["skew"+u]&&(a=f._getTransformedDimensions(),f.set("scale"+u,r=i[l]/a[l]*f["scale"+u])),o},_scaleObject:function(t,e,n){var i=this._currentTransform,r=i.target,o=r.lockScalingX,a=r.lockScalingY,s=r.lockScalingFlip;if(o&&a)return!1;var l,u=r.translateToOriginPoint(r.getCenterPoint(),i.originX,i.originY),c=r.toLocalPoint(new C.Point(t,e),i.originX,i.originY),h=r._getTransformedDimensions();return this._setLocalMouse(c,i),l=this._setObjectScale(c,i,o,a,n,s,h),r.setPositionByOrigin(u,i.originX,i.originY),l},_setObjectScale:function(t,e,n,i,r,o,a){var s,l,u,c,h=e.target,d=!1,p=!1,f=!1;return s=h.scaleX!==(u=t.x*h.scaleX/a.x),l=h.scaleY!==(c=t.y*h.scaleY/a.y),o&&u<=0&&u<h.scaleX&&(d=!0,t.x=0),o&&c<=0&&c<h.scaleY&&(p=!0,t.y=0),"equally"!==r||n||i?r?"x"!==r||h.get("lockUniScaling")?"y"!==r||h.get("lockUniScaling")||p||i||h.set("scaleY",c)&&(f=f||l):d||n||h.set("scaleX",u)&&(f=f||s):(d||n||h.set("scaleX",u)&&(f=f||s),p||i||h.set("scaleY",c)&&(f=f||l)):f=this._scaleObjectEqually(t,h,e,a),e.newScaleX=u,e.newScaleY=c,d||p||this._flipObject(e,r),f},_scaleObjectEqually:function(t,e,n,i){var r,o=t.y+t.x,a=i.y*n.original.scaleY/e.scaleY+i.x*n.original.scaleX/e.scaleX,s=t.y<0?-1:1;return n.newScaleX=(t.x<0?-1:1)*Math.abs(n.original.scaleX*o/a),n.newScaleY=s*Math.abs(n.original.scaleY*o/a),r=n.newScale
1X!==e.scaleX||n.newScaleY!==e.scaleY,e.set("scaleX",n.newScaleX),e.set("scaleY",n.newScaleY),r},_flipObject:function(t,e){t.newScaleX<0&&"y"!==e&&("left"===t.originX?t.originX="right":"right"===t.originX&&(t.originX="left")),t.newScaleY<0&&"x"!==e&&("top"===t.originY?t.originY="bottom":"bottom"===t.originY&&(t.originY="top"))},_setLocalMouse:function(t,e){var n=e.target,i=this.getZoom(),o=n.padding/i;"right"===e.originX?t.x*=-1:"center"===e.originX&&(t.x*=2*e.mouseXSign,t.x<0&&(e.mouseXSign=-e.mouseXSign)),"bottom"===e.originY?t.y*=-1:"center"===e.originY&&(t.y*=2*e.mouseYSign,t.y<0&&(e.mouseYSign=-e.mouseYSign)),r(t.x)>o?t.x<0?t.x+=o:t.x-=o:t.x=0,r(t.y)>o?t.y<0?t.y+=o:t.y-=o:t.y=0},_rotateObject:function(t,e){var r=this._currentTransform,o=r.target,a=o.translateToOriginPoint(o.getCenterPoint(),r.originX,r.originY);if(o.lockRotation)return!1;var s=i(r.ey-a.y,r.ex-a.x),l=i(e-a.y,t-a.x),u=n(l-s+r.theta),c=!0;if(o.snapAngle>0){var h=o.snapAngle,d=o.snapThreshold||h,p=Math.ceil(u/h)*h,f=Math.floor(u/h)*h;Math.abs(u-f)<d?u=f:Math.abs(u-p)<d&&(u=p)}return u<0&&(u=360+u),o.angle===(u%=360)?c=!1:(o.angle=u,o.setPositionByOrigin(a,r.originX,r.originY)),c},setCursor:function(t){this.upperCanvasEl.style.cursor=t},_resetObjectTransform:function(t){t.scaleX=1,t.scaleY=1,t.skewX=0,t.skewY=0,t.rotate(0)},_drawSelection:function(t){var e=this._groupSelector,n=e.left,i=e.top,a=r(n),s=r(i);if(this.selectionColor&&(t.fillStyle=this.selectionColor,t.fillRect(e.ex-(n>0?0:-n),e.ey-(i>0?0:-i),a,s)),this.selectionLineWidth&&this.selectionBorderColor)if(t.lineWidth=this.selectionLineWidth,t.strokeStyle=this.selectionBorderColor,this.selectionDashArray.length>1&&!o){var l=e.ex+.5-(n>0?0:a),u=e.ey+.5-(i>0?0:s);t.beginPath(),C.util.drawDashedLine(t,l,u,l+a,u,this.selectionDashArray),C.util.drawDashedLine(t,l,u+s-1,l+a,u+s-1,this.selectionDashArray),C.util.drawDashedLine(t,l,u,l,u+s,this.selectionDashArray),C.util.drawDashedLine(t,l+a-1,u,l+a-1,u+s,this.selectionDashArray),t.closePath(),t.stroke()}else C.Object.prototype._setLineDash.call(this,t,this.selectionDashArray),t.strokeRect(e.ex+.5-(n>0?0:a),e.ey+.5-(i>0?0:s),a,s)},findTarget:function(t,e){if(!this.skipTargetFind){var n,i,r=this.getPointer(t,!0),o=this._activeObject,a=this.getActiveObjects();if(this.targets=[],a.length>1&&!e&&o===this._searchPossibleTargets([o],r))return o;if(1===a.length&&o._findTargetCorner(r))return o;if(1===a.length&&o===this._searchPossibleTargets([o],r)){if(!this.preserveObjectStacking)return o;n=o,i=this.targets,this.targets=[]}var s=this._searchPossibleTargets(this._objects,r);return t[this.altSelectionKey]&&s&&n&&s!==n&&(s=n,this.targets=i),s}},_checkTarget:function(t,e){if(e&&e.visible&&e.evented&&this.containsPoint(null,e,t)){if(!this.perPixelTargetFind&&!e.perPixelTargetFind||e.isEditing)return!0;
1if(!this.isTargetTransparent(e,t.x,t.y))return!0}},_searchPossibleTargets:function(t,e){for(var n,i,r,o=t.length;o--;)if(this._checkTarget(e,t[o])){(n=t[o]).subTargetCheck&&n instanceof C.Group&&(i=this._normalizePointer(n,e),(r=this._searchPossibleTargets(n._objects,i))&&this.targets.push(r));break}return n},restorePointerVpt:function(t){return C.util.transformPoint(t,C.util.invertTransform(this.viewportTransform))},getPointer:function(e,n){if(this._absolutePointer&&!n)return this._absolutePointer;if(this._pointer&&n)return this._pointer;var i,r=t(e),o=this.upperCanvasEl,a=o.getBoundingClientRect(),s=a.width||0,l=a.height||0;return s&&l||("top"in a&&"bottom"in a&&(l=Math.abs(a.top-a.bottom)),"right"in a&&"left"in a&&(s=Math.abs(a.right-a.left))),this.calcOffset(),r.x=r.x-this._offset.left,r.y=r.y-this._offset.top,n||(r=this.restorePointerVpt(r)),{x:r.x*(i=0===s||0===l?{width:1,height:1}:{width:o.width/s,height:o.height/l}).width,y:r.y*i.height}},_createUpperCanvas:function(){var t=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,"");this.upperCanvasEl?this.upperCanvasEl.className="":this.upperCanvasEl=this._createCanvasElement(),C.util.addClass(this.upperCanvasEl,"upper-canvas "+t),this.wrapperEl.appendChild(this.upperCanvasEl),this._copyCanvasStyle(this.lowerCanvasEl,this.upperCanvasEl),this._applyCanvasStyle(this.upperCanvasEl),this.contextTop=this.upperCanvasEl.getContext("2d")},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=C.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),C.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),C.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(t){var e=this.width||t.width,n=this.height||t.height;C.util.setStyle(t,{position:"absolute",width:e+"px",height:n+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none"}),t.width=e,t.height=n,C.util.makeElementUnselectable(t)},_copyCanvasStyle:function(t,e){e.style.cssText=t.style.cssText},getSelectionContext:function(){return this.contextTop}
1,getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var t=this._activeObject;return t?"activeSelection"===t.type&&t._objects?t._objects.slice(0):[t]:[]},_onObjectRemoved:function(t){t===this._activeObject&&(this.fire("before:selection:cleared",{target:t}),this._discardActiveObject(),this.fire("selection:cleared",{target:t}),t.fire("deselected")),this._hoveredTarget===t&&(this._hoveredTarget=null),this.callSuper("_onObjectRemoved",t)},_fireSelectionEvents:function(t,e){var n=!1,i=this.getActiveObjects(),r=[],o=[],a={e:e};t.forEach(function(t){-1===i.indexOf(t)&&(n=!0,t.fire("deselected",a),o.push(t))}),i.forEach(function(e){-1===t.indexOf(e)&&(n=!0,e.fire("selected",a),r.push(e))}),t.length>0&&i.length>0?(a.selected=r,a.deselected=o,a.updated=r[0]||o[0],a.target=this._activeObject,n&&this.fire("selection:updated",a)):i.length>0?(1===i.length&&(a.target=r[0],this.fire("object:selected",a)),a.selected=r,a.target=this._activeObject,this.fire("selection:created",a)):t.length>0&&(a.deselected=o,this.fire("selection:cleared",a))},setActiveObject:function(t,e){var n=this.getActiveObjects();return this._setActiveObject(t,e),this._fireSelectionEvents(n,e),this},_setActiveObject:function(t,e){return this._activeObject!==t&&!!this._discardActiveObject(e,t)&&!t.onSelect({e:e})&&(this._activeObject=t,!0)},_discardActiveObject:function(t,e){var n=this._activeObject;if(n){if(n.onDeselect({e:t,object:e}))return!1;this._activeObject=null}return!0},discardActiveObject:function(t){var e=this.getActiveObjects();return e.length&&this.fire("before:selection:cleared",{target:e[0],e:t}),this._discardActiveObject(t),this._fireSelectionEvents(e,t),this},dispose:function(){var t=this.wrapperEl;return this.removeListeners(),t.removeChild(this.upperCanvasEl),t.removeChild(this.lowerCanvasEl),this.upperCanvasEl=null,this.cacheCanvasEl=null,this.contextCache=null,this.contextTop=null,t.parentNode&&t.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,C.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(t){var e=this._activeObject;e&&e._renderControls(t)},_toObject:function(t,e,n){var i=this._realizeGroupTransformOnObject(t),r=this.callSuper("_toObject",t,e,n);return this._unwindGroupTransformOnObject(t,i),r},_realizeGroupTransformOnObject:function(t){if(t.group&&"activeSelection"===t.group.type&&this._activeObject===t.group){var e={};return["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"].forEach(function(n){e[n]=t[n]}),this._activeObject.realizeTransform(t),e}return null},_unwindGroupTransformOnObject:function(t,e){e&&t.set(e)},_setSVGObject:function(t,e,n){var i=this._realizeGroupTransformOnObject(e);this.callSuper("_setSVGObject",t,e,n),this._unwindGroupTransformOnObject(e,i)}}),C.StaticCanvas)"prototype"!==a&&(C.Canvas[a]=C.StaticCanvas[a]);C.isTouchSupported&&(C.Canvas.prototype._setCursorFromEvent=function(){})}(),function(){var t={mt:0,tr:1,mr:2,br:3,mb:4,bl:5,ml:6,tl:7},e=C.util.addListener,n=C.util.removeListener,i={passive:!1};function r(t,e){return"which"in t?t.which===e:t.button===e-1}C.util.object.extend(C.Canvas.prototype,{cursorMap:["n-resize","ne-resize","e-resize","se-resize","s-resize","sw-resize","w-resize","nw-resize"],_initEventListeners:function(){this.removeListeners(),this._bindEvents(),e(C.window,"resize",this._onResize),e(this.upperCanvasEl,"mousedown",this._onMouseDown),e(this.upperCanvasEl,"dblclick",this._onDoubleClick),e(this.upperCanvasEl,"mousemove",this._onMouseMove,i),e(this.upperCanvasEl,"mouseout",this._onMouseOut),e(this.upperCanvasEl,"mouseenter",this._onMouseEnter),e(this.upperCanvasEl,"wheel",this._onMouseWheel),e(this.upperCanvasEl,"contextmenu",this._onContextMenu),e(this.upperCanvasEl,"dragover",this._onDragOver),e(this.upperCanvasEl,"dragenter",this._onDragEnter),e(this.upperCanvasEl,"dragleave",this._onDragLeave),e(this.upperCanvasEl,"drop",this._onDrop),e(this.upperCanvasEl,"touchstart",this._onMouseDown,i),e(this.upperCanvasEl,"touchmove",this._onMouseMove,i),"undefined"!=typeof eventjs&&"add"in eventjs&&(eventjs.add(this.upperCanvasEl,"gesture",this._onGesture),eventjs.add(this.upperCanvasEl,"drag",this._onDrag),eventjs.add(this.upperCanvasEl,"orientation",this._onOrientationChange),eventjs.add(this.upperCanvasEl,"shake",this._onShake),eventjs.add(this.upperCanvasEl,"longpress",this._onLongPress))},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._simpleEventHandler.bind(this,"drop"),this.eventsBound=!0)},removeListeners:function(){n(C.window,"resize",this._onResize),n(this.upperCanvasEl,"mousedown",this._onMouseDown),n(this.upperCanvasEl,"mousemove",this._onMouseMove),n(this.upperCanvasEl,"mouseout",this._onMouseOut),n(this.upperCanvasEl,"mouseenter",this._onMouseEnter),n(this.upperCanvasEl,"wheel",this._onMouseWheel),n(this.upperCanvasEl,"contextmenu",this._onContextMenu),n(this.upperCanvasEl,"doubleclick",this._onDoubleClick),n(this.upperCanvasEl,"touchstart",this._onMouseDown),n(this.upperCanvasEl,"touchmove",this._onMouseMove),n(this.upperCanvasEl,"dragover",this._onDragOver),n(this.upperCanvasEl,"dragenter",this._onDragEnter),n(this.upperCanvasEl,"dragleave",this._onDragLeave),n(this.upperCanvasEl,"drop",this._onDrop),"undefined"!=typeof eventjs&&"remove"in eventjs&&(eventjs.remove(this.upperCanvasEl,"gesture",this._onGesture),eventjs.remove(this.upperCanvasEl,"drag",this._onDrag),eventjs.remove(this.upperCanvasEl,"orientation",this._onOrientationChange),eventjs.remove(this.upperCanvasEl,"shake",this._onShake),eventjs.remove(this.upperCanvasEl,"longpress",this._onLongPress))},_onGesture:function(t,e){this.__onTransformGesture&&this.__onTransformGesture(t,e)},_onDrag:function(t,e){this.__onDrag&&this.__onDrag(t,e)},_onMouseWheel:function(t){this.__onMouseWheel(t)},_onMouseOut:function(t){var e=this._hoveredTarget;this.fire("mouse:out",{target:e,e:t}),this._hoveredTarget=null,e&&e.fire("mouseout",{e:t}
1),this._iTextInstances&&this._iTextInstances.forEach(function(t){t.isEditing&&t.hiddenTextarea.focus()})},_onMouseEnter:function(t){this.findTarget(t)||(this.fire("mouse:over",{target:null,e:t}),this._hoveredTarget=null)},_onOrientationChange:function(t,e){this.__onOrientationChange&&this.__onOrientationChange(t,e)},_onShake:function(t,e){this.__onShake&&this.__onShake(t,e)},_onLongPress:function(t,e){this.__onLongPress&&this.__onLongPress(t,e)},_onDragOver:function(t){t.preventDefault();var e=this._simpleEventHandler("dragover",t);this._fireEnterLeaveEvents(e,t)},_onContextMenu:function(t){return this.stopContextMenu&&(t.stopPropagation(),t.preventDefault()),!1},_onDoubleClick:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"dblclick"),this._resetTransformEventData(t)},_onMouseDown:function(t){this.__onMouseDown(t),this._resetTransformEventData(),e(C.document,"touchend",this._onMouseUp,i),e(C.document,"touchmove",this._onMouseMove,i),n(this.upperCanvasEl,"mousemove",this._onMouseMove),n(this.upperCanvasEl,"touchmove",this._onMouseMove),"touchstart"===t.type?n(this.upperCanvasEl,"mousedown",this._onMouseDown):(e(C.document,"mouseup",this._onMouseUp),e(C.document,"mousemove",this._onMouseMove))},_onMouseUp:function(t){if(this.__onMouseUp(t),this._resetTransformEventData(),n(C.document,"mouseup",this._onMouseUp),n(C.document,"touchend",this._onMouseUp,i),n(C.document,"mousemove",this._onMouseMove),n(C.document,"touchmove",this._onMouseMove),e(this.upperCanvasEl,"mousemove",this._onMouseMove,i),e(this.upperCanvasEl,"touchmove",this._onMouseMove,i),"touchend"===t.type){var r=this;setTimeout(function(){e(r.upperCanvasEl,"mousedown",r._onMouseDown)},400)}},_onMouseMove:function(t){!this.allowTouchScrolling&&t.preventDefault&&t.preventDefault(),this.__onMouseMove(t)},_onResize:function(){this.calcOffset()},_shouldRender:function(t,e){var n=this._activeObject;return!(n&&n.isEditing&&t===n||!(t&&(t.isMoving||t!==n)||!t&&n||!t&&!n&&!this._groupSelector||e&&this._previousPointer&&this.selection&&(e.x!==this._previousPointer.x||e.y!==this._previousPointer.y)))},__onMouseUp:function(t){var e,n=this._currentTransform,i=this._groupSelector,o=!i||0===i.left&&0===i.top;if(this._cacheTransformEventData(t),e=this._target,this._handleEvent(t,"up:before"),r(t,3))this.fireRightClick&&this._handleEvent(t,"up",3,o);else{if(r(t,2))return this.fireMiddleClick&&this._handleEvent(t,"up",2,o),void this._resetTransformEventData();if(this.isDrawingMode&&this._isCurrentlyDrawing)this._onMouseUpInDrawingMode(t);else{n&&this._finalizeCurrentTransform(t);var a=this._shouldRender(e,this._absolutePointer);!e&&o||this._maybeGroupObjects(t),e&&(e.isMoving=!1),this._setCursorFromEvent(t,e),this._handleEvent(t,"up",1,o),this._groupSelector=null,this._currentTransform=null,e&&(e.__corner=0),a&&this.requestRenderAll()}}},_simpleEventHandler:function(t,e){var n=this.findTarget(e),i=this.targets,r={e:e,target:n,subTargets:i};if(this.fire(t,r),n&&n.fire(t,r),!i)return n;for(var o=0;o<i.length;o++)i[o].fire(t,r);return n},_handleEvent:function(t,e,n,i){var r=this._target,o=this.targets||[],a={e:t,target:r,subTargets:o,button:n||1,isClick:i||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};this.fire("mouse:"+e,a),r&&r.fire("mouse"+e,a);for(var s=0;s<o.length;s++)o[s].fire("mouse"+e,a)},_finalizeCurrentTransform:function(t){var e,n=this._currentTransform,i=n.target,r={e:t,target:i,transform:n};i._scaling&&(i._scaling=!1),i.setCoords(),(n.actionPerformed||this.stateful&&i.hasStateChanged())&&(n.actionPerformed&&(e=this._addEventOptions(r,n),this._fire(e,r)),this._fire("modified",r))},_addEventOptions:function(t,e){var n,i;switch(e.action){case"scaleX":n="scaled",i="x";break;case"scaleY":n="scaled",i="y";break;case"skewX":n="skewed",i="x";break;case"skewY":n="skewed",i="y";break;case"scale":n="scaled",i="equally";break;case"rotate":n="rotated";break;case"drag":n="moved"}return t.by=i,n},_onMouseDownInDrawingMode:function(t){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(t).requestRenderAll(),this.clipTo&&C.util.clipContext(this,this.contextTop);var e=this.getPointer(t);this.freeDrawingBrush.onMouseDown(e),this._handleEvent(t,"down")},_onMouseMoveInDrawingMode:function(t){if(this._isCurrentlyDrawing){var e=this.getPointer(t);this.freeDrawingBrush.onMouseMove(e)}this.setCursor(this.freeDrawingCursor),this._handleEvent(t,"move")},_onMouseUpInDrawingMode:function(t){this._isCurrentlyDrawing=!1,this.clipTo&&this.contextTop.restore(
1),this.freeDrawingBrush.onMouseUp(),this._handleEvent(t,"up")},__onMouseDown:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"down:before");var e=this._target;if(r(t,3))this.fireRightClick&&this._handleEvent(t,"down",3);else if(r(t,2))this.fireMiddleClick&&this._handleEvent(t,"down",2);else if(this.isDrawingMode)this._onMouseDownInDrawingMode(t);else if(!this._currentTransform){var n=this._pointer;this._previousPointer=n;var i=this._shouldRender(e,n),o=this._shouldGroup(t,e);this._shouldClearSelection(t,e)?this.discardActiveObject(t):o&&(this._handleGrouping(t,e),e=this._activeObject),!this.selection||e&&(e.selectable||e.isEditing||e===this._activeObject)||(this._groupSelector={ex:n.x,ey:n.y,top:0,left:0}),e&&(e.selectable&&this.setActiveObject(e,t),e!==this._activeObject||!e.__corner&&o||this._setupCurrentTransform(t,e)),this._handleEvent(t,"down"),i&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(t){this._resetTransformEventData(),this._pointer=this.getPointer(t,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(t)||null},_beforeTransform:function(t){var e=this._currentTransform;this.stateful&&e.target.saveState(),this.fire("before:transform",{e:t,transform:e}),e.corner&&this.onBeforeScaleRotate(e.target)},__onMouseMove:function(t){var e,n;if(this._handleEvent(t,"move:before"),this._cacheTransformEventData(t),this.isDrawingMode)this._onMouseMoveInDrawingMode(t);else if(!(void 0!==t.touches&&t.touches.length>1)){var i=this._groupSelector;i?(i.left=(n=this._pointer).x-i.ex,i.top=n.y-i.ey,this.renderTop()):this._currentTransform?this._transformObject(t):(e=this.findTarget(t)||null,this._setCursorFromEvent(t,e),this._fireOverOutEvents(e,t)),this._handleEvent(t,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(t,e){this.fireSynteticInOutEvents(t,e,{targetName:"_hoveredTarget",canvasEvtOut:"mouse:out",evtOut:"mouseout",canvasEvtIn:"mouse:over",evtIn:"mouseover"})},_fireEnterLeaveEvents:function(t,e){this.fireSynteticInOutEvents(t,e,{targetName:"_draggedoverTarget",evtOut:"dragleave",evtIn:"dragenter"})},fireSynteticInOutEvents:function(t,e,n){var i,r,o,a=this[n.targetName],s=a!==t,l=n.canvasEvtIn,u=n.canvasEvtOut;s&&(i={e:e,target:t,previousTarget:a},r={e:e,target:a,nextTarget:t},this[n.targetName]=t),o=t&&s,a&&s&&(u&&this.fire(u,r),a.fire(n.evtOut,r)),o&&(l&&this.fire(l,i),t.fire(n.evtIn,i))},__onMouseWheel:function(t){this._cacheTransformEventData(t),this._handleEvent(t,"wheel"),this._resetTransformEventData()},_transformObject:function(t){var e=this.getPointer(t),n=this._currentTransform;n.reset=!1,n.target.isMoving=!0,n.shiftKey=t.shiftKey,n.altKey=t[this.centeredKey],this._beforeScaleTransform(t,n),this._performTransformAction(t,n,e),n.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(t,e,n){var i=n.x,r=n.y,o=e.action,a=!1,s={target:e.target,e:t,transform:e,pointer:n};"rotate"===o?(a=this._rotateObject(i,r))&&this._fire("rotating",s):"scale"===o?(a=this._onScale(t,e,i,r))&&this._fire("scaling",s):"scaleX"===o?(a=this._scaleObject(i,r,"x"))&&this._fire("scaling",s):"scaleY"===o?(a=this._scaleObject(i,r,"y"))&&this._fire("scaling",s):"skewX"===o?(a=this._skewObject(i,r,"x"))&&this._fire("skewing",s):"skewY"===o?(a=this._skewObject(i,r,"y"))&&this._fire("skewing",s):(a=this._translateObject(i,r))&&(this._fire("moving",s),this.setCursor(s.target.moveCursor||this.moveCursor)),e.actionPerformed=e.actionPerformed||a},_fire:function(t,e){this.fire("object:"+t,e),e.target.fire(t,e)},_beforeScaleTransform:function(t,e){if("scale"===e.action||"scaleX"===e.action||"scaleY"===e.action){var n=this._shouldCenterTransform(e.target);(n&&("center"!==e.originX||"center"!==e.originY)||!n&&"center"===e.originX&&"center"===e.originY)&&(this._resetCurrentTransform(),e.reset=!0)}},_onScale:function(t,e,n,i){return this._isUniscalePossible(t,e.target)?(e.currentAction="scale",this._scaleObject(n,i)):(e.reset||"scale"!==e.currentAction||this._resetCurrentTransform(),e.currentAction="scaleEqually",this._scaleObject(n,i,"equally"))},_isUniscalePossible:function(t,e){return(t[this.uniScaleKey]||this.uniScaleTransform)&&!e.get("lockUniScaling")},_setCursorFromEvent:function(t,e){if(!e)return this.setCursor(this.defaultCursor),!1;
1var n=e.hoverCursor||this.hoverCursor,i=this._activeObject&&"activeSelection"===this._activeObject.type?this._activeObject:null,r=(!i||!i.contains(e))&&e._findTargetCorner(this.getPointer(t,!0));this.setCursor(r?this.getCornerCursor(r,e,t):n)},getCornerCursor:function(e,n,i){return this.actionIsDisabled(e,n,i)?this.notAllowedCursor:e in t?this._getRotatedCornerCursor(e,n,i):"mtr"===e&&n.hasRotatingPoint?this.rotationCursor:this.defaultCursor},actionIsDisabled:function(t,e,n){return"mt"===t||"mb"===t?n[this.altActionKey]?e.lockSkewingX:e.lockScalingY:"ml"===t||"mr"===t?n[this.altActionKey]?e.lockSkewingY:e.lockScalingX:"mtr"===t?e.lockRotation:this._isUniscalePossible(n,e)?e.lockScalingX&&e.lockScalingY:e.lockScalingX||e.lockScalingY},_getRotatedCornerCursor:function(e,n,i){var r=Math.round(n.angle%360/45);return r<0&&(r+=8),r+=t[e],i[this.altActionKey]&&t[e]%2==0&&(r+=2),this.cursorMap[r%=8]}})}(),c=Math.min,h=Math.max,C.util.object.extend(C.Canvas.prototype,{_shouldGroup:function(t,e){var n=this._activeObject;return n&&this._isSelectionKeyPressed(t)&&e&&e.selectable&&this.selection&&(n!==e||"activeSelection"===n.type)},_handleGrouping:function(t,e){var n=this._activeObject;n.__corner||(e!==n||(e=this.findTarget(t,!0)))&&(n&&"activeSelection"===n.type?this._updateActiveSelection(e,t):this._createActiveSelection(e,t))},_updateActiveSelection:function(t,e){var n=this._activeObject,i=n._objects.slice(0);n.contains(t)?(n.removeWithUpdate(t),this._hoveredTarget=t,1===n.size()&&this._setActiveObject(n.item(0),e)):(n.addWithUpdate(t),this._hoveredTarget=n),this._fireSelectionEvents(i,e)},_createActiveSelection:function(t,e){var n=this.getActiveObjects(),i=this._createGroup(t);this._hoveredTarget=i,this._setActiveObject(i,e),this._fireSelectionEvents(n,e)},_createGroup:function(t){var e=this.getObjects(),n=e.indexOf(this._activeObject)<e.indexOf(t)?[this._activeObject,t]:[t,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new C.ActiveSelection(n,{canvas:this})},_groupSelectedObjects:function(t){var e,n=this._collectObjects();1===n.length?this.setActiveObject(n[0],t):n.length>1&&(e=new C.ActiveSelection(n.reverse(),{canvas:this}),this.setActiveObject(e,t))},_collectObjects:function(){for(var t,e=[],n=this._groupSelector.ex,i=this._groupSelector.ey,r=n+this._groupSelector.left,o=i+this._groupSelector.top,a=new C.Point(c(n,r),c(i,o)),s=new C.Point(h(n,r),h(i,o)),l=!this.selectionFullyContained,u=n===r&&i===o,d=this._objects.length;d--&&!((t=this._objects[d])&&t.selectable&&t.visible&&(l&&t.intersectsWithRect(a,s)||t.isContainedWithinRect(a,s)||l&&t.containsPoint(a)||l&&t.containsPoint(s))&&(e.push(t),u)););return e},_maybeGroupObjects:function(t){this.selection&&this._groupSelector&&this._groupSelectedObjects(t),this.setCursor(this.defaultCursor),this._groupSelector=null,this._currentTransform=null}}),d=C.StaticCanvas.supports("toDataURLWithQuality"),C.util.object.extend(C.StaticCanvas.prototype,{toDataURL:function(t){t||(t={});var e=t.format||"png",n=t.quality||1,i=(t.multiplier||1)*(t.enableRetinaScaling?1:1/this.getRetinaScaling());return this.__toDataURLWithMultiplier(e,n,{left:t.left||0,top:t.top||0,width:t.width||0,height:t.height||0},i)},__toDataURLWithMultiplier:function(t,e,n,i){var r=this.width,o=this.height,a=(n.width||this.width)*i,s=(n.height||this.height)*i,l=this.getZoom()*i,u=this.viewportTransform,c=this.interactive,h=this.skipOffscreen,d=r!==a||o!==s;this.viewportTransform=[l,0,0,l,(u[4]-n.left)*i,(u[5]-n.top)*i],this.skipOffscreen=!1,this.interactive=!1,d&&this.setDimensions({width:a,height:s},{backstoreOnly:!0}),this.renderAll();var p=this.__toDataURL(t,e,n);return this.interactive=c,this.skipOffscreen=h,this.viewportTransform=u,d&&this.setDimensions({width:r,height:o},{backstoreOnly:!0}),this.renderAll(),p},__toDataURL:function(t,e){var n=this.contextContainer.canvas;return"jpg"===t&&(t="jpeg"),d?n.toDataURL("image/"+t,e):n.toDataURL("image/"+t)}}),C.util.object.extend(C.StaticCanvas.prototype,{loadFromDatalessJSON:function(t,e,n){return this.loadFromJSON(t,e,n)},loadFromJSON:function(t,e,n){if(t){var i="string"==typeof t?JSON.parse(t):C.util.object.clone(t),r=this,o=this.renderOnAddRemove;return this.renderOnAddRemove=!1,this._enlivenObjects(i.objects,function(t){r.clear(),r._setBgOverlay(i,function(){t.forEach(function(t,e){r.insertAt(t,e)}),r.renderOnAddRemove=o,delete i.objects,delete i.backgroundImage,delete i.overlayImage,delete i.background,delete i.overlay,r._setOptions(i),r.renderAll(),e&&e()})},n),this}},_setBgOverlay:function(t,e){var n={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(t.backgroundImage||t.overlayImage||t.background||t.overlay){var i=function(){n.backgroundImage&&n.overlayImage&&n.backgroundColor&&n.overlayColor&&e&&e()};this.__setBgOverlay("backgroundImage",t.backgroundImage,n,i),this.__setBgOverlay("overlayImage",t.overlayImage,n,i),this.__setBgOverlay("backgroundColor",t.background,n,i),this.__setBgOverlay("overlayColor",t.overlay,n,i)}else e&&e()},__setBgOverlay:function(t,e,n,i){var r=this;if(!e)return n[t]=!0,void(i&&i());"backgroundImage"===t||"overlayImage"===t?C.util.enlivenObjects([e],function(e){r[t]=e[0],n[t]=!0,i&&i()}):this["set"+C.util.string.capitalize(t,!0)](e,function(){n[t]=!0,i&&i()})},_enlivenObjects:function(t,e,n){t&&0!==t.length?C.util.enlivenObjects(t,function(t){e&&e(t)}
1,null,n):e&&e([])},_toDataURL:function(t,e){this.clone(function(n){e(n.toDataURL(t))})},_toDataURLWithMultiplier:function(t,e,n){this.clone(function(i){n(i.toDataURLWithMultiplier(t,e))})},clone:function(t,e){var n=JSON.stringify(this.toJSON(e));this.cloneWithoutData(function(e){e.loadFromJSON(n,function(){t&&t(e)})})},cloneWithoutData:function(t){var e=C.document.createElement("canvas");e.width=this.width,e.height=this.height;var n=new C.Canvas(e);n.clipTo=this.clipTo,this.backgroundImage?(n.setBackgroundImage(this.backgroundImage.src,function(){n.renderAll(),t&&t(n)}),n.backgroundImageOpacity=this.backgroundImageOpacity,n.backgroundImageStretch=this.backgroundImageStretch):t&&t(n)}}),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend,r=n.util.object.clone,o=n.util.toFixed,a=n.util.string.capitalize,s=n.util.degreesToRadians,l=n.StaticCanvas.supports("setLineDash");n.Object||(n.Object=n.util.createClass(n.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgba(102,153,255,0.75)",borderDashArray:null,cornerColor:"rgba(102,153,255,0.5)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,transformMatrix:null,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,hasRotatingPoint:!0,rotatingPointOffset:40,perPixelTargetFind:!1,includeDefaultValues:!0,clipTo:null,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockUniScaling:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:!n.isLikelyNode,statefullCache:!1,noScaleCache:!0,dirty:!0,__corner:0,paintFirst:"fill",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow clipTo visible backgroundColor skewX skewY fillRule paintFirst".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeLineCap strokeLineJoin strokeMiterLimit backgroundColor".split(" "),initialize:function(t){t&&this.setOptions(t)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=n.document.createElement("canvas"),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas()},_limitCacheSize:function(t){var e=n.perfLimitSizeTotal,i=t.width,r=t.height,o=n.maxCacheSideLimit,a=n.minCacheSideLimit;if(i<=o&&r<=o&&i*r<=e)return i<a&&(t.width=a),r<a&&(t.height=a),t;var s=n.util.limitDimsByArea(i/r,e),l=n.util.capValue,u=l(a,s.x,o),c=l(a,s.y,o);return i>u&&(t.zoomX/=i/u,t.width=u,t.capped=!0),r>c&&(t.zoomY/=r/c,t.height=c,t.capped=!0),t},_getCacheCanvasDimensions:function(){var t=this.canvas&&this.canvas.getZoom()||1,e=this.getObjectScaling(),i=this.canvas&&this.canvas._isRetinaScaling()?n.devicePixelRatio:1,r=this._getNonTransformedDimensions(),o=e.scaleX*t*i,a=e.scaleY*t*i;return{width:r.x*o+2,height:r.y*a+2,zoomX:o,zoomY:a,x:r.x,y:r.y}},_updateCacheCanvas:function(){if(this.noScaleCache&&this.canvas&&this.canvas._currentTransform){var t=this.canvas._currentTransform.action;if(this===this.canvas._currentTransform.target&&t.slice&&"scale"===t.slice(0,5))return!1}var e,i,r=this._cacheCanvas,o=this._limitCacheSize(this._getCacheCanvasDimensions()),a=n.minCacheSideLimit,s=o.width,l=o.height,u=o.zoomX,c=o.zoomY,h=s!==this.cacheWidth||l!==this.cacheHeight,d=0,p=0,f=!1;if(h){var g=this._cacheCanvas.width,m=this._cacheCanvas.height,v=s>g||l>m;f=v||(s<.9*g||l<.9*m)&&g>a&&m>a,v&&!o.capped&&(s>a||l>a)&&(d=.1*s,p=.1*l)}return!(!h&&this.zoomX===u&&this.zoomY===c||(f?(r.width=Math.ceil(s+d),r.height=Math.ceil(l+p)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,r.width,r.height)),e=o.x*u/2,i=o.y*c/2,this.cacheTranslationX=Math.round(r.width/2-e)+e,this.cacheTranslationY=Math.round(r.height/2-i)+i,this.cacheWidth=s,this.cacheHeight=l,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(u,c),this.zoomX=u,this.zoomY=c,0))},setOptions:function(t){this._setOptions(t),this._initGradient(t.fill,"fill"),this._initGradient(t.stroke,"stroke"),this._initClipping(t),this._initPattern(t.fill,"fill"),this._initPattern(t.stroke,"stroke")},transform:function(t){var e;e=this.group&&!this.group._transformDone?this.calcTransformMatrix():this.calcOwnMatrix(),t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},toObject:function(t){var e=n.Object.NUM_FRACTION_DIGITS,i={type:this.t
1ype,version:n.version,originX:this.originX,originY:this.originY,left:o(this.left,e),top:o(this.top,e),width:o(this.width,e),height:o(this.height,e),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:o(this.strokeWidth,e),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeLineJoin:this.strokeLineJoin,strokeMiterLimit:o(this.strokeMiterLimit,e),scaleX:o(this.scaleX,e),scaleY:o(this.scaleY,e),angle:o(this.angle,e),flipX:this.flipX,flipY:this.flipY,opacity:o(this.opacity,e),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,clipTo:this.clipTo&&String(this.clipTo),backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,transformMatrix:this.transformMatrix?this.transformMatrix.concat():null,skewX:o(this.skewX,e),skewY:o(this.skewY,e)};return n.util.populateWithProperties(this,i,t),this.includeDefaultValues||(i=this._removeDefaultValues(i)),i},toDatalessObject:function(t){return this.toObject(t)},_removeDefaultValues:function(t){var e=n.util.getKlass(t.type).prototype;return e.stateProperties.forEach(function(n){t[n]===e[n]&&delete t[n],"[object Array]"===Object.prototype.toString.call(t[n])&&"[object Array]"===Object.prototype.toString.call(e[n])&&0===t[n].length&&0===e[n].length&&delete t[n]}),t},toString:function(){return"#<fabric."+a(this.type)+">"},getObjectScaling:function(){var t=this.scaleX,e=this.scaleY;if(this.group){var n=this.group.getObjectScaling();t*=n.scaleX,e*=n.scaleY}return{scaleX:t,scaleY:e}},getObjectOpacity:function(){var t=this.opacity;return this.group&&(t*=this.group.getObjectOpacity()),t},_set:function(t,e){var i=this[t]!==e,r=!1;return("scaleX"===t||"scaleY"===t)&&(e=this._constrainScale(e)),"scaleX"===t&&e<0?(this.flipX=!this.flipX,e*=-1):"scaleY"===t&&e<0?(this.flipY=!this.flipY,e*=-1):"shadow"!==t||!e||e instanceof n.Shadow?"dirty"===t&&this.group&&this.group.set("dirty",e):e=new n.Shadow(e),this[t]=e,i&&(r=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(t)>-1?(this.dirty=!0,r&&this.group.set("dirty",!0)):r&&this.stateProperties.indexOf(t)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:n.iMatrix.concat()},isNotVisible:function(){return 0===this.opacity||0===this.width&&0===this.height||!this.visible},render:function(t){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(t.save(),this._setupCompositeOperation(t),this.drawSelectionBackground(t),this.transform(t),this._setOpacity(t),this._setShadow(t,this),this.transformMatrix&&t.transform.apply(t,this.transformMatrix),this.clipTo&&n.util.clipContext(this,t),this.shouldCache()?(this._cacheCanvas||this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext),this.dirty=!1),this.drawCacheOnCanvas(t)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(t),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),this.clipTo&&t.restore(),t.restore())},_removeCacheCanvas:function(){this._cacheCanvas=null,this.cacheWidth=0,this.cacheHeight=0},needsItsOwnCache:function(){return"stroke"===this.paintFirst&&"object"==typeof this.shadow},shouldCache:function(){return this.ownCaching=this.objectCaching&&(!this.group||this.needsItsOwnCache()||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(0!==this.shadow.offsetX||0!==this.shadow.offsetY)},drawObject:function(t){this._renderBackground(t),this._setStrokeStyles(t,this),this._setFillStyles(t,this),this._render(t)},drawCacheOnCanvas:function(t){t.scale(1/this.zoomX,1/this.zoomY),t.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(t){if(this.isNotVisible())return!1;if(this._cacheCanvas&&!t&&this._updateCacheCanvas())return!0;
1if(this.dirty||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&!t){var e=this.cacheWidth/this.zoomX,n=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-e/2,-n/2,e,n)}return!0}return!1},_renderBackground:function(t){if(this.backgroundColor){var e=this._getNonTransformedDimensions();t.fillStyle=this.backgroundColor,t.fillRect(-e.x/2,-e.y/2,e.x,e.y),this._removeShadow(t)}},_setOpacity:function(t){this.group&&!this.group._transformDone?t.globalAlpha=this.getObjectOpacity():t.globalAlpha*=this.opacity},_setStrokeStyles:function(t,e){e.stroke&&(t.lineWidth=e.strokeWidth,t.lineCap=e.strokeLineCap,t.lineJoin=e.strokeLineJoin,t.miterLimit=e.strokeMiterLimit,t.strokeStyle=e.stroke.toLive?e.stroke.toLive(t,this):e.stroke)},_setFillStyles:function(t,e){e.fill&&(t.fillStyle=e.fill.toLive?e.fill.toLive(t,this):e.fill)},_setLineDash:function(t,e,n){e&&(1&e.length&&e.push.apply(e,e),l?t.setLineDash(e):n&&n(t))},_renderControls:function(t,e){var i,r,o,a=this.getViewportTransform(),l=this.calcTransformMatrix();r=void 0!==(e=e||{}).hasBorders?e.hasBorders:this.hasBorders,o=void 0!==e.hasControls?e.hasControls:this.hasControls,l=n.util.multiplyTransformMatrices(a,l),i=n.util.qrDecompose(l),t.save(),t.translate(i.translateX,i.translateY),t.lineWidth=1*this.borderScaleFactor,this.group||(t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),e.forActiveSelection?(t.rotate(s(i.angle)),r&&this.drawBordersInGroup(t,i,e)):(t.rotate(s(this.angle)),r&&this.drawBorders(t,e)),o&&this.drawControls(t,e),t.restore()},_setShadow:function(t){if(this.shadow){var e=this.canvas&&this.canvas.viewportTransform[0]||1,i=this.canvas&&this.canvas.viewportTransform[3]||1,r=this.getObjectScaling();this.canvas&&this.canvas._isRetinaScaling()&&(e*=n.devicePixelRatio,i*=n.devicePixelRatio),t.shadowColor=this.shadow.color,t.shadowBlur=this.shadow.blur*n.browserShadowBlurConstant*(e+i)*(r.scaleX+r.scaleY)/4,t.shadowOffsetX=this.shadow.offsetX*e*r.scaleX,t.shadowOffsetY=this.shadow.offsetY*i*r.scaleY}},_removeShadow:function(t){this.shadow&&(t.shadowColor="",t.shadowBlur=t.shadowOffsetX=t.shadowOffsetY=0)},_applyPatternGradientTransform:function(t,e){if(!e||!e.toLive)return{offsetX:0,offsetY:0};var n=e.gradientTransform||e.patternTransform,i=-this.width/2+e.offsetX||0,r=-this.height/2+e.offsetY||0;return t.translate(i,r),n&&t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),{offsetX:i,offsetY:r}},_renderPaintInOrder:function(t){"stroke"===this.paintFirst?(this._renderStroke(t),this._renderFill(t)):(this._renderFill(t),this._renderStroke(t))},_renderFill:function(t){this.fill&&(t.save(),this._applyPatternGradientTransform(t,this.fill),"evenodd"===this.fillRule?t.fill("evenodd"):t.fill(),t.restore())},_renderStroke:function(t){this.stroke&&0!==this.strokeWidth&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray,this._renderDashedStroke),this._applyPatternGradientTransform(t,this.stroke),t.stroke(),t.restore())},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var t=n.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",t.scaleX),this.set("scaleY",t.scaleY),this.angle=t.angle,this.skewX=t.skewX,this.skewY=0}},_removeTransformMatrix:function(t){var e=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),e=n.util.transformPoint(e,this.transformMatrix)),this.transformMatrix=null,t&&(this.scaleX*=t.scaleX,this.scaleY*=t.scaleY,this.cropX=t.cropX,this.cropY=t.cropY,e.x+=t.offsetLeft,e.y+=t.offsetTop,this.width=t.width,this.height=t.height),this.setPositionByOrigin(e,"center","center")},clone:function(t,e){var i=this.toObject(e);this.constructor.fromObject?this.constructor.fromObject(i,t):n.Object._fromObject("Object",i,t)},cloneAsImage:function(t,e){var i=this.toDataURL(e);return n.util.loadImage(i,function(e){t&&t(new n.Image(e))}),this},toDataURL:function(t){t||(t={});
1var e=n.util.createCanvasElement(),i=this.getBoundingRect();e.width=i.width,e.height=i.height,n.util.wrapElement(e,"div");var r=new n.StaticCanvas(e,{enableRetinaScaling:t.enableRetinaScaling,renderOnAddRemove:!1,skipOffscreen:!1});"jpg"===t.format&&(t.format="jpeg"),"jpeg"===t.format&&(r.backgroundColor="#fff");var o={left:this.left,top:this.top};this.setPositionByOrigin(new n.Point(r.width/2,r.height/2),"center","center");var a=this.canvas;r.add(this);var s=r.toDataURL(t);return this.set(o).setCoords(),this.canvas=a,r._objects=[],r.dispose(),r=null,s},isType:function(t){return this.type===t},complexity:function(){return 1},toJSON:function(t){return this.toObject(t)},setGradient:function(t,e){e||(e={});var i={colorStops:[]};return i.type=e.type||(e.r1||e.r2?"radial":"linear"),i.coords={x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},(e.r1||e.r2)&&(i.coords.r1=e.r1,i.coords.r2=e.r2),i.gradientTransform=e.gradientTransform,n.Gradient.prototype.addColorStop.call(i,e.colorStops),this.set(t,n.Gradient.forObject(this,i))},setPatternFill:function(t){return this.set("fill",new n.Pattern(t))},setShadow:function(t){return this.set("shadow",t?new n.Shadow(t):null)},setColor:function(t){return this.set("fill",t),this},rotate:function(t){var e=("center"!==this.originX||"center"!==this.originY)&&this.centeredRotation;return e&&this._setOriginToCenter(),this.set("angle",t),e&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(t,e){e=e||this.canvas.getPointer(t);var i=new n.Point(e.x,e.y),r=this._getLeftTopCoords();return this.angle&&(i=n.util.rotatePoint(i,r,s(-this.angle))),{x:i.x-r.x,y:i.y-r.y}},_setupCompositeOperation:function(t){this.globalCompositeOperation&&(t.globalCompositeOperation=this.globalCompositeOperation)}}),n.util.createAccessors&&n.util.createAccessors(n.Object),i(n.Object.prototype,n.Observable),n.Object.NUM_FRACTION_DIGITS=2,n.Object._fromObject=function(t,e,i,o){var a=n[t];e=r(e,!0),n.util.enlivenPatterns([e.fill,e.stroke],function(t){void 0!==t[0]&&(e.fill=t[0]),void 0!==t[1]&&(e.stroke=t[1]);var n=o?new a(e[o],e):new a(e);i&&i(n)})},n.Object.__uid=0)}(),p=C.util.degreesToRadians,f={left:-.5,center:0,right:.5},g={top:-.5,center:0,bottom:.5},C.util.object.extend(C.Object.prototype,{translateToGivenOrigin:function(t,e,n,i,r){var o,a,s,l=t.x,u=t.y;return"string"==typeof e?e=f[e]:e-=.5,"string"==typeof i?i=f[i]:i-=.5,o=i-e,"string"==typeof n?n=g[n]:n-=.5,"string"==typeof r?r=g[r]:r-=.5,a=r-n,(o||a)&&(s=this._getTransformedDimensions(),l=t.x+o*s.x,u=t.y+a*s.y),new C.Point(l,u)},translateToCenterPoint:function(t,e,n){var i=this.translateToGivenOrigin(t,e,n,"center","center");return this.angle?C.util.rotatePoint(i,t,p(this.angle)):i},translateToOriginPoint:function(t,e,n){var i=this.translateToGivenOrigin(t,"center","center",e,n);return this.angle?C.util.rotatePoint(i,t,p(this.angle)):i},getCenterPoint:function(){var t=new C.Point(this.left,this.top);return this.translateToCenterPoint(t,this.originX,this.originY)},getPointByOrigin:function(t,e){var n=this.getCenterPoint();return this.translateToOriginPoint(n,t,e)},toLocalPoint:function(t,e,n){var i,r,o=this.getCenterPoint();return i=void 0!==e&&void 0!==n?this.translateToGivenOrigin(o,"center","center",e,n):new C.Point(this.left,this.top),r=new C.Point(t.x,t.y),this.angle&&(r=C.util.rotatePoint(r,o,-p(this.angle))),r.subtractEquals(i)},setPositionByOrigin:function(t,e,n){var i=this.translateToCenterPoint(t,e,n),r=this.translateToOriginPoint(i,this.originX,this.originY);this.set("left",r.x),this.set("top",r.y)},adjustPosition:function(t){var e,n,i=p(this.angle),r=this.getScaledWidth(),o=C.util.cos(i)*r,a=C.util.sin(i)*r;e="string"==typeof this.originX?f[this.originX]:this.originX-.5,this.left+=o*((n="str
1ing"==typeof t?f[t]:t-.5)-e),this.top+=a*(n-e),this.setCoords(),this.originX=t},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var t=this.getCenterPoint();this.originX="center",this.originY="center",this.left=t.x,this.top=t.y},_resetOrigin:function(){var t=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=t.x,this.top=t.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")},onDeselect:function(){}}),function(){var t=C.util.degreesToRadians,e=C.util.multiplyTransformMatrices,n=C.util.transformPoint;C.util.object.extend(C.Object.prototype,{oCoords:null,aCoords:null,ownMatrixCache:null,matrixCache:null,getCoords:function(t,e){this.oCoords||this.setCoords();var n=t?this.aCoords:this.oCoords;return function(t){return[new C.Point(t.tl.x,t.tl.y),new C.Point(t.tr.x,t.tr.y),new C.Point(t.br.x,t.br.y),new C.Point(t.bl.x,t.bl.y)]}(e?this.calcCoords(t):n)},intersectsWithRect:function(t,e,n,i){var r=this.getCoords(n,i);return"Intersection"===C.Intersection.intersectPolygonRectangle(r,t,e).status},intersectsWithObject:function(t,e,n){return"Intersection"===C.Intersection.intersectPolygonPolygon(this.getCoords(e,n),t.getCoords(e,n)).status||t.isContainedWithinObject(this,e,n)||this.isContainedWithinObject(t,e,n)},isContainedWithinObject:function(t,e,n){for(var i=this.getCoords(e,n),r=0,o=t._getImageLines(n?t.calcCoords(e):e?t.aCoords:t.oCoords);r<4;r++)if(!t.containsPoint(i[r],o))return!1;return!0},isContainedWithinRect:function(t,e,n,i){var r=this.getBoundingRect(n,i);return r.left>=t.x&&r.left+r.width<=e.x&&r.top>=t.y&&r.top+r.height<=e.y},containsPoint:function(t,e,n,i){e=e||this._getImageLines(i?this.calcCoords(n):n?this.aCoords:this.oCoords);var r=this._findCrossPoints(t,e);return 0!==r&&r%2==1},isOnScreen:function(t){if(!this.canvas)return!1;for(var e,n=this.canvas.vptCoords.tl,i=this.canvas.vptCoords.br,r=this.getCoords(!0,t),o=0;o<4;o++)if((e=r[o]).x<=i.x&&e.x>=n.x&&e.y<=i.y&&e.y>=n.y)return!0;return!!this.intersectsWithRect(n,i,!0,t)||this._containsCenterOfCanvas(n,i,t)},_containsCenterOfCanvas:function(t,e,n){return!!this.containsPoint({x:(t.x+e.x)/2,y:(t.y+e.y)/2},null,!0,n)},isPartiallyOnScreen:function(t){if(!this.canvas)return!1;var e=this.canvas.vptCoords.tl,n=this.canvas.vptCoords.br;return!!this.intersectsWithRect(e,n,!0,t)||this._containsCenterOfCanvas(e,n,t)},_getImageLines:function(t){return{topline:{o:t.tl,d:t.tr},rightline:{o:t.tr,d:t.br},bottomline:{o:t.br,d:t.bl},leftline:{o:t.bl,d:t.tl}}},_findCrossPoints:function(t,e){var n,i,r,o=0;for(var a in e)if(!((r=e[a]).o.y<t.y&&r.d.y<t.y||r.o.y>=t.y&&r.d.y>=t.y||((r.o.x===r.d.x&&r.o.x>=t.x?r.o.x:-(t.y-(n=0)*t.x-(r.o.y-(i=(r.d.y-r.o.y)/(r.d.x-r.o.x))*r.o.x))/(n-i))>=t.x&&(o+=1),2!==o)))break;return o},getBoundingRect:function(t,e){var n=this.getCoords(t,e);return C.util.makeBoundingBoxFromPoints(n)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(t){return Math.abs(t)<this.minScaleLimit?t<0?-this.minScaleLimit:this.minScaleLimit:0===t?1e-4:t},scale:function(t){return this._set("scaleX",t),this._set("scaleY",t),this.setCoords()},scaleToWidth:function(t,e){var n=this.getBoundingRect(e).width/this.getScaledWidth();return this.scale(t/this.width/n)},scaleToHeight:function(t,e){var n=this.getBoundingRect(e).height/this.getScaledHeight();return this.scale(t/this.height/n)},calcCoords:function(i){var r=this._calcRotateMatrix(),o=this._calcTranslateMatrix(),a=e(o,r),s=this.getViewportTransform(),l=i?a:e(s,a),u=this._getTransformedDimensions(),c=u.x/2,h=u.y/2,d=n({x:-c,y:-h},l),p=n({x:c,y:-h},l),f=n({x:-c,y:h},l),g=n({x:c,y:h},l);if(!i){var m=this.padding,v=t(this.angle),y=C.util.cos(v),b=C.util.sin(v),_=y*m,w=b*m,x=_+w,S=_-w;m&&(d.x-=S,d.y-=x,p.x+=x,p.y-=S,f.x-=x,f.y+=S,g.x+=S,g.y+=x);var k=new C.Point((d.x+f.x)/2,(d.y+f.y)/2),E=new C.Point((p.x+d.x)/2,(p.y+d.y)/2),O=new C.Point((g.x+p.x)/2,(g.y+p.y)/2),T=new C.Point((g.x+f.x)/2,(g.y+f.y)/2),A=new C.Point(E.x+b*this.rotatingPointOffset,E.y-y*this.rotatingPointOffset)}var D={tl:d,tr:p,br:g,bl:f};
1return i||(D.ml=k,D.mt=E,D.mr=O,D.mb=T,D.mtr=A),D},setCoords:function(t,e){return this.oCoords=this.calcCoords(t),e||(this.aCoords=this.calcCoords(!0)),t||this._setCornerCoords&&this._setCornerCoords(),this},_calcRotateMatrix:function(){if(this.angle){var e=t(this.angle),n=C.util.cos(e),i=C.util.sin(e);return[n,i,-i,n,0,0]}return C.iMatrix.concat()},_calcTranslateMatrix:function(){var t=this.getCenterPoint();return[1,0,0,1,t.x,t.y]},transformMatrixKey:function(t){var e="";return!t&&this.group&&(e=this.group.transformMatrixKey(t)+"_"),e+this.top+"_"+this.left+"_"+this.scaleX+"_"+this.scaleY+"_"+this.skewX+"_"+this.skewY+"_"+this.angle+"_"+this.originX+"_"+this.originY+"_"+this.width+"_"+this.height+"_"+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(t){if(t)return this.calcOwnMatrix();var n=this.transformMatrixKey(),i=this.matrixCache||(this.matrixCache={});if(i.key===n)return i.value;var r=this.calcOwnMatrix();return this.group&&(r=e(this.group.calcTransformMatrix(),r)),i.key=n,i.value=r,r},calcOwnMatrix:function(){var t=this.transformMatrixKey(!0),n=this.ownMatrixCache||(this.ownMatrixCache={});if(n.key===t)return n.value;var i,r=this._calcTranslateMatrix(),o=this._calcDimensionsTransformMatrix(this.skewX,this.skewY,!0);return this.angle&&(i=this._calcRotateMatrix(),r=e(r,i)),r=e(r,o),n.key=t,n.value=r,r},_calcDimensionsTransformMatrix:function(n,i,r){var o,a=[this.scaleX*(r&&this.flipX?-1:1),0,0,this.scaleY*(r&&this.flipY?-1:1),0,0];return n&&(o=[1,0,Math.tan(t(n)),1],a=e(a,o,!0)),i&&(o=[1,Math.tan(t(i)),0,1],a=e(a,o,!0)),a},_getNonTransformedDimensions:function(){var t=this.strokeWidth;return{x:this.width+t,y:this.height+t}},_getTransformedDimensions:function(t,e){void 0===t&&(t=this.skewX),void 0===e&&(e=this.skewY);var n=this._getNonTransformedDimensions();if(0===t&&0===e)return{x:n.x*this.scaleX,y:n.y*this.scaleY};var i,r,o=n.x/2,a=n.y/2,s=[{x:-o,y:-a},{x:o,y:-a},{x:-o,y:a},{x:o,y:a}],l=this._calcDimensionsTransformMatrix(t,e,!1);for(i=0;i<s.length;i++)s[i]=C.util.transformPoint(s[i],l);return{x:(r=C.util.makeBoundingBoxFromPoints(s)).width,y:r.height}},_calculateCurrentDimensions:function(){var t=this.getViewportTransform(),e=this._getTransformedDimensions();return C.util.transformPoint(e,t,!0).scalarAdd(2*this.padding)}})}(),C.util.object.extend(C.Object.prototype,{sendToBack:function(){return this.group?C.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?C.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas.bringToFront(this),this},sendBackwards:function(t){return this.group?C.StaticCanvas.prototype.sendBackwards.call(this.group,this,t):this.canvas.sendBackwards(this,t),this},bringForward:function(t){return this.group?C.StaticCanvas.prototype.bringForward.call(this.group,this,t):this.canvas.bringForward(this,t),this},moveTo:function(t){return this.group&&"activeSelection"!==this.group.type?C.StaticCanvas.prototype.moveTo.call(this.group,this,t):this.canvas.moveTo(this,t),this}}),function(){function t(t,e){if(e){if(e.toLive)return t+": url(#SVGID_"+e.id+"); ";var n=new C.Color(e),i=t+": "+n.toRgb()+"; ",r=n.getAlpha();return 1!==r&&(i+=t+"-opacity: "+r.toString()+"; "),i}return t+": none; "}var e=C.util.toFixed;C.util.object.extend(C.Object.prototype,{getSvgStyles:function(e){var n=this.fillRule,i=this.strokeWidth?this.strokeWidth:"0",r=this.strokeDashArray?this.strokeDashArray.join(" "):"none",o=this.strokeLineCap?this.strokeLineCap:"butt",a=this.strokeLineJoin?this.strokeLineJoin:"miter",s=this.strokeMiterLimit?this.strokeMiterLimit:"4",l=void 0!==this.opacity?this.opacity:"1",u=this.visible?"":" visibility: hidden;",c=e?"":this.getSvgFilter(),h=t("fill",this.fill);return[t("stroke",this.stroke),"stroke-width: ",i,"; ","stroke-dasharray: ",r,"; ","stroke-linecap: ",o,"; ","stroke-linejoin: ",a,"; ","stroke-miterlimit: ",s,"; ",h,"fill-rule: ",n,"; ","opacity: ",l,";",c,u].join("")},getSvgSpanStyles:function(e,n){var i=e.fontFamily?"font-family: "+(-1===e.fontFamily.indexOf("'")&&-1===e.fontFamily.indexOf('"')?"'"+e.fontFamily+"'":e.fontFamily)+"; ":"",r=e.strokeWidth?"stroke-width: "+e.strokeWidth+"; ":"",o=(i=i,e.fontSize?"font-size: "+e.fontSize+"px; ":""),a=e.fontStyle?"font-style: "+e.fontStyle+"; ":"",s=e.fontWeight?"font-weight: "+e.fontWeight+"; ":"",l=e.fill?t("fill",e.fill):"",u=e.stroke?t("stroke",e.stroke):"",c=this.getSvgTextDecoration(e);return c&&(c="text-decoration: "+c+"; "),[u,r,i,o,a,s,c,l,e.deltaY?"baseline-shift: "+-e.deltaY+"; ":"",n?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(t){return"overline"in t||"underline"in t||"linethrough"in t?(t.overline?"overline ":"")+(t.underline?"underline ":"")+(t.linethrough?"line-through ":""):""},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""}
1,getSvgId:function(){return this.id?'id="'+this.id+'" ':""},getSvgTransform:function(){var t=this.angle,n=this.skewX%360,i=this.skewY%360,r=this.getCenterPoint(),o=C.Object.NUM_FRACTION_DIGITS,a="translate("+e(r.x,o)+" "+e(r.y,o)+")",s=0!==t?" rotate("+e(t,o)+")":"",l=1===this.scaleX&&1===this.scaleY?"":" scale("+e(this.scaleX,o)+" "+e(this.scaleY,o)+")",u=0!==n?" skewX("+e(n,o)+")":"",c=0!==i?" skewY("+e(i,o)+")":"";return[a,s,l,this.flipX?" matrix(-1 0 0 1 0 0) ":"",this.flipY?" matrix(1 0 0 -1 0 0)":"",u,c].join("")},getSvgTransformMatrix:function(){return this.transformMatrix?" matrix("+this.transformMatrix.join(" ")+") ":""},_setSVGBg:function(t){if(this.backgroundColor){var n=C.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(this.backgroundColor),' x="',e(-this.width/2,n),'" y="',e(-this.height/2,n),'" width="',e(this.width,n),'" height="',e(this.height,n),'"></rect>\n')}},_createBaseSVGMarkup:function(){var t=[];return this.fill&&this.fill.toLive&&t.push(this.fill.toSVG(this,!1)),this.stroke&&this.stroke.toLive&&t.push(this.stroke.toSVG(this,!1)),this.shadow&&t.push(this.shadow.toSVG(this)),t},addPaintOrder:function(){return"fill"!==this.paintFirst?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var t=C.util.object.extend;function e(e,n,i){var r={};i.forEach(function(t){r[t]=e[t]}),t(e[n],r,!0)}C.util.object.extend(C.Object.prototype,{hasStateChanged:function(t){var e="_"+(t=t||"stateProperties");return Object.keys(this[e]).length<this[t].length||!function t(e,n,i){if(e===n)return!0;if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(var r=0,o=e.length;r<o;r++)if(!t(e[r],n[r]))return!1;return!0}if(e&&"object"==typeof e){var a,s=Object.keys(e);if(!n||"object"!=typeof n||!i&&s.length!==Object.keys(n).length)return!1;for(r=0,o=s.length;r<o;r++)if(!t(e[a=s[r]],n[a]))return!1;return!0}}(this[e],this,!0)},saveState:function(t){var n=t&&t.propertySet||"stateProperties",i="_"+n;return this[i]?(e(this,i,this[n]),t&&t.stateProperties&&e(this,i,t.stateProperties),this):this.setupState(t)},setupState:function(t){var e=(t=t||{}).propertySet||"stateProperties";return t.propertySet=e,this["_"+e]={},this.saveState(t),this}})}(),function(){var t=C.util.degreesToRadians;C.util.object.extend(C.Object.prototype,{_controlsVisibility:null,_findTargetCorner:function(t){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var e,n,i=t.x,r=t.y;for(var o in this.__corner=0,this.oCoords)if(this.isControlVisible(o)&&("mtr"!==o||this.hasRotatingPoint)&&(!this.get("lockUniScaling")||"mt"!==o&&"mr"!==o&&"mb"!==o&&"ml"!==o)&&(n=this._getImageLines(this.oCoords[o].corner),0!==(e=this._findCrossPoints({x:i,y:r},n))&&e%2==1))return this.__corner=o,o;return!1},_setCornerCoords:function(){var e,n,i=this.oCoords,r=t(45-this.angle),o=.707106*this.cornerSize,a=o*C.util.cos(r),s=o*C.util.sin(r);for(var l in i)i[l].corner={tl:{x:(e=i[l].x)-s,y:(n=i[l].y)-a},tr:{x:e+a,y:n-s},bl:{x:e-a,y:n+s},br:{x:e+s,y:n+a}}},drawSelectionBackground:function(e){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;e.save();var n=this.getCenterPoint(),i=this._calculateCurrentDimensions(),r=this.canvas.viewportTransform;return e.translate(n.x,n.y),e.scale(1/r[0],1/r[3]),e.rotate(t(this.angle)),e.fillStyle=this.selectionBackgroundColor,e.fillRect(-i.x/2,-i.y/2,i.x,i.y),e.restore(),this},drawBorders:function(t,e){e=e||{};var n=this._calculateCurrentDimensions(),i=1/this.borderScaleFactor,r=n.x+i,o=n.y+i,a=void 0!==e.hasRotatingPoint?e.hasRotatingPoint:this.hasRotatingPoint,s=void 0!==e.hasControls?e.hasControls:this.hasControls,l=void 0!==e.rotatingPointOffset?e.rotatingPointOffset:this.rotatingPointOffset;if(t.save(),t.strokeStyle=e.borderColor||this.borderColor,this._setLineDash(t,e.borderDashArray||this.borderDashArray,null),t.strokeRect(-r/2,-o/2,r,o),a&&this.isControlVisible("mtr")&&s){var u=-o/2;t.beginPath(),t.moveTo(0,u),t.lineTo(0,u-l),t.stroke()}return t.restore(),this},drawBordersInGroup:function(t,e,n){n=n||{};var i=this._getNonTransformedDimensions(),r=C.util.customTransformMatrix(e.scaleX,e.scaleY,e.skewX),o=C.util.transformPoint(i,r),a=1/this.borderScaleFactor,s=o.x+a,l=o.y+a;return t.save(),this._setLineDash(t,n.borderDashArray||this.borderDashArray,null),t.strokeStyle=n.borderColor||this.borderColor,t.strokeRect(-s/2,-l/2,s,l),t.restore(
1),this},drawControls:function(t,e){e=e||{};var n=this._calculateCurrentDimensions(),i=n.x,r=n.y,o=e.cornerSize||this.cornerSize,a=-(i+o)/2,s=-(r+o)/2,l=void 0!==e.hasRotatingPoint?e.hasRotatingPoint:this.hasRotatingPoint,u=(void 0!==e.transparentCorners?e.transparentCorners:this.transparentCorners)?"stroke":"fill";return t.save(),t.strokeStyle=t.fillStyle=e.cornerColor||this.cornerColor,this.transparentCorners||(t.strokeStyle=e.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(t,e.cornerDashArray||this.cornerDashArray,null),this._drawControl("tl",t,u,a,s,e),this._drawControl("tr",t,u,a+i,s,e),this._drawControl("bl",t,u,a,s+r,e),this._drawControl("br",t,u,a+i,s+r,e),this.get("lockUniScaling")||(this._drawControl("mt",t,u,a+i/2,s,e),this._drawControl("mb",t,u,a+i/2,s+r,e),this._drawControl("mr",t,u,a+i,s+r/2,e),this._drawControl("ml",t,u,a,s+r/2,e)),l&&this._drawControl("mtr",t,u,a+i/2,s-this.rotatingPointOffset,e),t.restore(),this},_drawControl:function(t,e,n,i,r,o){if(o=o||{},this.isControlVisible(t)){var a=this.cornerSize,s=!this.transparentCorners&&this.cornerStrokeColor;switch(o.cornerStyle||this.cornerStyle){case"circle":e.beginPath(),e.arc(i+a/2,r+a/2,a/2,0,2*Math.PI,!1),e[n](),s&&e.stroke();break;default:this.transparentCorners||e.clearRect(i,r,a,a),e[n+"Rect"](i,r,a,a),s&&e.strokeRect(i,r,a,a)}}},isControlVisible:function(t){return this._getControlsVisibility()[t]},setControlVisible:function(t,e){return this._getControlsVisibility()[t]=e,this},setControlsVisibility:function(t){for(var e in t||(t={}),t)this.setControlVisible(e,t[e]);return this},_getControlsVisibility:function(){return this._controlsVisibility||(this._controlsVisibility={tl:!0,tr:!0,br:!0,bl:!0,ml:!0,mt:!0,mr:!0,mb:!0,mtr:!0}),this._controlsVisibility},onDeselect:function(){},onSelect:function(){}})}(),C.util.object.extend(C.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(t,e){var n=function(){},i=(e=e||{}).onComplete||n,r=e.onChange||n,o=this;return C.util.animate({startValue:t.left,endValue:this.getCenter().left,duration:this.FX_DURATION,onChange:function(e){t.set("left",e),o.requestRenderAll(),r()},onComplete:function(){t.setCoords(),i()}}),this},fxCenterObjectV:function(t,e){var n=function(){},i=(e=e||{}).onComplete||n,r=e.onChange||n,o=this;return C.util.animate({startValue:t.top,endValue:this.getCenter().top,duration:this.FX_DURATION,onChange:function(e){t.set("top",e),o.requestRenderAll(),r()},onComplete:function(){t.setCoords(),i()}}),this},fxRemove:function(t,e){var n=function(){},i=(e=e||{}).onComplete||n,r=e.onChange||n,o=this;return C.util.animate({startValue:t.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(e){t.set("opacity",e),o.requestRenderAll(),r()},onComplete:function(){o.remove(t),i()}}),this}}),C.util.object.extend(C.Object.prototype,{animate:function(){if(arguments[0]&&"object"==typeof arguments[0]){var t,e=[];for(t in arguments[0])e.push(t);for(var n=0,i=e.length;n<i;n++)this._animate(t=e[n],arguments[0][t],arguments[1],n!==i-1)}else this._animate.apply(this,arguments);return this},_animate:function(t,e,n,i){var r,o=this;e=e.toString(),n=n?C.util.object.clone(n):{},~t.indexOf(".")&&(r=t.split("."));var a=r?this.get(r[0])[r[1]]:this.get(t);"from"in n||(n.from=a),e=~e.indexOf("=")?a+parseFloat(e.replace("=","")):parseFloat(e),C.util.animate({startValue:n.from,endValue:e,byValue:n.by,easing:n.easing,duration:n.duration,abort:n.abort&&function(){return n.abort.call(o)},onChange:function(e,a,s){r?o[r[0]][r[1]]=e:o.set(t,e),i||n.onChange&&n.onChange(e,a,s)},onComplete:function(t,e,r){i||(o.setCoords(),n.onComplete&&n.onComplete(t,e,r))}})}}),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend,r=n.util.object.clone,o={x1:1,x2:1,y1:1,y2:1},a=n.StaticCanvas.supports("setLineDash");function s(t,e){var n=t.origin,i=t.axis1,r=t.axis2,o=t.dimension,a=e.nearest,s=e.center,l=e.farthest;return function(){switch(this.get(n)){case a:return Math.min(this.get(i),this.get(r));case s:return Math.min(this.get(i),this.get(r))+.5*this.get(o);case l:return Math.max(this.get(i),this.get(r))}}}n.Line?n.warn("fabric.Line is already defined"):(n.Line=n.util.createClass(n.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:n.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(t,e){t||(t=[0,0,0,0]),this.callSuper("initialize",e),this.set("x1",t[0]),this.set("y1",t[1]),this.set("x2",t[2]),this.set("y2",t[3]),this._setWi
1dthHeight(e)},_setWidthHeight:function(t){t||(t={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in t?t.left:this._getLeftToOriginX(),this.top="top"in t?t.top:this._getTopToOriginY()},_set:function(t,e){return this.callSuper("_set",t,e),void 0!==o[t]&&this._setWidthHeight(),this},_getLeftToOriginX:s({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:s({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(t){if(t.beginPath(),!this.strokeDashArray||this.strokeDashArray&&a){var e=this.calcLinePoints();t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2)}t.lineWidth=this.strokeWidth;var n=t.strokeStyle;t.strokeStyle=this.stroke||t.fillStyle,this.stroke&&this._renderStroke(t),t.strokeStyle=n},_renderDashedStroke:function(t){var e=this.calcLinePoints();t.beginPath(),n.util.drawDashedLine(t,e.x1,e.y1,e.x2,e.y2,this.strokeDashArray),t.closePath()},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(t){return i(this.callSuper("toObject",t),this.calcLinePoints())},_getNonTransformedDimensions:function(){var t=this.callSuper("_getNonTransformedDimensions");return"butt"===this.strokeLineCap&&(0===this.width&&(t.y-=this.strokeWidth),0===this.height&&(t.x-=this.strokeWidth)),t},calcLinePoints:function(){var t=this.x1<=this.x2?-1:1,e=this.y1<=this.y2?-1:1;return{x1:t*this.width*.5,x2:t*this.width*-.5,y1:e*this.height*.5,y2:e*this.height*-.5}},toSVG:function(t){var e=this._createBaseSVGMarkup(),n=this.calcLinePoints();return e.push("<line ",this.getSvgId(),'x1="',n.x1,'" y1="',n.y1,'" x2="',n.x2,'" y2="',n.y2,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"/>\n'),t?t(e.join("")):e.join("")}}),n.Line.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),n.Line.fromElement=function(t,e,r){r=r||{};var o=n.parseAttributes(t,n.Line.ATTRIBUTE_NAMES);e(new n.Line([o.x1||0,o.y1||0,o.x2||0,o.y2||0],i(o,r)))},n.Line.fromObject=function(t,e){var i=r(t,!0);i.points=[t.x1,t.y1,t.x2,t.y2],n.Object._fromObject("Line",i,function(t){delete t.points,e&&e(t)},"points")})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=Math.PI;n.Circle?n.warn("fabric.Circle is already defined."):(n.Circle=n.util.createClass(n.Object,{type:"circle",radius:0,startAngle:0,endAngle:2*i,cacheProperties:n.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(t,e){return this.callSuper("_set",t,e),"radius"===t&&this.setRadius(e),this},toObject:function(t){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(t))},toSVG:function(t){var e=this._createBaseSVGMarkup(),r=(this.endAngle-this.startAngle)%(2*i);if(0===r)e.push("<circle ",this.getSvgId(),'cx="0" cy="0" ','r="',this.radius,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform()," ",this.getSvgTransformMatrix(),'"',this.addPaintOrder(),"/>\n");else{var o=n.util.cos(this.startAngle)*this.radius,a=n.util.sin(this.startAngle)*this.radius,s=n.util.cos(this.endAngle)*this.radius,l=n.util.sin(this.endAngle)*this.radius;e.push('<path d="M '+o+" "+a," A "+this.radius+" "+this.radius," 0 ",+(r>i?"1":"0")+" 1"," "+s+" "+l,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform()," ",this.getSvgTransformMatrix(),'"',this.addPaintOrder(),'"/>\n')}return t?t(e.join("")):e.join("")},_render:function(t){t.beginPath(),t.arc(0,0,this.radius,this.startAngle,this.endAngle,!1),this._renderPaintInOrder(t)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(t){return this.radius=t,this.set("width",2*t).set("height",2*t)}}),n.Circle.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),n.Circle.fromElement=function(t,e){var i,r=n.parseAttributes(t,n.Circle.ATTRIBUTE_NAMES);if(!("radius"in(i=r)&&i.radius>=0))throw new Error("value of `r` attribute is required and can not be negative");r.left=(r.left||0)-r.radius,r.top=(r.top||0)-r.radius,e(new n.Circle(r))},n.Circle.fromObject=function(t,e){return n.Object._fromObject("Circle",t,e)})}(),function(t){"use strict";var n=e.fabric||(e.fabric={});n.Triangle?n.warn("fabric.Triangle is already defined"):(n.Triangle=n.util.createClass(n.Object,{type:"triangle",width:100,height:100,_render:function(t){var e=this.width/2,n=this.height/2;t.beginPath(),t.moveTo(-e,n),t.lineTo(0,-n),t.lineTo(e,n),t.closePath(),this._renderPaintInOrder(t)},_renderDashedStroke:function(t){var e=this.width/2,i=this.height/2;t.beginPath(),n.util.drawDashedLine(t,-e,i,0,-i,this.strokeDashArray),n.util.drawDashedLine(t,0,-i,e,i,this.strokeDashArray),n.util.drawDashedLine(t,e,i,-e,i,this.strokeDashArray),t.closePath()},toSVG:function(t){var e=this._createBaseSVGMarkup(),n=this.width/2,i=this.height/2,r=[-n+" "+i,"0 "+-i,n+" "+i].join(",");
1return e.push("<polygon ",this.getSvgId(),'points="',r,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),'"',this.addPaintOrder(),"/>"),t?t(e.join("")):e.join("")}}),n.Triangle.fromObject=function(t,e){return n.Object._fromObject("Triangle",t,e)})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=2*Math.PI;n.Ellipse?n.warn("fabric.Ellipse is already defined."):(n.Ellipse=n.util.createClass(n.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:n.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(t){this.callSuper("initialize",t),this.set("rx",t&&t.rx||0),this.set("ry",t&&t.ry||0)},_set:function(t,e){switch(this.callSuper("_set",t,e),t){case"rx":this.rx=e,this.set("width",2*e);break;case"ry":this.ry=e,this.set("height",2*e)}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(t){return this.callSuper("toObject",["rx","ry"].concat(t))},toSVG:function(t){var e=this._createBaseSVGMarkup();return e.push("<ellipse ",this.getSvgId(),'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"',this.addPaintOrder(),"/>\n"),t?t(e.join("")):e.join("")},_render:function(t){t.beginPath(),t.save(),t.transform(1,0,0,this.ry/this.rx,0,0),t.arc(0,0,this.rx,0,i,!1),t.restore(),this._renderPaintInOrder(t)}}),n.Ellipse.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),n.Ellipse.fromElement=function(t,e){var i=n.parseAttributes(t,n.Ellipse.ATTRIBUTE_NAMES);i.left=(i.left||0)-i.rx,i.top=(i.top||0)-i.ry,e(new n.Ellipse(i))},n.Ellipse.fromObject=function(t,e){return n.Object._fromObject("Ellipse",t,e)})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend;n.Rect?n.warn("fabric.Rect is already defined"):(n.Rect=n.util.createClass(n.Object,{stateProperties:n.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:n.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(t){this.callSuper("initialize",t),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(t){if(1!==this.width||1!==this.height){var e=this.rx?Math.min(this.rx,this.width/2):0,n=this.ry?Math.min(this.ry,this.height/2):0,i=this.width,r=this.height,o=-this.width/2,a=-this.height/2,s=0!==e||0!==n,l=.4477152502;t.beginPath(),t.moveTo(o+e,a),t.lineTo(o+i-e,a),s&&t.bezierCurveTo(o+i-l*e,a,o+i,a+l*n,o+i,a+n),t.lineTo(o+i,a+r-n),s&&t.bezierCurveTo(o+i,a+r-l*n,o+i-l*e,a+r,o+i-e,a+r),t.lineTo(o+e,a+r),s&&t.bezierCurveTo(o+l*e,a+r,o,a+r-l*n,o,a+r-n),t.lineTo(o,a+n),s&&t.bezierCurveTo(o,a+l*n,o+l*e,a,o+e,a),t.closePath(),this._renderPaintInOrder(t)}else t.fillRect(-.5,-.5,1,1)},_renderDashedStroke:function(t){var e=-this.width/2,i=-this.height/2,r=this.width,o=this.height;t.beginPath(),n.util.drawDashedLine(t,e,i,e+r,i,this.strokeDashArray),n.util.drawDashedLine(t,e+r,i,e+r,i+o,this.strokeDashArray),n.util.drawDashedLine(t,e+r,i+o,e,i+o,this.strokeDashArray),n.util.drawDashedLine(t,e,i+o,e,i,this.strokeDashArray),t.closePath()},toObject:function(t){return this.callSuper("toObject",["rx","ry"].concat(t))},toSVG:function(t){var e=this._createBaseSVGMarkup(),n=-this.width/2,i=-this.height/2;return e.push("<rect ",this.getSvgId(),'x="',n,'" y="',i,'" rx="',this.get("rx"),'" ry="',this.get("ry"),'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"',this.addPaintOrder(),"/>\n"),t?t(e.join("")):e.join("")}}),n.Rect.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),n.Rect.fromElement=function(t,e,r){if(!t)return e(null);r=r||{};var o=n.parseAttributes(t,n.Rect.ATTRIBUTE_NAMES);o.left=o.left||0,o.top=o.top||0;var a=new n.Rect(i(r?n.util.object.clone(r):{},o));a.visible=a.visible&&a.width>0&&a.height>0,e(a)},n.Rect.fromObject=function(t,e){return n.Object._fromObject("Rect",t,e)})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}
1),i=n.util.object.extend,r=n.util.array.min,o=n.util.array.max,a=n.util.toFixed;n.Polyline?n.warn("fabric.Polyline is already defined"):(n.Polyline=n.util.createClass(n.Object,{type:"polyline",points:null,cacheProperties:n.Object.prototype.cacheProperties.concat("points"),initialize:function(t,e){e=e||{},this.points=t||[],this.callSuper("initialize",e);var n=this._calcDimensions();void 0===e.left&&(this.left=n.left),void 0===e.top&&(this.top=n.top),this.width=n.width,this.height=n.height,this.pathOffset={x:n.left+this.width/2,y:n.top+this.height/2}},_calcDimensions:function(){var t=this.points,e=r(t,"x")||0,n=r(t,"y")||0;return{left:e,top:n,width:(o(t,"x")||0)-e,height:(o(t,"y")||0)-n}},toObject:function(t){return i(this.callSuper("toObject",t),{points:this.points.concat()})},toSVG:function(t){for(var e=[],i=this.pathOffset.x,r=this.pathOffset.y,o=this._createBaseSVGMarkup(),s=n.Object.NUM_FRACTION_DIGITS,l=0,u=this.points.length;l<u;l++)e.push(a(this.points[l].x-i,s),",",a(this.points[l].y-r,s)," ");return o.push("<",this.type," ",this.getSvgId(),'points="',e.join(""),'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform()," ",this.getSvgTransformMatrix(),'"',this.addPaintOrder(),"/>\n"),t?t(o.join("")):o.join("")},commonRender:function(t){var e,n=this.points.length,i=this.pathOffset.x,r=this.pathOffset.y;if(!n||isNaN(this.points[n-1].y))return!1;t.beginPath(),t.moveTo(this.points[0].x-i,this.points[0].y-r);for(var o=0;o<n;o++)t.lineTo((e=this.points[o]).x-i,e.y-r);return!0},_render:function(t){this.commonRender(t)&&this._renderPaintInOrder(t)},_renderDashedStroke:function(t){var e,i;t.beginPath();for(var r=0,o=this.points.length;r<o;r++)n.util.drawDashedLine(t,(e=this.points[r]).x,e.y,(i=this.points[r+1]||e).x,i.y,this.strokeDashArray)},complexity:function(){return this.get("points").length}}),n.Polyline.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat(),n.Polyline.fromElement=function(t,e,i){if(!t)return e(null);i||(i={});var r=n.parsePointsAttribute(t.getAttribute("points")),o=n.parseAttributes(t,n.Polyline.ATTRIBUTE_NAMES);e(new n.Polyline(r,n.util.object.extend(o,i)))},n.Polyline.fromObject=function(t,e){return n.Object._fromObject("Polyline",t,e,"points")})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend;n.Polygon?n.warn("fabric.Polygon is already defined"):(n.Polygon=n.util.createClass(n.Polyline,{type:"polygon",_render:function(t){this.commonRender(t)&&(t.closePath(),this._renderPaintInOrder(t))},_renderDashedStroke:function(t){this.callSuper("_renderDashedStroke",t),t.closePath()}}),n.Polygon.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat(),n.Polygon.fromElement=function(t,e,r){if(!t)return e(null);r||(r={});var o=n.parsePointsAttribute(t.getAttribute("points")),a=n.parseAttributes(t,n.Polygon.ATTRIBUTE_NAMES);e(new n.Polygon(o,i(a,r)))},n.Polygon.fromObject=function(t,e){return n.Object._fromObject("Polygon",t,e,"points")})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.array.min,r=n.util.array.max,o=n.util.object.extend,a=Object.prototype.toString,s=n.util.drawArc,l={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},u={m:"l",M:"L"};n.Path?n.warn("fabric.Path is already defined"):(n.Path=n.util.createClass(n.Object,{type:"path",path:null,cacheProperties:n.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:n.Object.prototype.stateProperties.concat("path"),initialize:function(t,e){this.callSuper("initialize",e=e||{}),t||(t=[]);var n="[object Array]"===a.call(t);this.path=n?t:t.match&&t.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi),this.path&&(n||(this.path=this._parsePath()),this._setPositionDimensions(e))},_setPositionDimensions:function(t){var e=this._parseDimensions();this.width=e.width,this.height=e.height,void 0===t.left&&(this.left=e.left),void 0===t.top&&(this.top=e.top),this.pathOffset=this.pathOffset||{x:e.left+this.width/2,y:e.top+this.height/2}},_renderPathCommands:function(t){var e,n,i,r=null,o=0,a=0,l=0,u=0,c=0,h=0,d=-this.pathOffset.x,p=-this.pathOffset.y;t.beginPath();for(var f=0,g=this.path.length;f<g;++f){switch((e=this.path[f])[0]){case"l":t.lineTo((l+=e[1])+d,(u+=e[2])+p);break;case"L":t.lineTo((l=e[1])+d,(u=e[2])+p);break;case"h":t.lineTo((l+=e[1])+d,u+p);break;case"H":t.lineTo((l=e[1])+d,u+p);break;case"v":t.lineTo(l+d,(u+=e[1])+p);break;case"V":t.lineTo(l+d,(u=e[1])+p);break;case"m":o=l+=e[1],a=u+=e[2],t.moveTo(l+d,u+p);break;case"M":o=l=e[1],a=u=e[2],t.moveTo(l+d,u+p);break;case"c":t.bezierCurveTo(l+e[1]+d,u+e[2]+p,(c=l+e[3])+d,(h=u+e[4])+p,(n=l+e[5]
1)+d,(i=u+e[6])+p),l=n,u=i;break;case"C":t.bezierCurveTo(e[1]+d,e[2]+p,(c=e[3])+d,(h=e[4])+p,(l=e[5])+d,(u=e[6])+p);break;case"s":n=l+e[3],i=u+e[4],null===r[0].match(/[CcSs]/)?(c=l,h=u):(c=2*l-c,h=2*u-h),t.bezierCurveTo(c+d,h+p,l+e[1]+d,u+e[2]+p,n+d,i+p),c=l+e[1],h=u+e[2],l=n,u=i;break;case"S":n=e[3],i=e[4],null===r[0].match(/[CcSs]/)?(c=l,h=u):(c=2*l-c,h=2*u-h),t.bezierCurveTo(c+d,h+p,e[1]+d,e[2]+p,n+d,i+p),l=n,u=i,c=e[1],h=e[2];break;case"q":t.quadraticCurveTo((c=l+e[1])+d,(h=u+e[2])+p,(n=l+e[3])+d,(i=u+e[4])+p),l=n,u=i;break;case"Q":t.quadraticCurveTo(e[1]+d,e[2]+p,(n=e[3])+d,(i=e[4])+p),l=n,u=i,c=e[1],h=e[2];break;case"t":n=l+e[1],i=u+e[2],null===r[0].match(/[QqTt]/)?(c=l,h=u):(c=2*l-c,h=2*u-h),t.quadraticCurveTo(c+d,h+p,n+d,i+p),l=n,u=i;break;case"T":n=e[1],i=e[2],null===r[0].match(/[QqTt]/)?(c=l,h=u):(c=2*l-c,h=2*u-h),t.quadraticCurveTo(c+d,h+p,n+d,i+p),l=n,u=i;break;case"a":s(t,l+d,u+p,[e[1],e[2],e[3],e[4],e[5],e[6]+l+d,e[7]+u+p]),l+=e[6],u+=e[7];break;case"A":s(t,l+d,u+p,[e[1],e[2],e[3],e[4],e[5],e[6]+d,e[7]+p]),l=e[6],u=e[7];break;case"z":case"Z":l=o,u=a,t.closePath()}r=e}},_render:function(t){this._renderPathCommands(t),this._renderPaintInOrder(t)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(t){return o(this.callSuper("toObject",t),{path:this.path.map(function(t){return t.slice()}
1),top:this.top,left:this.left})},toDatalessObject:function(t){var e=this.toObject(["sourcePath"].concat(t));return e.sourcePath&&delete e.path,e},toSVG:function(t){for(var e,n=[],i=this._createBaseSVGMarkup(),r=0,o=this.path.length;r<o;r++)n.push(this.path[r].join(" "));var a=n.join(" ");return e=" translate("+-this.pathOffset.x+", "+-this.pathOffset.y+") ",i.push("<path ",this.getSvgId(),'d="',a,'" style="',this.getSvgStyles(),'" transform="',this.getSvgTransform(),e,this.getSvgTransformMatrix(),'" stroke-linecap="round" ',this.addPaintOrder(),"/>\n"),t?t(i.join("")):i.join("")},complexity:function(){return this.path.length},_parsePath:function(){for(var t,e,n,i,r,o=[],a=[],s=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,c=0,h=this.path.length;c<h;c++){for(i=(t=this.path[c]).slice(1).trim(),a.length=0;n=s.exec(i);)a.push(n[0]);r=[t.charAt(0)];for(var d=0,p=a.length;d<p;d++)e=parseFloat(a[d]),isNaN(e)||r.push(e);var f=r[0],g=l[f.toLowerCase()],m=u[f]||f;if(r.length-1>g)for(var v=1,y=r.length;v<y;v+=g)o.push([f].concat(r.slice(v,v+g))),f=m;else o.push(r)}return o},_parseDimensions:function(){for(var t,e,o,a,s=[],l=[],u=null,c=0,h=0,d=0,p=0,f=0,g=0,m=0,v=this.path.length;m<v;++m){switch((t=this.path[m])[0]){case"l":d+=t[1],p+=t[2],a=[];break;case"L":d=t[1],p=t[2],a=[];break;case"h":d+=t[1],a=[];break;case"H":d=t[1],a=[];break;case"v":p+=t[1],a=[];break;case"V":p=t[1],a=[];break;case"m":c=d+=t[1],h=p+=t[2],a=[];break;case"M":c=d=t[1],h=p=t[2],a=[];break;case"c":a=n.util.getBoundsOfCurve(d,p,d+t[1],p+t[2],f=d+t[3],g=p+t[4],e=d+t[5],o=p+t[6]),d=e,p=o;break;case"C":a=n.util.getBoundsOfCurve(d,p,t[1],t[2],f=t[3],g=t[4],t[5],t[6]),d=t[5],p=t[6];break;case"s":e=d+t[3],o=p+t[4],null===u[0].match(/[CcSs]/)?(f=d,g=p):(f=2*d-f,g=2*p-g),a=n.util.getBoundsOfCurve(d,p,f,g,d+t[1],p+t[2],e,o),f=d+t[1],g=p+t[2],d=e,p=o;break;case"S":e=t[3],o=t[4],null===u[0].match(/[CcSs]/)?(f=d,g=p):(f=2*d-f,g=2*p-g),a=n.util.getBoundsOfCurve(d,p,f,g,t[1],t[2],e,o),d=e,p=o,f=t[1],g=t[2];break;case"q":a=n.util.getBoundsOfCurve(d,p,f=d+t[1],g=p+t[2],f,g,e=d+t[3],o=p+t[4]),d=e,p=o;break;case"Q":a=n.util.getBoundsOfCurve(d,p,f=t[1],g=t[2],f,g,t[3],t[4]),d=t[3],p=t[4];break;case"t":e=d+t[1],o=p+t[2],null===u[0].match(/[QqTt]/)?(f=d,g=p):(f=2*d-f,g=2*p-g),a=n.util.getBoundsOfCurve(d,p,f,g,f,g,e,o),d=e,p=o;break;case"T":e=t[1],o=t[2],null===u[0].match(/[QqTt]/)?(f=d,g=p):(f=2*d-f,g=2*p-g),a=n.util.getBoundsOfCurve(d,p,f,g,f,g,e,o),d=e,p=o;break;case"a":a=n.util.getBoundsOfArc(d,p,t[1],t[2],t[3],t[4],t[5],t[6]+d,t[7]+p),d+=t[6],p+=t[7];break;case"A":a=n.util.getBoundsOfArc(d,p,t[1],t[2],t[3],t[4],t[5],t[6],t[7]),d=t[6],p=t[7];break;case"z":case"Z":d=c,p=h}u=t,a.forEach(function(t){s.push(t.x),l.push(t.y)}),s.push(d),l.push(p)}
1var y=i(s)||0,b=i(l)||0;return{left:y,top:b,width:(r(s)||0)-y,height:(r(l)||0)-b}}}),n.Path.fromObject=function(t,e){"string"==typeof t.sourcePath?n.loadSVGFromURL(t.sourcePath,function(n){var i=n[0];i.setOptions(t),e&&e(i)}):n.Object._fromObject("Path",t,e,"path")},n.Path.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat(["d"]),n.Path.fromElement=function(t,e,i){var r=n.parseAttributes(t,n.Path.ATTRIBUTE_NAMES);e(new n.Path(r.d,o(r,i)))})}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend,r=n.util.array.min,o=n.util.array.max;n.Group||(n.Group=n.util.createClass(n.Object,n.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(t,e,n){e=e||{},this._objects=[],n&&this.callSuper("initialize",e),this._objects=t||[];for(var i=this._objects.length;i--;)this._objects[i].group=this;if(e.originX&&(this.originX=e.originX),e.originY&&(this.originY=e.originY),n)this._updateObjectsACoords();else{var r=e&&e.centerPoint;r||this._calcBounds(),this._updateObjectsCoords(r),delete e.centerPoint,this.callSuper("initialize",e)}this.setCoords()},_updateObjectsACoords:function(){for(var t=this._objects.length;t--;)this._objects[t].setCoords(!0,!0)},_updateObjectsCoords:function(t){t=t||this.getCenterPoint();for(var e=this._objects.length;e--;)this._updateObjectCoords(this._objects[e],t)},_updateObjectCoords:function(t,e){t.set({left:t.left-e.x,top:t.top-e.y}),t.group=this,t.setCoords(!0,!0)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(t){return this._restoreObjectsState(),n.util.resetObjectTransform(this),t&&(this._objects.push(t),t.group=this,t._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},removeWithUpdate:function(t){return this._restoreObjectsState(),n.util.resetObjectTransform(this),this.remove(t),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(t){this.dirty=!0,t.group=this,t._set("canvas",this.canvas)},_onObjectRemoved:function(t){this.dirty=!0,delete t.group},_set:function(t,e){var n=this._objects.length;if(this.useSetOnGroup)for(;n--;)this._objects[n].setOnGroup(t,e);if("canvas"===t)for(n=this._objects.length;n--;)this._objects[n]._set(t,e);this.callSuper("_set",t,e)},toObject:function(t){var e=this.getObjects().map(function(e){var n=e.includeDefaultValues;e.includeDefaultValues=e.group.includeDefaultValues;var i=e.toObject(t);return e.includeDefaultValues=n,i});return i(this.callSuper("toObject",t),{objects:e})},toDatalessObject:function(t){var e;return e=this.sourcePath||this.getObjects().map(function(e){var n=e.includeDefaultValues;e.includeDefaultValues=e.group.includeDefaultValues;var i=e.toDatalessObject(t);return e.includeDefaultValues=n,i}),i(this.callSuper("toDatalessObject",t),{objects:e})},render:function(t){this._transformDone=!0,this.callSuper("render",t),this._transformDone=!1},shouldCache:function(){var t=this.objectCaching&&(!this.group||this.needsItsOwnCache()||!this.group.isOnACache());if(this.ownCaching=t,t)for(var e=0,n=this._objects.length;e<n;e++)if(this._objects[e].willDrawShadow())return this.ownCaching=!1,!1;return t},willDrawShadow:function(){if(this.shadow)return this.callSuper("willDrawShadow");for(var t=0,e=this._objects.length;t<e;t++)if(this._objects[t].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(t){for(var e=0,n=this._objects.length;e<n;e++)this._objects[e].render(t)},isCacheDirty:function(){if(this.callSuper("isCacheDirty"))return!0;if(!this.statefullCache)return!1;for(var t=0,e=this._objects.length;t<e;t++)if(this._objects[t].isCacheDirty(!0)){if(this._cacheCanvas){var n=this.cacheWidth/this.zoomX,i=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-n/2,-i/2,n,i)}return!0}return!1},_restoreObjectsState:function(){return this._objects.forEach(this._restoreObjectState,this),this},realizeTransform:function(t){var e=t.calcTransformMatrix(),i=n.util.qrDecompose(e),r=new n.Point(i.translateX,i.translateY);return t.flipX=!1,t.flipY=!1,t.set("scaleX",i.scaleX),t.set("scaleY",i.scaleY),t.skewX=i.skewX,t.skewY=i.skewY,t.angle=i.angle,t.setPositionByOrigin(r,"center","center"),t},_restoreObjectState:function(t){return this.realizeTransform(t),t.setCoords(),delete t.group,this}
1,destroy:function(){return this._objects.forEach(function(t){t.set("dirty",!0)}),this._restoreObjectsState()},toActiveSelection:function(){if(this.canvas){var t=this._objects,e=this.canvas;this._objects=[];var i=this.toObject();delete i.objects;var r=new n.ActiveSelection([]);return r.set(i),r.type="activeSelection",e.remove(this),t.forEach(function(t){t.group=r,t.dirty=!0,e.add(t)}),r.canvas=e,r._objects=t,e._activeObject=r,r.setCoords(),r}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){return this.forEachObject(function(t){t.setCoords(!0,!0)}),this},_calcBounds:function(t){for(var e,n,i,r=[],o=[],a=["tr","br","bl","tl"],s=0,l=this._objects.length,u=a.length;s<l;++s)for((e=this._objects[s]).setCoords(!0),i=0;i<u;i++)r.push(e.oCoords[n=a[i]].x),o.push(e.oCoords[n].y);this.set(this._getBounds(r,o,t))},_getBounds:function(t,e,i){var a=new n.Point(r(t),r(e)),s=new n.Point(o(t),o(e)),l={width:s.x-a.x||0,height:s.y-a.y||0};return i||(l.left=a.x||0,l.top=a.y||0,"center"===this.originX&&(l.left+=l.width/2),"right"===this.originX&&(l.left+=l.width),"center"===this.originY&&(l.top+=l.height/2),"bottom"===this.originY&&(l.top+=l.height)),l},toSVG:function(t){var e=this._createBaseSVGMarkup();e.push("<g ",this.getSvgId(),'transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'" style="',this.getSvgFilter(),'">\n');for(var n=0,i=this._objects.length;n<i;n++)e.push("\t",this._objects[n].toSVG(t));return e.push("</g>\n"),t?t(e.join("")):e.join("")}}),n.Group.fromObject=function(t,e){n.util.enlivenObjects(t.objects,function(i){var r=n.util.object.clone(t,!0);delete r.objects,e&&e(new n.Group(i,r,!0))})})}(),function(t){"use strict";var n=e.fabric||(e.fabric={});n.ActiveSelection||(n.ActiveSelection=n.util.createClass(n.Group,{type:"activeSelection",initialize:function(t,e){e=e||{},this._objects=t||[];for(var i=this._objects.length;i--;)this._objects[i].group=this;e.originX&&(this.originX=e.originX),e.originY&&(this.originY=e.originY),this._calcBounds(),this._updateObjectsCoords(),n.Object.prototype.initialize.call(this,e),this.setCoords()},toGroup:function(){var t=this._objects;this._objects=[];var e=this.toObject(),i=new n.Group([]);if(delete e.objects,i.set(e),i.type="group",t.forEach(function(t){t.group=i,t.canvas.remove(t)}),i._objects=t,!this.canvas)return i;var r=this.canvas;return r.add(i),r._activeObject=i,i.setCoords(),i},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},_set:function(t,e){var i=this._objects.length;if("canvas"===t)for(;i--;)this._objects[i].set(t,e);if(this.useSetOnGroup)for(;i--;)this._objects[i].setOnGroup(t,e);n.Object.prototype._set.call(this,t,e)},shouldCache:function(){return!1},willDrawShadow:function(){if(this.shadow)return this.callSuper("willDrawShadow");for(var t=0,e=this._objects.length;t<e;t++)if(this._objects[t].willDrawShadow())return!0;return!1},isOnACache:function(){return!1},_renderControls:function(t,e,n){t.save(),t.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",t,e),void 0===(n=n||{}).hasControls&&(n.hasControls=!1),void 0===n.hasRotatingPoint&&(n.hasRotatingPoint=!1),n.forActiveSelection=!0;for(var i=0,r=this._objects.length;i<r;i++)this._objects[i]._renderControls(t,n);t.restore()}}),n.ActiveSelection.fromObject=function(t,e){n.util.enlivenObjects(t.objects,function(i){delete t.objects,e&&e(new n.ActiveSelection(i,t,!0))})})}(),function(t){"use strict";var e=C.util.object.extend;t.fabric||(t.fabric={}),t.fabric.Image?C.warn("fabric.Image is already defined."):(C.Image=C.util.createClass(C.Object,{type:"image",crossOrigin:"",strokeWidth:0,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:C.Object.prototype.stateProperties.concat("cropX","cropY"),objectCaching:!1,cacheKey:"",cropX:0,cropY:0,initialize:function(t,e){e||(e={}),this.filters=[],this.cacheKey="texture"+C.Object.__uid++,this.callSuper("initialize",e),this._initElement(t,e)},getElement:function(){return this._element},setElement:function(t,e){var n=C.filterBackend;
1return n&&n.evictCachesForKey&&(n.evictCachesForKey(this.cacheKey),n.evictCachesForKey(this.cacheKey+"_filtered")),this._element=t,this._originalElement=t,this._initConfig(e),this.resizeFilter&&this.applyResizeFilters(),0!==this.filters.length&&this.applyFilters(),this},dispose:function(){var t=C.filterBackend;t&&t.evictCachesForKey&&(t.evictCachesForKey(this.cacheKey),t.evictCachesForKey(this.cacheKey+"_filtered")),this._originalElement=void 0,this._element=void 0,this._filteredEl=void 0},setCrossOrigin:function(t){return this.crossOrigin=t,this._element.crossOrigin=t,this},getOriginalSize:function(){var t=this.getElement();return{width:t.width,height:t.height}},_stroke:function(t){if(this.stroke&&0!==this.strokeWidth){var e=this.width/2,n=this.height/2;t.beginPath(),t.moveTo(-e,-n),t.lineTo(e,-n),t.lineTo(e,n),t.lineTo(-e,n),t.lineTo(-e,-n),t.closePath()}},_renderDashedStroke:function(t){var e=-this.width/2,n=-this.height/2,i=this.width,r=this.height;t.save(),this._setStrokeStyles(t,this),t.beginPath(),C.util.drawDashedLine(t,e,n,e+i,n,this.strokeDashArray),C.util.drawDashedLine(t,e+i,n,e+i,n+r,this.strokeDashArray),C.util.drawDashedLine(t,e+i,n+r,e,n+r,this.strokeDashArray),C.util.drawDashedLine(t,e,n+r,e,n,this.strokeDashArray),t.closePath(),t.restore()},toObject:function(t){var n=[];this.filters.forEach(function(t){t&&n.push(t.toObject())});var i=e(this.callSuper("toObject",["crossOrigin","cropX","cropY"].concat(t)),{src:this.getSrc(),filters:n});return this.resizeFilter&&(i.resizeFilter=this.resizeFilter.toObject()),i},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},toSVG:function(t){var e=this._createBaseSVGMarkup(),n=-this.width/2,i=-this.height/2,r="";if(this.hasCrop()){var o=C.Object.__uid++;e.push('<clipPath id="imageCrop_'+o+'">\n','\t<rect x="'+n+'" y="'+i+'" width="'+this.width+'" height="'+this.height+'" />\n',"</clipPath>\n"),r=' clip-path="url(#imageCrop_'+o+')" '}e.push('<g transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'">\n');var a=["\t<image ",this.getSvgId(),'xlink:href="',this.getSvgSrc(!0),'" x="',n-this.cropX,'" y="',i-this.cropY,'" style="',this.getSvgStyles(),'" width="',this._element.width||this._element.naturalWidth,'" height="',this._element.height||this._element.height,'"',r,"></image>\n"];if("fill"===this.paintFirst&&Array.prototype.push.apply(e,a),this.stroke||this.strokeDashArray){var s=this.fill;this.fill=null,e.push("\t<rect ",'x="',n,'" y="',i,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),'"/>\n'),this.fill=s}return"fill"!==this.paintFirst&&Array.prototype.push.apply(e,a),e.push("</g>\n"),t?t(e.join("")):e.join("")},getSrc:function(t){var e=t?this._element:this._originalElement;return e?e.toDataURL?e.toDataURL():e.src:this.src||""},setSrc:function(t,e,n){return C.util.loadImage(t,function(t){this.setElement(t,n),this._setWidthHeight(),e(this)},this,n&&n.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var t=this.resizeFilter,e=this.canvas?this.canvas.getRetinaScaling():1,n=this.minimumScaleTrigger,i=this.scaleX*e,r=this.scaleY*e,o=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!t||i>n&&r>n)return this._element=o,this._filterScalingX=1,void(this._filterScalingY=1);C.filterBackend||(C.filterBackend=C.initFilterBackend());var a=C.util.createCanvasElement(),s=this._filteredEl?this.cacheKey:this.cacheKey+"_filtered",l=o.width,u=o.height;a.width=l,a.height=u,this._element=a,t.scaleX=i,t.scaleY=r,C.filterBackend.applyFilters([t],o,l,u,this._element,s),this._filterScalingX=a.width/this._originalElement.width,this._filterScalingY=a.height/this._originalElement.height},applyFilters:function(t){if(t=(t=t||this.filters||[]).filter(function(t){return t}),this.group&&this.set("dirty",!0),0===t.length)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var e=this._originalElement,n=e.naturalWidth||e.width,i=e.naturalHeight||e.height;if(this._element===this._originalElement){var r=C.util.createCanvasElement();
1r.width=n,r.height=i,this._element=r,this._filteredEl=r}else this._element.getContext("2d").clearRect(0,0,n,i);return C.filterBackend||(C.filterBackend=C.initFilterBackend()),C.filterBackend.applyFilters(t,this._originalElement,n,i,this._element,this.cacheKey),this._originalElement.width===this._element.width&&this._originalElement.height===this._element.height||(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(t){!1===this.isMoving&&this.resizeFilter&&this._needsResize()&&(this._lastScaleX=this.scaleX,this._lastScaleY=this.scaleY,this.applyResizeFilters()),this._stroke(t),this._renderPaintInOrder(t)},_renderFill:function(t){var e=this.width,n=this.height,i=this._element;i&&t.drawImage(i,this.cropX*this._filterScalingX,this.cropY*this._filterScalingY,e*this._filterScalingX,n*this._filterScalingY,-e/2,-n/2,e,n)},_needsResize:function(){return this.scaleX!==this._lastScaleX||this.scaleY!==this._lastScaleY},_resetWidthHeight:function(){var t=this.getElement();this.set("width",t.width),this.set("height",t.height)},_initElement:function(t,e){this.setElement(C.util.getById(t),e),C.util.addClass(this.getElement(),C.Image.CSS_CANVAS)},_initConfig:function(t){t||(t={}),this.setOptions(t),this._setWidthHeight(t),this._element&&this.crossOrigin&&(this._element.crossOrigin=this.crossOrigin)},_initFilters:function(t,e){t&&t.length?C.util.enlivenObjects(t,function(t){e&&e(t)},"fabric.Image.filters"):e&&e()},_setWidthHeight:function(t){this.width=t&&"width"in t?t.width:this.getElement()&&this.getElement().width||0,this.height=t&&"height"in t?t.height:this.getElement()&&this.getElement().height||0},parsePreserveAspectRatioAttribute:function(){var t,e=C.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),n=this._element.width,i=this._element.height,r=1,o=1,a=0,s=0,l=0,u=0,c=this.width,h=this.height,d={width:c,height:h};return!e||"none"===e.alignX&&"none"===e.alignY?(r=c/n,o=h/i):("meet"===e.meetOrSlice&&(t=(c-n*(r=o=C.util.findScaleToFit(this._element,d)))/2,"Min"===e.alignX&&(a=-t),"Max"===e.alignX&&(a=t),t=(h-i*o)/2,"Min"===e.alignY&&(s=-t),"Max"===e.alignY&&(s=t)),"slice"===e.meetOrSlice&&(t=n-c/(r=o=C.util.findScaleToCover(this._element,d)),"Mid"===e.alignX&&(l=t/2),"Max"===e.alignX&&(l=t),t=i-h/o,"Mid"===e.alignY&&(u=t/2),"Max"===e.alignY&&(u=t),n=c/r,i=h/o)),{width:n,height:i,scaleX:r,scaleY:o,offsetLeft:a,offsetTop:s,cropX:l,cropY:u}}}),C.Image.CSS_CANVAS="canvas-img",C.Image.prototype.getSvgSrc=C.Image.prototype.getSrc,C.Image.fromObject=function(t,e){var n=C.util.object.clone(t);C.util.loadImage(n.src,function(t,i){i?e&&e(null,i):C.Image.prototype._initFilters.call(n,n.filters,function(i){n.filters=i||[],C.Image.prototype._initFilters.call(n,[n.resizeFilter],function(i){n.resizeFilter=i[0];var r=new C.Image(t,n);e(r)})})},null,n.crossOrigin)},C.Image.fromURL=function(t,e,n){C.util.loadImage(t,function(t){e&&e(new C.Image(t,n))},null,n&&n.crossOrigin)},C.Image.ATTRIBUTE_NAMES=C.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin".split(" ")),C.Image.fromElement=function(t,n,i){var r=C.parseAttributes(t,C.Image.ATTRIBUTE_NAMES);C.Image.fromURL(r["xlink:href"],n,e(i?C.util.object.clone(i):{},r))})}(e),C.util.object.extend(C.Object.prototype,{_getAngleValueForStraighten:function(){var t=this.angle%360;return t>0?90*Math.round((t-1)/90):90*Math.round(t/90)},straighten:function(){return this.rotate(this._getAngleValueForStraighten()),this},fxStraighten:function(t){var e=function(){},n=(t=t||{}).onComplete||e,i=t.onChange||e,r=this;return C.util.animate({startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(t){r.rotate(t),i()},onComplete:function(){r.setCoords(),n()}}),this}}),C.util.object.extend(C.StaticCanvas.prototype,{straightenObject:function(t){return t.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(t){return t.fxStraighten({onChange:this.requestRenderAllBound}),this}}),function(){"use strict";function t(t,e){var n="precision "+e+" float;\nvoid main(){}",i=t.createShader(t.FRAGMENT_SHADER);return t.shaderSource(i,n),t.compileShader(i),!!t.getShaderParameter(i,t.COMPILE_STATUS)}function e(t){t&&t.tileSize&&(this.tileSize=t.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}C.isWebglSupported=function(e){if(C.isLikelyNode)return!1;e=e||C.WebglFilterBackend.prototype.tileSize;var n=document.createElement("canvas"),i=n.getContext("webgl")||n.getContext("experimental-webgl"),r=!1;if(i){C.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),r=C.maxTextureSize>=e;for(var o=["highp","mediump","lowp"],a=0;a<3;a++)if(t(i,o[a])){C.webGlPrecision=o[a];break}}return this.isSupported=r,r},C.WebglFilterBackend=e,e.prototype={tileSize:2048,resources:{},setupGLContext:function(t,e){this.dispose(),this.createWebGLCanvas(t,e),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(t,e)},chooseFastestCopyGLTo2DMethod:function(t,e){var n,i=void 0!==window.performance;try{new ImageData(1,1),n=!0}catch(t){n=!1}var r="undefined"!=typeof ArrayBuffer,o="undefined"!=typeof Uint8ClampedArray;if(i&&n&&r&&o){var a,s,l=C.util.createCanvasElement(),u=new ArrayBuffer(t*e*4),c={imageBuffer:u,destinationWidth:t,destinationHeight:e,targetCanvas:l};l.width=t,l.height=e,a=window.performance.now(),S.call(c,this.gl,c),s=window.performance.now()-a,a=window.performance.now(),k.call(c,this.gl,c),s>window.performance.now()-a?(this.imageBuffer=u,this.copyGLTo2D=k):this.copyGLTo2D=S}},createWebGLCanvas:function(t,e){var n=C.util.createCanvasElement();n.width=t,n.height=e;var i={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},r=n.getContext("webgl",i);r||(r=n.getContext("experimental-webgl",i)),r&&(r.clearColor(0,0,0,0),this.canvas=n,this.gl=r)},applyFilters:function(t,e,n,i,r,o){var a,s=this.gl;o&&(a=this.getCachedTexture(o,e));var l={originalWidth:e.width||e.originalWidth,originalHeight:e.height||e.originalHeight,sourceW
1idth:n,sourceHeight:i,destinationWidth:n,destinationHeight:i,context:s,sourceTexture:this.createTexture(s,n,i,!a&&e),targetTexture:this.createTexture(s,n,i),originalTexture:a||this.createTexture(s,n,i,!a&&e),passes:t.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:r},u=s.createFramebuffer();return s.bindFramebuffer(s.FRAMEBUFFER,u),t.forEach(function(t){t&&t.applyTo(l)}),function(t){var e=t.targetCanvas,n=t.destinationWidth,i=t.destinationHeight;e.width===n&&e.height===i||(e.width=n,e.height=i)}(l),this.copyGLTo2D(s,l),s.bindTexture(s.TEXTURE_2D,null),s.deleteTexture(l.sourceTexture),s.deleteTexture(l.targetTexture),s.deleteFramebuffer(u),r.getContext("2d").setTransform(1,0,0,1,0,0),l},applyFiltersDebug:function(t,e,n,i,r,o){var a=this.gl,s=this.applyFilters(t,e,n,i,r,o),l=a.getError();if(l!==a.NO_ERROR){var u=this.glErrorToString(a,l),c=new Error("WebGL Error "+u);throw c.glErrorCode=l,c}return s},glErrorToString:function(t,e){if(!t)return"Context undefined for error code: "+e;if("number"!=typeof e)return"Error code is not a number";switch(e){case t.NO_ERROR:return"NO_ERROR";case t.INVALID_ENUM:return"INVALID_ENUM";case t.INVALID_VALUE:return"INVALID_VALUE";case t.INVALID_OPERATION:return"INVALID_OPERATION";case t.INVALID_FRAMEBUFFER_OPERATION:return"INVALID_FRAMEBUFFER_OPERATION";case t.OUT_OF_MEMORY:return"OUT_OF_MEMORY";case t.CONTEXT_LOST_WEBGL:return"CONTEXT_LOST_WEBGL";default:return"UNKNOWN_ERROR"}},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(t,e,n,i){var r=t.createTexture();return t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),i?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,i):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,n,0,t.RGBA,t.UNSIGNED_BYTE,null),r},getCachedTexture:function(t,e){if(this.textureCache[t])return this.textureCache[t];var n=this.createTexture(this.gl,e.width,e.height,e);return this.textureCache[t]=n,n},evictCachesForKey:function(t){this.textureCache[t]&&(this.gl.deleteTexture(this.textureCache[t]),delete this.textureCache[t])},copyGLTo2D:S,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var t=this.gl,e=t.getExtension("WEBGL_debug_renderer_info"),n={renderer:"",vendor:""};if(e){var i=t.getParameter(e.UNMASKED_RENDERER_WEBGL),r=t.getParameter(e.UNMASKED_VENDOR_WEBGL);i&&(n.renderer=i.toLowerCase()),r&&(n.vendor=r.toLowerCase())}return this.gpuInfo=n,n}}}(),function(){"use strict";var t=function(){};function e(){}C.Canvas2dFilterBackend=e,e.prototype={evictCachesForKey:t,dispose:t,clearWebGLCaches:t,resources:{},applyFilters:function(t,e,n,i,r){var o=r.getContext("2d");o.drawImage(e,0,0,n,i);var a={sourceWidth:n,sourceHeight:i,imageData:o.getImageData(0,0,n,i),originalEl:e,originalImageData:o.getImageData(0,0,n,i),canvasEl:r,ctx:o,filterBackend:this};return t.forEach(function(t){t.applyTo(a)}),a.imageData.width===n&&a.imageData.height===i||(r.width=a.imageData.width,r.height=a.imageData.height),o.putImageData(a.imageData,0,0),a}}}(),C.Image.filters=C.Image.filters||{},C.Image.filters.BaseFilter=C.util.createClass({type:"BaseFilter",vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvoid main() {\nvTexCoord = aPosition;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:"precision highp float;\nvarying vec2 vTexCoord;\nuniform sampler2D uTexture;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\n}",initialize:function(t){t&&this.setOptions(t)},setOptions:function(t){for(var e in t)this[e]=t[e]},createProgram:function(t,e,n){e=e||this.fragmentSource,n=n||this.vertexSource,"highp"!==C.webGlPrecision&&(e=e.replace(/precision highp float/g,"precision "+C.webGlPrecision+" float"));var i=t.createShader(t.VERTEX_SHADER);if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+t.getShaderInfoLog(i));var r=t.createShader(t.FRAGMENT_SHADER);if(t.shaderSource(r,e),t.compileShader(r),!t.getShaderParameter(r,t.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+t.getShaderInfoLog(r));var o=t.createProgram();if(t.attachShader(o,i),t.attachShader(o,r),t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+t.getProgramInfoLog(o));var a=this.getAttributeLocations(t,o),s=this.getUniformLocations(t,o)||{};return s.uStepW=t.getUniformLocation(o,"uStepW"),s.uStepH=t.getUniformLocation(o,"uStepH"),{program:o,attributeLocations:a,uniformLocations:s}},getAttributeLocations:function(t,e){return{aPosition:t.getAttribLocation(e,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(t,e,n){var i=e.aPosition,r=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,r),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,2,t.FLOAT,!1,0,0),t.bufferData(t.ARRAY_BUFFER,n,t.STATIC_DRAW)},_setupFrameBuffer:function(t){var e,n,i=t.context;t.passes>
11?(n=t.destinationHeight,t.sourceWidth===(e=t.destinationWidth)&&t.sourceHeight===n||(i.deleteTexture(t.targetTexture),t.targetTexture=t.filterBackend.createTexture(i,e,n)),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,t.targetTexture,0)):(i.bindFramebuffer(i.FRAMEBUFFER,null),i.finish())},_swapTextures:function(t){t.passes--,t.pass++;var e=t.targetTexture;t.targetTexture=t.sourceTexture,t.sourceTexture=e},isNeutralState:function(){return!1},applyTo:function(t){if(t.webgl){if(t.passes>1&&this.isNeutralState(t))return;this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t)}else this.isNeutralState()||this.applyTo2d(t)},retrieveShader:function(t){return t.programCache.hasOwnProperty(this.type)||(t.programCache[this.type]=this.createProgram(t.context)),t.programCache[this.type]},applyToWebGL:function(t){var e=t.context,n=this.retrieveShader(t);e.bindTexture(e.TEXTURE_2D,0===t.pass&&t.originalTexture?t.originalTexture:t.sourceTexture),e.useProgram(n.program),this.sendAttributeData(e,n.attributeLocations,t.aPosition),e.uniform1f(n.uniformLocations.uStepW,1/t.sourceWidth),e.uniform1f(n.uniformLocations.uStepH,1/t.sourceHeight),this.sendUniformData(e,n.uniformLocations),e.viewport(0,0,t.destinationWidth,t.destinationHeight),e.drawArrays(e.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(t,e,n){t.activeTexture(n),t.bindTexture(t.TEXTURE_2D,e),t.activeTexture(t.TEXTURE0)},unbindAdditionalTexture:function(t,e){t.activeTexture(e),t.bindTexture(t.TEXTURE_2D,null),t.activeTexture(t.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(t){this[this.mainParameter]=t},sendUniformData:function(){},createHelpLayer:function(t){if(!t.helpLayer){var e=document.createElement("canvas");e.width=t.sourceWidth,e.height=t.sourceHeight,t.helpLayer=e}},toObject:function(){var t={type:this.type},e=this.mainParameter;return e&&(t[e]=this[e]),t},toJSON:function(){return this.toObject()}}),C.Image.filters.BaseFilter.fromObject=function(t,e){var n=new C.Image.filters[t.type](t);return e&&e(n),n},function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.ColorMatrix=(0,n.util.createClass)(i.BaseFilter,{type:"ColorMatrix",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nuniform mat4 uColorMatrix;\nuniform vec4 uConstants;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor *= uColorMatrix;\ncolor += uConstants;\ngl_FragColor = color;\n}",matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(t){this.callSuper("initialize",t),this.matrix=this.matrix.slice(0)},isNeutralState:function(){for(var t=i.ColorMatrix,e=20;e--;)if(this.matrix[e]!==t.prototype.matrix[e])return!1;return!0},applyTo2d:function(t){var e,n,i,r,o,a=t.imageData.data,s=a.length,l=this.matrix,u=this.colorsOnly;for(o=0;o<s;o+=4)e=a[o],n=a[o+1],i=a[o+2],u?(a[o]=e*l[0]+n*l[1]+i*l[2]+255*l[4],a[o+1]=e*l[5]+n*l[6]+i*l[7]+255*l[9],a[o+2]=e*l[10]+n*l[11]+i*l[12]+255*l[14]):(a[o]=e*l[0]+n*l[1]+i*l[2]+(r=a[o+3])*l[3]+255*l[4],a[o+1]=e*l[5]+n*l[6]+i*l[7]+r*l[8]+255*l[9],a[o+2]=e*l[10]+n*l[11]+i*l[12]+r*l[13]+255*l[14],a[o+3]=e*l[15]+n*l[16]+i*l[17]+r*l[18]+255*l[19])},getUniformLocations:function(t,e){return{uColorMatrix:t.getUniformLocation(e,"uColorMatrix"),uConstants:t.getUniformLocation(e,"uConstants")}},sendUniformData:function(t,e){var n=this.matrix,i=[n[4],n[9],n[14],n[19]];t.uniformMatrix4fv(e.uColorMatrix,!1,[n[0],n[1],n[2],n[3],n[5],n[6],n[7],n[8],n[10],n[11],n[12],n[13],n[15],n[16],n[17],n[18]]),t.uniform4fv(e.uConstants,i)}}),n.Image.filters.ColorMatrix.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Brightness=(0,n.util.createClass)(i.BaseFilter,{type:"Brightness",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBrightness;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += uBrightness;\ngl_FragColor = color;\n}",brightness:0,mainParameter:"brightness",applyTo2d:function(t){if(0!==this.brightness){var e,n=t.
1imageData.data,i=n.length,r=Math.round(255*this.brightness);for(e=0;e<i;e+=4)n[e]=n[e]+r,n[e+1]=n[e+1]+r,n[e+2]=n[e+2]+r}},getUniformLocations:function(t,e){return{uBrightness:t.getUniformLocation(e,"uBrightness")}},sendUniformData:function(t,e){t.uniform1f(e.uBrightness,this.brightness)}}),n.Image.filters.Brightness.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend,r=n.Image.filters;r.Convolute=(0,n.util.createClass)(r.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_3_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[9];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 3.0; h+=1.0) {\nfor (float w = 0.0; w < 3.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_5_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_5_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[25];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 5.0; h+=1.0) {\nfor (float w = 0.0; w < 5.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_7_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_7_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[49];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 7.0; h+=1.0) {\nfor (float w = 0.0; w < 7.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}",Convolute_9_1:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 0);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];\n}\n}\ngl_FragColor = color;\n}",Convolute_9_0:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uMatrix[81];\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = vec4(0, 0, 0, 1);\nfor (float h = 0.0; h < 9.0; h+=1.0) {\nfor (float w = 0.0; w < 9.0; w+=1.0) {\nvec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));\ncolor.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];\n}\n}\nfloat alpha = texture2D(uTexture, vTexCoord).a;\ngl_FragColor = color;\ngl_FragColor.a = alpha;\n}"},retrieveShader:function(t){var e=Math.sqrt(this.matrix.length),n=this.type+"_"+e+"_"+(this.opaque?1:0),i=this.fragmentSource[n];return t.programCache.hasOwnProperty(n)||(t.programCache[n]=this.createProgram(t.context,i)),t.programCache[n]},applyTo2d:function(t){var e,n,i,r,o,a,s,l,u,c,h,d,p,f=t.imageData,g=f.data,m=this.matrix,v=Math.round(Math.sqrt(m.length)),y=Math.floor(v/2),b=f.width,_=f.height,w=t.ctx.createImageData(b,_),x=w.data,C=this.opaque?1:0;for(h=0;h<_;h++)for(c=0;c<b;c++){for(o=4*(h*b+c),e=0,n=0,i=0,r=0,p=0;p<v;p++)for(d=0;d<v;d++)a=c+d-y,(s=h+p-y)<0||s>_||a<0||a>b||(e+=g[l=4*(s*b+a)]*(u=m[p*v+d]),n+=g[l+1]*u,i+=g[l+2]*u,C||(r+=g[l+3]*u));x[o]=e,x[o+1]=n,x[o+2]=i,x[o+3]=C?g[o+3]:r}t.imageData=w},getUniformLocations:function(t,e){return{uMatrix:t.getUniformLocation(e,"uMatrix"),uOpaque:t.getUniformLocation(e,"uOpaque"),uHalfSize:t.getUniformLocation(e,"uHalfSize"),uSize:t.getUniformLocation(e,"uSize")}},sendUniformData:function(t,e){t.uniform1fv(e.uMatrix,this.matrix
1)},toObject:function(){return i(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),n.Image.filters.Convolute.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Grayscale=(0,n.util.createClass)(i.BaseFilter,{type:"Grayscale",fragmentSource:{average:"precision highp float;\nuniform sampler2D uTexture;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat average = (color.r + color.b + color.g) / 3.0;\ngl_FragColor = vec4(average, average, average, color.a);\n}",lightness:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;\ngl_FragColor = vec4(average, average, average, col.a);\n}",luminosity:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uMode;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 col = texture2D(uTexture, vTexCoord);\nfloat average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;\ngl_FragColor = vec4(average, average, average, col.a);\n}"},mode:"average",mainParameter:"mode",applyTo2d:function(t){var e,n,i=t.imageData.data,r=i.length,o=this.mode;for(e=0;e<r;e+=4)"average"===o?n=(i[e]+i[e+1]+i[e+2])/3:"lightness"===o?n=(Math.min(i[e],i[e+1],i[e+2])+Math.max(i[e],i[e+1],i[e+2]))/2:"luminosity"===o&&(n=.21*i[e]+.72*i[e+1]+.07*i[e+2]),i[e]=n,i[e+1]=n,i[e+2]=n},retrieveShader:function(t){var e=this.type+"_"+this.mode;return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,this.fragmentSource[this.mode])),t.programCache[e]},getUniformLocations:function(t,e){return{uMode:t.getUniformLocation(e,"uMode")}},sendUniformData:function(t,e){t.uniform1i(e.uMode,1)}}),n.Image.filters.Grayscale.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Invert=(0,n.util.createClass)(i.BaseFilter,{type:"Invert",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform int uInvert;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nif (uInvert == 1) {\ngl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);\n} else {\ngl_FragColor = color;\n}\n}",invert:!0,mainParameter:"invert",applyTo2d:function(t){if(this.invert){var e,n=t.imageData.data,i=n.length;for(e=0;e<i;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]}},getUniformLocations:function(t,e){return{uInvert:t.getUniformLocation(e,"uInvert")}},sendUniformData:function(t,e){t.uniform1i(e.uInvert,this.invert)}}),n.Image.filters.Invert.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.extend,r=n.Image.filters;r.Noise=(0,n.util.createClass)(r.BaseFilter,{type:"Noise",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uStepH;\nuniform float uNoise;\nuniform float uSeed;\nvarying vec2 vTexCoord;\nfloat rand(vec2 co, float seed, float vScale) {\nreturn fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);\n}\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ncolor.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;\ngl_FragColor = color;\n}",mainParameter:"noise",noise:0,applyTo2d:function(t){if(0!==this.noise){var e,n,i,r=t.imageData.data,o=this.noise;for(e=0,n=r.length;e<n;e+=4)i=(.5-Math.random())*o,r[e]+=i,r[e+1]+=i,r[e+2]+=i}},getUniformLocations:function(t,e){return{uNoise:t.getUniformLocation(e,"uNoise"),uSeed:t.getUniformLocation(e,"uSeed")}},sendUniformData:function(t,e){t.uniform1f(e.uNoise,this.noise/255),t.uniform1f(e.uSeed,Math.random())},toObject:function(){return i(this.callSuper("toObject"),{noise:this.noise})}}),n.Image.filters.Noise.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Pixelate=(0,n.util.createClass)(i.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uBlocksize;\nuniform float uStepW;\nuniform float uStepH;\nvarying vec2 vTexCoord;\nvoid main() {\nfloat blockW = uBlocksize * uStepW;\nfloat blockH = uBlocksize * uStepW;\nint posX = int(vTexCoord.x / blockW);\nint posY = int(vTexCoord.y / blockH);\nfloat fposX = float(posX);\nfloat fposY = float(posY);\nvec2 squareCoords = vec2(fposX * blockW, fposY * blockH);\nvec4 color = texture2D(uTexture, squareCoords);\ngl_FragColor = color;\n}",applyTo2d:function(t){if(1!==this.blocksize){var e,n,i,r,o,a,s,l,u,c,h,d=t.imageData,p=d.data,f=d.height,g=d.width;for(n=0;n<f;n+=this.blocksize)for(i=0;i<g;i+=this.blocksize)for(r=p[e=4*n*g+4*i],o=p[e+1],a=p[e+2],s=p[e+3],c=Math.min(n+this.blocksize,f),h=Math.min(i+this.blocksize,g),l=n;l<c;l++)for(u=i;u<h;u++)p[e=4*l*g+4*u]=r,p[e+1]=o,p[e+2]=a,p[e+3]=s}},isNeutralState:function(){return 1===this.blocksize},getUniformLocations:function(t,e){return{uBlocksize:t.getUniformLocation(e,"uBlocksize"),uStepW:t.getUniformLocation(e,"uStepW"),uStepH:t.getUniformLocation(e,"uStepH")}},sendUniformData:function(t,e){t.uniform1f(e.uBlocksize,this.blocksize)}}),n.Image.filters.Pixelate.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}
vendor: 5,247 bytes, line 1
1),i=n.util.object.extend,r=n.Image.filters;r.RemoveColor=(0,n.util.createClass)(r.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uLow;\nuniform vec4 uHigh;\nvarying vec2 vTexCoord;\nvoid main() {\ngl_FragColor = texture2D(uTexture, vTexCoord);\nif(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {\ngl_FragColor.a = 0.0;\n}\n}",distance:.02,useAlpha:!1,applyTo2d:function(t){var e,i,r,o,a=t.imageData.data,s=255*this.distance,l=new n.Color(this.color).getSource(),u=[l[0]-s,l[1]-s,l[2]-s],c=[l[0]+s,l[1]+s,l[2]+s];for(e=0;e<a.length;e+=4)r=a[e+1],o=a[e+2],(i=a[e])>u[0]&&r>u[1]&&o>u[2]&&i<c[0]&&r<c[1]&&o<c[2]&&(a[e+3]=0)},getUniformLocations:function(t,e){return{uLow:t.getUniformLocation(e,"uLow"),uHigh:t.getUniformLocation(e,"uHigh")}},sendUniformData:function(t,e){var i=new n.Color(this.color).getSource(),r=parseFloat(this.distance),o=[i[0]/255+r,i[1]/255+r,i[2]/255+r,1];t.uniform4fv(e.uLow,[0+i[0]/255-r,0+i[1]/255-r,0+i[2]/255-r,1]),t.uniform4fv(e.uHigh,o)},toObject:function(){return i(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),n.Image.filters.RemoveColor.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters,r=n.util.createClass,o={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var a in o)i[a]=r(i.ColorMatrix,{type:a,matrix:o[a],mainParameter:!1,colorsOnly:!0}),n.Image.filters[a].fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric,i=n.Image.filters;i.BlendColor=(0,n.util.createClass)(i.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:"gl_FragColor.rgb *= uColor.rgb;\n",screen:"gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);\n",add:"gl_FragColor.rgb += uColor.rgb;\n",diff:"gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);\n",subtract:"gl_FragColor.rgb -= uColor.rgb;\n",lighten:"gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);\n",darken:"gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);\n",exclusion:"gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);\n",overlay:"if (uColor.r < 0.5) {\ngl_FragColor.r *= 2.0 * uColor.r;\n} else {\ngl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);\n}\nif (uColor.g < 0.5) {\ngl_FragColor.g *= 2.0 * uColor.g;\n} else {\ngl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);\n}\nif (uColor.b < 0.5) {\ngl_FragColor.b *= 2.0 * uColor.b;\n} else {\ngl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);\n}\n",tint:"gl_FragColor.rgb *= (1.0 - uColor.a);\ngl_FragColor.rgb += uColor.rgb;\n"},buildSource:function(t){return"precision highp float;\nuniform sampler2D uTexture;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\ngl_FragColor = color;\nif (color.a > 0.0) {\n"+this.fragmentSource[t]+"}\n}"},retrieveShader:function(t){var e,n=this.type+"_"+this.mode;return t.programCache.hasOwnProperty(n)||(e=this.buildSource(this.mode),t.programCache[n]=this.createProgram(t.context,e)),t.programCache[n]},applyTo2d:function(t){var e,i,r,o,a,s,l,u=t.imageData.data,c=u.length,h=1-this.alpha;e=(l=new n.Color(this.color).getSource())[0]*this.alpha,i=l[1]*this.alpha,r=l[2]*this.alpha;for(var d=0;d<c;d+=4)switch(o=u[d],a=u[d+1],s=u[d+2],this.mode){case"multiply":u[d]=o*e/255,u[d+1]=a*i/255,u[d+2]=s*r/255;break;case"screen":u[d]=255-(255-o)*(255-e)/255,u[d+1]=255-(255-a)*(255-i)/255,u[d+2]=255-(255-s)*(255-r)/255;break;case"add":u[d]=o+e,u[d+1]=a+i,u[d+2]=s+r;break;case"diff":case"difference":u[d]=Math.abs(o-e),u[d+1]=Math.abs(a-i),u[d+2]=Math.abs(s-r);break;case"subtract":u[d]=o-e,u[d+1]=a-i,u[d+2]=s-r;break;case"darken":u[d]=Math.min(o,e),u[d+1]=Math.min(a,i),u[d+2]=Math.min(s,r);break;case"lighten":u[d]=Math.max(o,e),u[d+1]=Math.max(a,i),u[d+2]=Math.max(s,r);break;case"overlay":u[d]=e<128?2*o*e/255:255-2*(255-o)*(255-e)/255,u[d+1]=i<128?2*a*i/255:255-2*(255-a)*(255-i)/255,u[d+2]=r<128?2*s*r/255:255-2*(255-s)*(255-r)/255;break;case"exclusion":u[d]=e+o-2*e*o/255,u[d+1]=i+a-2*i*a/255,u[d+2]=r+s-2*r*s/255;break;case"tint":u[d]=e+o*h,u[d+1]=i+a*h,u[d+2]=r+s*h}},getUniformLocations:function(t,e){return{uColor:t.getUniformLocation(e,"uColor")}},sendUniformData:function(t,e){var i=new n.Color(this.color).getSource();i[0]=this.alpha*i[0]/255,i[1]=this.alpha*i[1]/255,i[2]=this.alpha*i[2]/255,i[3]=this.alpha,t.uniform4fv(e.uColor,i)}
1,toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),n.Image.filters.BlendColor.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric,i=n.Image.filters;i.BlendImage=(0,n.util.createClass)(i.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:"attribute vec2 aPosition;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nuniform mat3 uTransformMatrix;\nvoid main() {\nvTexCoord = aPosition;\nvTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;\ngl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);\n}",fragmentSource:{multiply:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.rgba *= color2.rgba;\ngl_FragColor = color;\n}",mask:"precision highp float;\nuniform sampler2D uTexture;\nuniform sampler2D uImage;\nuniform vec4 uColor;\nvarying vec2 vTexCoord;\nvarying vec2 vTexCoord2;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec4 color2 = texture2D(uImage, vTexCoord2);\ncolor.a = color2.a;\ngl_FragColor = color;\n}"},retrieveShader:function(t){var e=this.type+"_"+this.mode,n=this.fragmentSource[this.mode];return t.programCache.hasOwnProperty(e)||(t.programCache[e]=this.createProgram(t.context,n)),t.programCache[e]},applyToWebGL:function(t){var e=t.context,n=this.createTexture(t.filterBackend,this.image);this.bindAdditionalTexture(e,n,e.TEXTURE1),this.callSuper("applyToWebGL",t),this.unbindAdditionalTexture(e,e.TEXTURE1)}
1,createTexture:function(t,e){return t.getCachedTexture(e.cacheKey,e._element)},calculateMatrix:function(){var t=this.image;return[1/t.scaleX,0,0,0,1/t.scaleY,0,-t.left/t._element.width,-t.top/t._element.height,1]},applyTo2d:function(t){var e,n,i,r,o,a,s,l,u,c,h,d=t.filterBackend.resources,p=t.imageData.data,f=p.length,g=t.imageData.width,m=t.imageData.height,v=this.image;d.blendImage||(d.blendImage=document.createElement("canvas")),(u=d.blendImage).width===g&&u.height===m||(u.width=g,u.height=m),(c=u.getContext("2d")).setTransform(v.scaleX,0,0,v.scaleY,v.left,v.top),c.drawImage(v._element,0,0,g,m),h=c.getImageData(0,0,g,m).data;for(var y=0;y<f;y+=4)switch(o=p[y],a=p[y+1],s=p[y+2],l=p[y+3],e=h[y],n=h[y+1],i=h[y+2],r=h[y+3],this.mode){case"multiply":p[y]=o*e/255,p[y+1]=a*n/255,p[y+2]=s*i/255,p[y+3]=l*r/255;break;case"mask":p[y+3]=r}},getUniformLocations:function(t,e){return{uTransformMatrix:t.getUniformLocation(e,"uTransformMatrix"),uImage:t.getUniformLocation(e,"uImage")}},sendUniformData:function(t,e){var n=this.calculateMatrix();t.uniform1i(e.uImage,1),t.uniformMatrix3fv(e.uTransformMatrix,!1,n)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),n.Image.filters.BlendImage.fromObject=function(t,e){n.Image.fromObject(t.image,function(i){var r=n.util.object.clone(t);r.image=i,e(new n.Image.filters.BlendImage(r))})}}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=Math.pow,r=Math.floor,o=Math.sqrt,a=Math.abs,s=Math.round,l=Math.sin,u=Math.ceil,c=n.Image.filters;c.Resize=(0,n.util.createClass)(c.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:0,scaleY:0,lanczosLobes:3,getUniformLocations:function(t,e){return{uDelta:t.getUniformLocation(e,"uDelta"),uTaps:t.getUniformLocation(e,"uTaps")}},sendUniformData:function(t,e){t.uniform2fv(e.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),t.uniform1fv(e.uTaps,this.taps)},retrieveShader:function(t){var e=this.getFilterWindow(),n=this.type+"_"+e;if(!t.programCache.hasOwnProperty(n)){var i=this.generateShader(e);t.programCache[n]=this.createProgram(t.context,i)}return t.programCache[n]},getFilterWindow:function(){return Math.ceil(this.lanczosLobes/this.tempScale)},getTaps:function(){for(var t=this.lanczosCreate(this.lanczosLobes),e=this.tempScale,n=this.getFilterWindow(),i=new Array(n),r=1;r<=n;r++)i[r-1]=t(r*e);return i},generateShader:function(t){for(var e=new Array(t),n=this.fragmentSourceTOP,i=1;i<=t;i++)e[i-1]=i+".0 * uDelta";return n+="uniform float uTaps["+t+"];\n",n+="void main() {\n",n+=" vec4 color = texture2D(uTexture, vTexCoord);\n",n+=" float sum = 1.0;\n",e.forEach(function(t,e){n+=" color += texture2D(uTexture, vTexCoord + "+t+") * uTaps["+e+"];\n",n+=" color += texture2D(uTexture, vTexCoord - "+t+") * uTaps["+e+"];\n",n+=" sum += 2.0 * uTaps["+e+"];\n"}),n+=" gl_FragColor = color / sum;\n",n+="}"},fragmentSourceTOP:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\n",applyTo:function(t){if(t.webgl){if(t.passes>1&&this.isNeutralState(t))return;t.passes++,this.width=t.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=t.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),t.destinationWidth=this.dW,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceWidth=t.destinationWidth,this.height=t.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),t.destinationHeight=this.dH,this._setupFrameBuffer(t),this.applyToWebGL(t),this._swapTextures(t),t.sourceHeight=t.destinationHeight}else this.isNeutralState(t)||this.applyTo2d(t)},isNeutralState:function(t){return 1===(t.scaleX||this.scaleX)&&1===(t.scaleY||this.scaleY)},lanczosCreate:function(t){return function(e){if(e>=t||e<=-t)return 0;if(e<1.1920929e-7&&e>-1.1920929e-7)return 1;var n=(e*=Math.PI)/t;return l(e)/e*l(n)/n}},applyTo2d:function(t){var e=t.imageData,n=this.scaleX,i=this.scaleY;this.rcpScaleX=1/n,this.rcpScaleY=1/i;var r,o=e.width,a=e.height,l=s(o*n),u=s(a*i);"sliceHack"===this.resizeType?r=this.sliceByTwo(t,o,a,l,u):"hermite"===this.resizeType?r=this.hermiteFastResize(t,o,a,l,u):"bilinear"===this.resizeType?r=this.bilinearFiltering(t,o,a,l,u):"lanczos"===this.resizeType&&(r=this.lanczosResize(t,o,a,l,u)),t.imageData=r}
vendor: 5,363 bytes, line 1
1,sliceByTwo:function(t,e,i,o,a){var s,l,u=t.imageData,c=!1,h=!1,d=.5*e,p=.5*i,f=n.filterBackend.resources,g=0,m=0,v=e,y=0;for(f.sliceByTwo||(f.sliceByTwo=document.createElement("canvas")),((s=f.sliceByTwo).width<1.5*e||s.height<i)&&(s.width=1.5*e,s.height=i),(l=s.getContext("2d")).clearRect(0,0,1.5*e,i),l.putImageData(u,0,0),o=r(o),a=r(a);!c||!h;)e=d,i=p,o<r(.5*d)?d=r(.5*d):(d=o,c=!0),a<r(.5*p)?p=r(.5*p):(p=a,h=!0),l.drawImage(s,g,m,e,i,v,y,d,p),g=v,m=y,y+=p;return l.getImageData(g,m,o,a)},lanczosResize:function(t,e,n,s,l){var c=t.imageData.data,h=t.ctx.createImageData(s,l),d=h.data,p=this.lanczosCreate(this.lanczosLobes),f=this.rcpScaleX,g=this.rcpScaleY,m=2/this.rcpScaleX,v=2/this.rcpScaleY,y=u(f*this.lanczosLobes/2),b=u(g*this.lanczosLobes/2),_={},w={},x={};return function t(u){var C,S,k,E,O,T,A,D,P,I,R;for(w.x=(u+.5)*f,x.x=r(w.x),C=0;C<l;C++){for(w.y=(C+.5)*g,x.y=r(w.y),O=0,T=0,A=0,D=0,P=0,S=x.x-y;S<=x.x+y;S++)if(!(S<0||S>=e)){I=r(1e3*a(S-w.x)),_[I]||(_[I]={});for(var j=x.y-b;j<=x.y+b;j++)j<0||j>=n||(R=r(1e3*a(j-w.y)),_[I][R]||(_[I][R]=p(o(i(I*m,2)+i(R*v,2))/1e3)),(k=_[I][R])>0&&(O+=k,T+=k*c[E=4*(j*e+S)],A+=k*c[E+1],D+=k*c[E+2],P+=k*c[E+3]))}d[E=4*(C*s+u)]=T/O,d[E+1]=A/O,d[E+2]=D/O,d[E+3]=P/O}return++u<s?t(u):h}(0)},bilinearFiltering:function(t,e,n,i,o){var a,s,l,u,c,h,d,p,f=0,g=this.rcpScaleX,m=this.rcpScaleY,v=4*(e-1),y=t.imageData.data,b=t.ctx.createImageData(i,o),_=b.data;for(l=0;l<o;l++)for(u=0;u<i;u++)for(c=g*u-(a=r(g*u)),h=m*l-(s=r(m*l)),p=4*(s*e+a),d=0;d<4;d++)_[f++]=y[p+d]*(1-c)*(1-h)+y[p+4+d]*c*(1-h)+y[p+v+d]*h*(1-c)+y[p+v+4+d]*c*h;return b},hermiteFastResize:function(t,e,n,i,s){for(var l=this.rcpScaleX,c=this.rcpScaleY,h=u(l/2),d=u(c/2),p=t.imageData.data,f=t.ctx.createImageData(i,s),g=f.data,m=0;m<s;m++)for(var v=0;v<i;v++){for(var y=4*(v+m*i),b=0,_=0,w=0,x=0,C=0,S=0,k=0,E=(m+.5)*c,O=r(m*c);O<(m+1)*c;O++)for(var T=a(E-(O+.5))/d,A=(v+.5)*l,D=T*T,P=r(v*l);P<(v+1)*l;P++){var I=a(A-(P+.5))/h,R=o(D+I*I);R>1&&R<-1||(b=2*R*R*R-3*R*R+1)>0&&(k+=b*p[3+(I=4*(P+O*e))],w+=b,p[I+3]<255&&(b=b*p[I+3]/250),x+=b*p[I],C+=b*p[I+1],S+=b*p[I+2],_+=b)}g[y]=x/_,g[y+1]=C/_,g[y+2]=S/_,g[y+3]=k/w}return f},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),n.Image.filters.Resize.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Contrast=(0,n.util.createClass)(i.BaseFilter,{type:"Contrast",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uContrast;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));\ncolor.rgb = contrastF * (color.rgb - 0.5) + 0.5;\ngl_FragColor = color;\n}",contrast:0,mainParameter:"contrast",applyTo2d:function(t){if(0!==this.contrast){var e,n=t.imageData.data,i=n.length,r=Math.floor(255*this.contrast),o=259*(r+255)/(255*(259-r));for(e=0;e<i;e+=4)n[e]=o*(n[e]-128)+128,n[e+1]=o*(n[e+1]-128)+128,n[e+2]=o*(n[e+2]-128)+128}},getUniformLocations:function(t,e){return{uContrast:t.getUniformLocation(e,"uContrast")}},sendUniformData:function(t,e){t.uniform1f(e.uContrast,this.contrast)}}),n.Image.filters.Contrast.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Saturation=(0,n.util.createClass)(i.BaseFilter,{type:"Saturation",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform float uSaturation;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nfloat rgMax = max(color.r, color.g);\nfloat rgbMax = max(rgMax, color.b);\ncolor.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;\ncolor.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;\ncolor.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;\ngl_FragColor = color;\n}",saturation:0,mainParameter:"saturation",applyTo2d:function(t){if(0!==this.saturation){var e,n,i=t.imageData.data,r=i.length,o=-this.saturation;for(e=0;e<r;e+=4)n=Math.max(i[e],i[e+1],i[e+2]),i[e]+=n!==i[e]?(n-i[e])*o:0,i[e+1]+=n!==i[e+1]?(n-i[e+1])*o:0,i[e+2]+=n!==i[e+2]?(n-i[e+2])*o:0}},getUniformLocations:function(t,e){return{uSaturation:t.getUniformLocation(e,"uSaturation")}},sendUniformData:function(t,e){t.uniform1f(e.uSaturation,-this.saturation)}}),n.Image.filters.Saturation.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Blur=(0,n.util.createClass)(i.BaseFilter,{type:"Blur",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec2 uDelta;\nvarying vec2 vTexCoord;\nconst float nSamples = 15.0;\nvec3 v3offset = vec3(12.9898, 78.233, 151.7182);\nfloat random(vec3 scale) {\nreturn fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);\n}\nvoid main() {\nvec4 color = vec4(0.0);\nfloat total = 0.0;\nfloat offset = random(v3offset);\nfor (float t = -nSamples; t <= nSamples; t++) {\nfloat percent = (t + offset - 0.5) / nSamples;\nfloat weight = 1.0 - abs(percent);\ncolor += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;\ntotal += weight;\n}\ngl_FragColor = color / total;\n}",blur:0,mainParameter:"blur",applyTo:function(t){t.webgl?(this.aspectRatio=t.sourceW
1idth/t.sourceHeight,t.passes++,this._setupFrameBuffer(t),this.horizontal=!0,this.applyToWebGL(t),this._swapTextures(t),this._setupFrameBuffer(t),this.horizontal=!1,this.applyToWebGL(t),this._swapTextures(t)):this.applyTo2d(t)},applyTo2d:function(t){t.imageData=this.simpleBlur(t)},simpleBlur:function(t){var e,i,r=t.filterBackend.resources,o=t.imageData.width,a=t.imageData.height;r.blurLayer1||(r.blurLayer1=n.util.createCanvasElement(),r.blurLayer2=n.util.createCanvasElement()),i=r.blurLayer2,(e=r.blurLayer1).width===o&&e.height===a||(i.width=e.width=o,i.height=e.height=a);var s,l,u,c,h=e.getContext("2d"),d=i.getContext("2d"),p=.06*this.blur*.5;for(h.putImageData(t.imageData,0,0),d.clearRect(0,0,o,a),c=-15;c<=15;c++)s=(Math.random()-.5)/4,u=p*(l=c/15)*o+s,d.globalAlpha=1-Math.abs(l),d.drawImage(e,u,s),h.drawImage(i,0,0),d.globalAlpha=1,d.clearRect(0,0,i.width,i.height);for(c=-15;c<=15;c++)s=(Math.random()-.5)/4,u=p*(l=c/15)*a+s,d.globalAlpha=1-Math.abs(l),d.drawImage(e,s,u),h.drawImage(i,0,0),d.globalAlpha=1,d.clearRect(0,0,i.width,i.height);t.ctx.drawImage(e,0,0);var f=t.ctx.getImageData(0,0,e.width,e.height);return h.globalAlpha=1,h.clearRect(0,0,e.width,e.height),f},getUniformLocations:function(t,e){return{delta:t.getUniformLocation(e,"uDelta")}},sendUniformData:function(t,e){var n=this.chooseRightDelta();t.uniform2fv(e.delta,n)},chooseRightDelta:function(){var t,e=1,n=[0,0];return this.horizontal?this.aspectRatio>1&&(e=1/this.aspectRatio):this.aspectRatio<1&&(e=this.aspectRatio),t=e*this.blur*.12,this.horizontal?n[0]=t:n[1]=t,n}}),i.Blur.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Gamma=(0,n.util.createClass)(i.BaseFilter,{type:"Gamma",fragmentSource:"precision highp float;\nuniform sampler2D uTexture;\nuniform vec3 uGamma;\nvarying vec2 vTexCoord;\nvoid main() {\nvec4 color = texture2D(uTexture, vTexCoord);\nvec3 correction = (1.0 / uGamma);\ncolor.r = pow(color.r, correction.r);\ncolor.g = pow(color.g, correction.g);\ncolor.b = pow(color.b, correction.b);\ngl_FragColor = color;\ngl_FragColor.rgb *= color.a;\n}",gamma:[1,1,1],mainParameter:"gamma",applyTo2d:function(t){var e,n=t.imageData.data,i=this.gamma,r=n.length,o=1/i[0],a=1/i[1],s=1/i[2];for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),e=0,r=256;e<r;e++)this.rVals[e]=255*Math.pow(e/255,o),this.gVals[e]=255*Math.pow(e/255,a),this.bVals[e]=255*Math.pow(e/255,s);for(e=0,r=n.length;e<r;e+=4)n[e]=this.rVals[n[e]],n[e+1]=this.gVals[n[e+1]],n[e+2]=this.bVals[n[e+2]]},getUniformLocations:function(t,e){return{uGamma:t.getUniformLocation(e,"uGamma")}},sendUniformData:function(t,e){t.uniform3fv(e.uGamma,this.gamma)}}),n.Image.filters.Gamma.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.Composed=(0,n.util.createClass)(i.BaseFilter,{type:"Composed",subFilters:[],initialize:function(t){this.callSuper("initialize",t),this.subFilters=this.subFilters.slice(0)},applyTo:function(t){t.passes+=this.subFilters.length-1,this.subFilters.forEach(function(e){e.applyTo(t)})},toObject:function(){return n.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(t){return t.toObject()})})}}),n.Image.filters.Composed.fromObject=function(t,e){var i=(t.subFilters||[]).map(function(t){return new n.Image.filters[t.type](t)}),r=new n.Image.filters.Composed({subFilters:i});return e&&e(r),r}}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.Image.filters;i.HueRotation=(0,n.util.createClass)(i.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var t=this.rotation*Math.PI,e=n.util.cos(t),i=n.util.sin(t),r=Math.sqrt(1/3)*i,o=1-e;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=e+o/3,this.matrix[1]=1/3*o-r,this.matrix[2]=1/3*o+r,this.matrix[5]=1/3*o+r,this.matrix[6]=e+1/3*o,this.matrix[7]=1/3*o-r,this.matrix[10]=1/3*o-r,this.matrix[11]=1/3*o+r,this.matrix[12]=e+1/3*o},applyTo:function(t){this.calculateMatrix(),n.Image.filters.BaseFilter.prototype.applyTo.call(this,t)}}),n.Image.filters.HueRotation.fromObject=n.Image.filters.BaseFilter.fromObject}(),function(t){"use strict";var n=e.fabric||(e.fabric={}),i=n.util.object.clone;n.Text?n.warn("fabric.Text is already defined"):(n.Text=n.util.createClass(n.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11}
1,textBackgroundColor:"",stateProperties:n.Object.prototype.stateProperties.concat("fontFamily","fontWeight","fontSize","text","underline","overline","linethrough","textAlign","fontStyle","lineHeight","textBackgroundColor","charSpacing","styles"),cacheProperties:n.Object.prototype.cacheProperties.concat("fontFamily","fontWeight","fontSize","text","underline","overline","linethrough","textAlign","fontStyle","lineHeight","textBackgroundColor","charSpacing","styles"),stroke:null,shadow:null,_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(t,e){this.styles=e&&e.styles||{},this.text=t,this.__skipDimension=!0,this.callSuper("initialize",e),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},getMeasuringContext:function(){return n._measuringContext||(n._measuringContext=this.canvas&&this.canvas.contextCache||n.util.createCanvasElement().getContext("2d")),n._measuringContext},_splitText:function(){var t=this._splitTextIntoLines(this.text);return this.textLines=t.lines,this._textLines=t.graphemeLines,this._unwrappedTextLines=t._unwrappedLines,this._text=t.graphemeText,t},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},enlargeSpaces:function(){for(var t,e,n,i,r,o,a=0,s=this._textLines.length;a<s;a++)if(("justify"===this.textAlign||a!==s-1&&!this.isEndOfWrapping(a))&&(n=0,i=this._textLines[a],(e=this.getLineWidth(a))<this.width&&(o=this.textLines[a].match(this._reSpacesAndTabs)))){t=(this.width-e)/o.length;for(var l=0,u=i.length;l<=u;l++)r=this.__charBounds[a][l],this._reSpaceAndTab.test(i[l])?(r.width+=t,r.kernedWidth+=t,r.left+=n,n+=t):r.left+=n}},isEndOfWrapping:function(t){return t===this._textLines.length-1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var t=this.callSuper("_getCacheCanvasDimensions"),e=this.fontSize;return t.width+=e*t.zoomX,t.height+=e*t.zoomY,t},_render:function(t){this._setTextStyles(t),this._renderTextLinesBackground(t),this._renderTextDecoration(t,"underline"),this._renderText(t),this._renderTextDecoration(t,"overline"),this._renderTextDecoration(t,"linethrough")},_renderText:function(t){"stroke"===this.paintFirst?(this._renderTextStroke(t),this._renderTextFill(t)):(this._renderTextFill(t),this._renderTextStroke(t))},_setTextStyles:function(t,e,n){t.textBaseline="alphabetic",t.font=this._getFontDeclaration(e,n)},calcTextWidth:function(){for(var t=this.getLineWidth(0),e=1,n=this._textLines.length;e<n;e++){var i=this.getLineWidth(e);i>t&&(t=i)}return t},_renderTextLine:function(t,e,n,i,r,o){this._renderChars(t,e,n,i,r,o)},_renderTextLinesBackground:function(t){if(this.textBackgroundColor||this.styleHas("textBackgroundColor")){for(var e,n,i,r,o,a,s=0,l=t.fillStyle,u=this._getLeftOffset(),c=this._getTopOffset(),h=0,d=0,p=0,f=this._textLines.length;p<f;p++)if(e=this.getHeightOfLine(p),this.textBackgroundColor||this.styleHas("textBackgroundColor",p)){i=this._textLines[p],n=this._getLineLeftOffset(p),d=0,h=0,r=this.getValueOfPropertyAt(p,0,"textBackgroundColor");for(var g=0,m=i.length;g<m;g++)o=this.__charBounds[p][g],(a=this.getValueOfPropertyAt(p,g,"textBackgroundColor"))!==r?(t.fillStyle=r,r&&t.fillRect(u+n+h,c+s,d,e/this.lineHeight),h=o.left,d=o.width,r=a):d+=o.kernedWidth;a&&(t.fillStyle=a,t.fillRect(u+n+h,c+s,d,e/this.lineHeight)),s+=e}else s+=e;t.fillStyle=l,this._removeShadow(t)}},getFontCache:function(t){var e=t.fontFamily.toLowerCase();n.charWidthsCache[e]||(n.charWidthsCache[e]={});var i=n.charWidthsCache[e],r=t.fontStyle.toLowerCase()+"_"+(t.fontWeight+"").toLowerCase();return i[r]||(i[r]={}),i[r]},_applyCharStyles:function(t,e,n,i,r){this._setFillStyles(e,r),this._setStrokeStyles(e,r),e.font=this._getFontDeclaration(r)},_measureChar:function(t,e,n,i){var r,o,a,s,l=this.getFontCache(e),u=n+t,c=this._getFontDeclaration(e)===this._getFontDeclaration(i),h=e.fontSize/this.CACHE_FONT_SIZE;if(n&&l[n]&&(a=l[n]),l[t]&&(s=r=l[t]),c&&l[u]&&(s=(o=l[u])-a),!r||!a||!o){var d=this.getMeasuringContext();this._setTextStyles(d,e,!0)}return r||(s=r=d.measureText(t).width,l[t]=r),!a&&c&&n&&(a=d.measureText(n).width,l[n]=a),c&&!o&&(o=d.measureText(u).width,l[u]=o,s=o-a),{width:r*h,kernedWidth:s*h}},getHeightOfChar:function(t,e){return this.getValueOfPropertyAt(t,e,"fontSize")},measureLine:function(t){var e=this._measureLine(t);return 0!==this.charSpacing&&(e.width-=this._getWidthOfCharSpacing()),e.width<0&&(e.width=0),e},_measureLine:function(t){var e,n,i,r,o=0,a=this._textLines[t],s=new Array(a.length);for(this.__charBounds[t]=s,e=0;e<a.length;e++)r=this._getGraphemeBox(n=a[e],t,e,i),s[e]=r,o+=r.kernedWidth,i=n;
1return s[e]={left:r?r.left+r.width:0,width:0,kernedWidth:0,height:this.fontSize},{width:o,numOfSpaces:0}},_getGraphemeBox:function(t,e,n,i,r){var o,a=this.getCompleteStyleDeclaration(e,n),s=i?this.getCompleteStyleDeclaration(e,n-1):{},l=this._measureChar(t,a,i,s),u=l.kernedWidth,c=l.width;0!==this.charSpacing&&(c+=o=this._getWidthOfCharSpacing(),u+=o);var h={width:c,left:0,height:a.fontSize,kernedWidth:u,deltaY:a.deltaY};if(n>0&&!r){var d=this.__charBounds[e][n-1];h.left=d.left+d.width+l.kernedWidth-l.width}return h},getHeightOfLine:function(t){if(this.__lineHeights[t])return this.__lineHeights[t];for(var e=this._textLines[t],n=this.getHeightOfChar(t,0),i=1,r=e.length;i<r;i++)n=Math.max(this.getHeightOfChar(t,i),n);return this.__lineHeights[t]=n*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var t,e=0,n=0,i=this._textLines.length;n<i;n++)t=this.getHeightOfLine(n),e+=n===i-1?t/this.lineHeight:t;return e},_getLeftOffset:function(){return-this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(t,e){t.save();for(var n=0,i=this._getLeftOffset(),r=this._getTopOffset(),o=this._applyPatternGradientTransform(t,"fillText"===e?this.fill:this.stroke),a=0,s=this._textLines.length;a<s;a++){var l=this.getHeightOfLine(a),u=l/this.lineHeight,c=this._getLineLeftOffset(a);this._renderTextLine(e,t,this._textLines[a],i+c-o.offsetX,r+n+u-o.offsetY,a),n+=l}t.restore()},_renderTextFill:function(t){(this.fill||this.styleHas("fill"))&&this._renderTextCommon(t,"fillText")},_renderTextStroke:function(t){(this.stroke&&0!==this.strokeWidth||!this.isEmptyStyles())&&(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(t),t.save(),this._setLineDash(t,this.strokeDashArray),t.beginPath(),this._renderTextCommon(t,"strokeText"),t.closePath(),t.restore())},_renderChars:function(t,e,n,i,r,o){var a,s,l,u,c=this.getHeightOfLine(o),h=-1!==this.textAlign.indexOf("justify"),d="",p=0,f=!h&&0===this.charSpacing&&this.isEmptyStyles(o);if(e.save(),r-=c*this._fontSizeFraction/this.lineHeight,f)return this._renderChar(t,e,o,0,this.textLines[o],i,r,c),void e.restore();for(var g=0,m=n.length-1;g<=m;g++)u=g===m||this.charSpacing,d+=n[g],l=this.__charBounds[o][g],0===p?(i+=l.kernedWidth-l.width,p+=l.width):p+=l.kernedWidth,h&&!u&&this._reSpaceAndTab.test(n[g])&&(u=!0),u||(a=a||this.getCompleteStyleDeclaration(o,g),s=this.getCompleteStyleDeclaration(o,g+1),u=this._hasStyleChanged(a,s)),u&&(this._renderChar(t,e,o,g,d,i,r,c),d="",a=s,i+=p,p=0);e.restore()},_renderChar:function(t,e,n,i,r,o,a){var s=this._getStyleDeclaration(n,i),l=this.getCompleteStyleDeclaration(n,i),u="fillText"===t&&l.fill,c="strokeText"===t&&l.stroke&&l.strokeWidth;(c||u)&&(s&&e.save(),this._applyCharStyles(t,e,n,i,l),s&&s.textBackgroundColor&&this._removeShadow(e),s&&s.deltaY&&(a+=s.deltaY),u&&e.fillText(r,o,a),c&&e.strokeText(r,o,a),s&&e.restore())},setSuperscript:function(t,e){return this._setScript(t,e,this.superscript)},setSubscript:function(t,e){return this._setScript(t,e,this.subscript)},_setScript:function(t,e,n){var i=this.get2DCursorLocation(t,!0),r=this.getValueOfPropertyAt(i.lineIndex,i.charIndex,"fontSize"),o=this.getValueOfPropertyAt(i.lineIndex,i.charIndex,"deltaY");return this.setSelectionStyles({fontSize:r*n.size,deltaY:o+r*n.baseline},t,e),this},_hasStyleChanged:function(t,e){return t.fill!==e.fill||t.stroke!==e.stroke||t.strokeWidth!==e.strokeWidth||t.fontSize!==e.fontSize||t.fontFamily!==e.fontFamily||t.fontWeight!==e.fontWeight||t.fontStyle!==e.fontStyle||t.deltaY!==e.deltaY},_hasStyleChangedForSvg:function(t,e){return this._hasStyleChanged(t,e)||t.overline!==e.overline||t.underline!==e.underline||t.linethrough!==e.linethrough},_getLineLeftOffset:function(t){var e=this.getLineWidth(t);return"center"===this.textAlign?(this.width-e)/2:"right"===this.textAlign?this.width-e:"justify-center"===this.textAlign&&this.isEndOfWrapping(t)?(this.width-e)/2:"justify-right"===this.textAlign&&this.isEndOfWrapping(t)?this.width-e:0},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var t=this._forceClearCache;return t||(t=this.hasStateChanged("_dimensionAffectingProps")),t&&(this.dirty=!0,this._forceClearCache=!1),t},getLineWidth:function(t){return this.__lineWidths[t]?this.__lineWidths[t]:(e=""===this._textLines[t]?0:this.measureLine(t).width,this.__lineWidths[t]=e,e);var e},_getWidthOfCharSpacing:function(){return 0!==this.charSpacing?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(t,e,n){var i=this._getStyleDeclaration(t,e);return i&&void 0!==i[n]?i[n]:this[n]},_renderTextDecoration:function(t,e){if(this[e]||this.styleHas(e)){for(var n,i,r,o,a,s,l,u,c,h,d,p,f,g,m,v,y=this._getLeftOffset(),b=this._getTopOffset(),_=0,w=this._textLines.length;_<w;_++)if(n=this.getHeightOfLine(_),this[e]||this.styleHas(e,_)){l=this._textLines[_],g=n/this.lineHeight,o=this._getLineLeftOffset(_),h=0,d=0,u=this.getValueOfPropertyAt(_,0,e),v=this.getValueOfPropertyAt(_,0,"fill"),c=b+g*(1-this._fontSizeFraction),i=this.getHeightOfChar(_,0),a=this.getValueOfPropertyAt(_,0,"deltaY");for(var x=0,C=l.length;x<C;x++)p=this.__charBounds[_][x],f=this.getValueOfPropertyAt(_,x,e),m=this.getValueOfPropertyAt(_,x,"fill"),r=this.getHeightOfChar(_,x),s=this.getValueOfPropertyAt(_,x,"deltaY"),(f!==u||m!==v||r!==i||s!==a)&&d>0?(t.fillStyle=v,u&&v&&t.fillRect(y+o+h,c+this.offsets[e]*i+a,d,this.fontSize/15),h=p.left,d=p.width,u=f,v=m,i=r,a=s):d+=p.kernedWidth;
vendor: 7,032 bytes, line 1
1t.fillStyle=m,f&&m&&t.fillRect(y+o+h,c+this.offsets[e]*i+a,d,this.fontSize/15),b+=n}else b+=n;this._removeShadow(t)}},_getFontDeclaration:function(t,e){var i=t||this,r=void 0===i.fontFamily||i.fontFamily.indexOf("'")>-1||i.fontFamily.indexOf('"')>-1?i.fontFamily:'"'+i.fontFamily+'"';return[n.isLikelyNode?i.fontWeight:i.fontStyle,n.isLikelyNode?i.fontStyle:i.fontWeight,e?this.CACHE_FONT_SIZE+"px":i.fontSize+"px",r].join(" ")},render:function(t){this.visible&&(this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",t)))},_splitTextIntoLines:function(t){for(var e=t.split(this._reNewline),i=new Array(e.length),r=["\n"],o=[],a=0;a<e.length;a++)i[a]=n.util.string.graphemeSplit(e[a]),o=o.concat(i[a],r);return o.pop(),{_unwrappedLines:i,lines:e,graphemeText:o,graphemeLines:i}},toObject:function(t){var e=["text","fontSize","fontWeight","fontFamily","fontStyle","lineHeight","underline","overline","linethrough","textAlign","textBackgroundColor","charSpacing"].concat(t),n=this.callSuper("toObject",e);return n.styles=i(this.styles,!0),n},set:function(t,e){this.callSuper("set",t,e);var n=!1;if("object"==typeof t)for(var i in t)n=n||-1!==this._dimensionAffectingProps.indexOf(i);else n=-1!==this._dimensionAffectingProps.indexOf(t);return n&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),n.Text.ATTRIBUTE_NAMES=n.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),n.Text.DEFAULT_SVG_FONT_SIZE=16,n.Text.fromElement=function(t,e,r){if(!t)return e(null);var o=n.parseAttributes(t,n.Text.ATTRIBUTE_NAMES),a=o.textAnchor||"left";if((r=n.util.object.extend(r?i(r):{},o)).top=r.top||0,r.left=r.left||0,o.textDecoration){var s=o.textDecoration;-1!==s.indexOf("underline")&&(r.underline=!0),-1!==s.indexOf("overline")&&(r.overline=!0),-1!==s.indexOf("line-through")&&(r.linethrough=!0),delete r.textDecoration}"dx"in o&&(r.left+=o.dx),"dy"in o&&(r.top+=o.dy),"fontSize"in r||(r.fontSize=n.Text.DEFAULT_SVG_FONT_SIZE);var l="";"textContent"in t?l=t.textContent:"firstChild"in t&&null!==t.firstChild&&"data"in t.firstChild&&null!==t.firstChild.data&&(l=t.firstChild.data),l=l.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var u=r.strokeWidth;r.strokeWidth=0;var c=new n.Text(l,r),h=c.getScaledHeight()/c.height,d=((c.height+c.strokeWidth)*c.lineHeight-c.height)*h,p=c.getScaledHeight()+d,f=0;"center"===a&&(f=c.getScaledWidth()/2),"right"===a&&(f=c.getScaledWidth()),c.set({left:c.left-f,top:c.top-(p-c.fontSize*(.07+c._fontSizeFraction))/c.lineHeight,strokeWidth:void 0!==u?u:1}),e(c)},n.Text.fromObject=function(t,e){return n.Object._fromObject("Text",t,e,"text")},n.util.createAccessors&&n.util.createAccessors(n.Text))}(),C.util.object.extend(C.Text.prototype,{isEmptyStyles:function(t){if(!this.styles)return!0;if(void 0!==t&&!this.styles[t])return!0;var e=void 0===t?this.styles:{line:this.styles[t]};for(var n in e)for(var i in e[n])for(var r in e[n][i])return!1;return!0},styleHas:function(t,e){if(!this.styles||!t||""===t)return!1;if(void 0!==e&&!this.styles[e])return!1;var n=void 0===e?this.styles:{line:this.styles[e]};for(var i in n)for(var r in n[i])if(void 0!==n[i][r][t])return!0;return!1},cleanStyle:function(t){if(!this.styles||!t||""===t)return!1;var e,n,i=this.styles,r=0,o=!0,a=0;for(var s in i){for(var l in e=0,i[s]){var u;r++,(u=i[s][l]).hasOwnProperty(t)?(n?u[t]!==n&&(o=!1):n=u[t],u[t]===this[t]&&delete u[t]):o=!1,0!==Object.keys(u).length?e++:delete i[s][l]}0===e&&delete i[s]}for(var c=0;c<this._textLines.length;c++)a+=this._textLines[c].length;o&&r===a&&(this[t]=n,this.removeStyle(t))},removeStyle:function(t){if(this.styles&&t&&""!==t){var e,n,i,r=this.styles;for(n in r){for(i in e=r[n])delete e[i][t],0===Object.keys(e[i]).length&&delete e[i];0===Object.keys(e).length&&delete r[n]}}},_extendStyles:function(t,e){var n=this.get2DCursorLocation(t);this._getLineStyle(n.lineIndex)||this._setLineStyle(n.lineIndex,{}),this._getStyleDeclaration(n.lineIndex,n.charIndex)||this._setStyleDeclaration(n.lineIndex,n.charIndex,{}),C.util.object.extend(this._getStyleDeclaration(n.lineIndex,n.charIndex),e)},get2DCursorLocation:function(t,e){void 0===t&&(t=this.selectionStart);for(var n=e?this._unwrappedTextLines:this._textLines,i=n.length,r=0;r<i;r++){if(t<=n[r].length)return{lineIndex:r,charIndex:t};t-=n[r].length+1}return{lineIndex:r-1,charIndex:n[r-1].length<t?n[r-1].length:t}},getSelectionStyles:function(t,e,n){void 0===t&&(t=this.selectionStart||0),void 0===e&&(e=this.selectionEnd||t);for(var i=[],r=t;r<e;r++)i.push(this.getStyleAtPosition(r,n));return i},getStyleAtPosition:function(t,e){var n=this.get2DCursorLocation(t);return(e?this.getCompleteStyleDeclaration(n.lineIndex,n.charIndex):this._getStyleDeclaration(n.lineIndex,n.charIndex))||{}},setSelectionStyles:function(t,e,n){void 0===e&&(e=this.selectionStart||0),void 0===n&&(n=this.selectionEnd||e);for(var i=e;i<n;i++)this._extendStyles(i,t);return this._forceClearCache=!0,this},_getStyleDeclaration:function(t,e){var n=this.styles&&this.styles[t];return n?n[e]:null},getCompleteStyleDeclaration:function(t,e){for(var n,i=this._getStyleDeclaration(t,e)||{},r={},o=0;o<this._styleProperties.length;o++)r[n=this._styleProperties[o]]=void 0===i[n]?this[n]:i[n];return r},_setStyleDeclaration:function(t,e,n){this.styles[t][e]=n},_deleteStyleDeclaration:function(t,e){delete this.styles[t][e]},_getLineStyle:function(t){return this.styles[t]},_setLineStyle:function(t,e){this.styles[t]=e},_deleteLineStyle:function(t){delete this.styles[t]}}),function(){function t(t){t.textDecoration&&(t.textDecoration.indexOf("underline")>-1&&(t.underline=!0),t.textDecoration.indexOf("line-through")>-1&&(t.linethrough=!0),t.textDecoration.indexOf("overline")>-1&&(t.overline=!0),delete t.textDecoration)}C.IText=C.util.createClass(C.Text,C.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"#333",cursorDelay:1e3,cursorDuration:600,caching:!0,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(t,e){this.callSuper("initialize",t,e),this.initBehavior()},setSelectionStart:function(t){t=Math.max(t,0),this._updateAndFire("selectionStart",t)},setSelectionEnd:function(t){t=Math.min(t,this.text.length),this._updateAndFire("selectionEnd",t)},_updateAndFire:function(t,e){this[t]!==e&&(this._fireSelectionChanged(),this[t]=e),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(t){this.clearContextTop(),this.callSuper("render",t),this.cursorOffsetCac
1he={},this.renderCursorOrSelection()},_render:function(t){this.callSuper("_render",t)},clearContextTop:function(t){if(this.isEditing&&this.canvas&&this.canvas.contextTop){var e=this.canvas.contextTop,n=this.canvas.viewportTransform;e.save(),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),this.transform(e),this.transformMatrix&&e.transform.apply(e,this.transformMatrix),this._clearTextArea(e),t||e.restore()}},renderCursorOrSelection:function(){if(this.isEditing&&this.canvas){var t,e=this._getCursorBoundaries();this.canvas&&this.canvas.contextTop?(t=this.canvas.contextTop,this.clearContextTop(!0)):(t=this.canvas.contextContainer).save(),this.selectionStart===this.selectionEnd?this.renderCursor(e,t):this.renderSelection(e,t),t.restore()}},_clearTextArea:function(t){var e=this.width+4,n=this.height+4;t.clearRect(-e/2,-n/2,e,n)},_getCursorBoundaries:function(t){void 0===t&&(t=this.selectionStart);var e=this._getLeftOffset(),n=this._getTopOffset(),i=this._getCursorBoundariesOffsets(t);return{left:e,top:n,leftOffset:i.left,topOffset:i.top}},_getCursorBoundariesOffsets:function(t){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;for(var e,n=0,i=0,r=this.get2DCursorLocation(t),o=0;o<r.lineIndex;o++)n+=this.getHeightOfLine(o);e=this._getLineLeftOffset(r.lineIndex);var a=this.__charBounds[r.lineIndex][r.charIndex];return a&&(i=a.left),0!==this.charSpacing&&0===this._textLines[0].length&&(i-=this._getWidthOfCharSpacing()),this.cursorOffsetCache={top:n,left:e+(i>0?i:0)},this.cursorOffsetCache},renderCursor:function(t,e){var n=this.get2DCursorLocation(),i=n.lineIndex,r=n.charIndex>0?n.charIndex-1:0,o=this.getValueOfPropertyAt(i,r,"fontSize"),a=this.scaleX*this.canvas.getZoom(),s=this.cursorWidth/a,l=t.topOffset,u=this.getValueOfPropertyAt(i,r,"deltaY");l+=(1-this._fontSizeFraction)*this.getHeightOfLine(i)/this.lineHeight-o*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(t,e),e.fillStyle=this.getValueOfPropertyAt(i,r,"fill"),e.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,e.fillRect(t.left+t.leftOffset-s/2,l+t.top+u,s,o)},renderSelection:function(t,e){for(var n=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,i=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,r=-1!==this.textAlign.indexOf("justify"),o=this.get2DCursorLocation(n),a=this.get2DCursorLocation(i),s=o.lineIndex,l=a.lineIndex,u=o.charIndex<0?0:o.charIndex,c=a.charIndex<0?0:a.charIndex,h=s;h<=l;h++){var d,p=this._getLineLeftOffset(h)||0,f=this.getHeightOfLine(h),g=0,m=0;h===s&&(g=this.__charBounds[s][u].left),h>=s&&h<l?m=r&&!this.isEndOfWrapping(h)?this.width:this.getLineWidth(h)||5:h===l&&(m=0===c?this.__charBounds[l][c].left:this.__charBounds[l][c-1].left+this.__charBounds[l][c-1].width),d=f,(this.lineHeight<1||h===l&&this.lineHeight>1)&&(f/=this.lineHeight),this.inCompositionMode?(e.fillStyle=this.compositionColor||"black",e.fillRect(t.left+p+g,t.top+t.topOffset+f,m-g,1)):(e.fillStyle=this.selectionColor,e.fillRect(t.left+p+g,t.top+t.topOffset,m-g,f)),t.topOffset+=d}},getCurrentCharFontSize:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fontSize")},getCurrentCharColor:function(){var t=this._getCurrentCharIndex();return this.getValueOfPropertyAt(t.l,t.c,"fill")},_getCurrentCharIndex:function(){var t=this.get2DCursorLocation(this.selectionStart,!0);return{l:t.lineIndex,c:t.charIndex>0?t.charIndex-1:0}}}),C.IText.fromObject=function(e,n){if(t(e),e.styles)for(var i in e.styles)for(var r in e.styles[i])t(e.styles[i][r]);C.Object._fromObject("IText",e,n,"text")}}(),m=C.util.object.clone,C.util.object.extend(C.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(t){this.isEditing&&this.exitEditing(),this.selected=!1,C.Object.prototype.onDeselect.call(this,t)},initAddedHandler:function(){var t=this;this.on("added",function(){var e=t.canvas;e&&(e._hasITextHandlers||(e._hasITextHandlers=!0,t._initCanvasHandlers(e)),e._iTextInstances=e._iTextInstances||[],e._iTextInstances.push(t))})},initRemovedHandler:function(){var t=this;this.on("removed",function(){var e=t.canvas;e&&(e._iTextInstances=e._iTextInstances||[],C.util.removeFromArray(e._iTextInstances,t),0===e._iTextInstances.length&&(e._hasITextHandlers=!1,t._removeCanvasHandlers(e)))})},_initCanvasHandlers:function(t){t._mouseUpITextHandler=(function(){t._iTextInstances&&t._iTextInstances.forEac
1h(function(t){t.__isMousedown=!1})}).bind(this),t.on("mouse:up",t._mouseUpITextHandler)},_removeCanvasHandlers:function(t){t.off("mouse:up",t._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(t,e,n,i){var r;return r={isAborted:!1,abort:function(){this.isAborted=!0}},t.animate("_currentCursorOpacity",e,{duration:n,onComplete:function(){r.isAborted||t[i]()},onChange:function(){t.canvas&&t.selectionStart===t.selectionEnd&&t.renderCursorOrSelection()},abort:function(){return r.isAborted}}),r},_onTickComplete:function(){var t=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){t._currentTickCompleteState=t._animateCursor(t,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(t){var e=this,n=t?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){e._tick()},n)},abortCursorAnimation:function(){var t=this._currentTickState||this._currentTickCompleteState,e=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,t&&e&&e.clearContext(e.contextTop||e.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(t){var e=0,n=t-1;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)e++,n--;for(;/\S/.test(this._text[n])&&n>-1;)e++,n--;return t-e},findWordBoundaryRight:function(t){var e=0,n=t;if(this._reSpace.test(this._text[n]))for(;this._reSpace.test(this._text[n]);)e++,n++;for(;/\S/.test(this._text[n])&&n<this.text.length;)e++,n++;return t+e},findLineBoundaryLeft:function(t){for(var e=0,n=t-1;!/\n/.test(this._text[n])&&n>-1;)e++,n--;return t-e},findLineBoundaryRight:function(t){for(var e=0,n=t;!/\n/.test(this._text[n])&&n<this.text.length;)e++,n++;return t+e},searchWordBoundary:function(t,e){for(var n=this._reSpace.test(this.text.charAt(t))?t-1:t,i=this.text.charAt(n),r=/[ \n\.,;!\?\-]/;!r.test(i)&&n>0&&n<this.text.length;)i=this.text.charAt(n+=e);return r.test(i)&&"\n"!==i&&(n+=1===e?0:1),n},selectWord:function(t){var e=this.searchWordBoundary(t=t||this.selectionStart,-1),n=this.searchWordBoundary(t,1);this.selectionStart=e,this.selectionEnd=n,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(t){var e=this.findLineBoundaryLeft(t=t||this.selectionStart),n=this.findLineBoundaryRight(t);return this.selectionStart=e,this.selectionEnd=n,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(t){if(!this.isEditing&&this.editable)return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(t),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(t){t._iTextInstances&&t._iTextInstances.forEach(function(t){t.selected=!1,t.isEditing&&t.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(t){if(this.__isMousedown&&this.isEditing){var e=this.getSelectionStartFromPointer(t.e),n=this.selectionStart,i=this.selectionEnd;(e===this.__selectionStartOnMouseDown&&n!==i||n!==e&&i!==e)&&(e>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=e):(this.selectionStart=e,this.selectionEnd=this.__selectionStartOnMouseDown),this.selectionStart===n&&this.selectionEnd===i||(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}}
vendor: 10,309 bytes, line 1
1,_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(t,e,n){var i=n.slice(0,t),r=C.util.string.graphemeSplit(i).length;if(t===e)return{selectionStart:r,selectionEnd:r};var o=n.slice(t,e);return{selectionStart:r,selectionEnd:r+C.util.string.graphemeSplit(o).length}},fromGraphemeToStringSelection:function(t,e,n){var i=n.slice(0,t).join("").length;return t===e?{selectionStart:i,selectionEnd:i}:{selectionStart:i,selectionEnd:i+n.slice(t,e).join("").length}},_updateTextarea:function(){if(this.cursorOffsetCache={},this.hiddenTextarea){if(!this.inCompositionMode){var t=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=t.selectionStart,this.hiddenTextarea.selectionEnd=t.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var t=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=t.selectionEnd,this.inCompositionMode||(this.selectionStart=t.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var t=this._calcTextareaPosition();this.hiddenTextarea.style.left=t.left,this.hiddenTextarea.style.top=t.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var t=this.inCompositionMode?this.compositionStart:this.selectionStart,e=this._getCursorBoundaries(t),n=this.get2DCursorLocation(t),i=this.getValueOfPropertyAt(n.lineIndex,n.charIndex,"fontSize")*this.lineHeight,r=e.leftOffset,o=this.calcTransformMatrix(),a={x:e.left+r,y:e.top+e.topOffset+i},s=this.canvas.upperCanvasEl,l=s.width,u=s.height,c=l-i,h=u-i,d=s.clientWidth/l,p=s.clientHeight/u;return a=C.util.transformPoint(a,o),(a=C.util.transformPoint(a,this.canvas.viewportTransform)).x*=d,a.y*=p,a.x<0&&(a.x=0),a.x>c&&(a.x=c),a.y<0&&(a.y=0),a.y>h&&(a.y=h),a.x+=this.canvas._offset.left,a.y+=this.canvas._offset.top,{left:a.x+"px",top:a.y+"px",fontSize:i+"px",charHeight:i}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){this._savedProps&&(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var t=this._textBeforeEdit!==this.text;return this.selected=!1,this.isEditing=!1,this.selectable=!0,this.selectionEnd=this.selectionStart,this.hiddenTextarea&&(this.hiddenTextarea.blur&&this.hiddenTextarea.blur(),this.canvas&&this.hiddenTextarea.parentNode.removeChild(this.hiddenTextarea),this.hiddenTextarea=null),this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),t&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),t&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var t in this.styles)this._textLines[t]||delete this.styles[t]},removeStyleFromTo:function(t,e){var n,i,r=this.get2DCursorLocation(t,!0),o=this.get2DCursorLocation(e,!0),a=r.lineIndex,s=r.charIndex,l=o.lineIndex,u=o.charIndex;if(a!==l){if(this.styles[a])for(n=s;n<this._unwrappedTextLines[a].length;n++)delete this.styles[a][n];if(this.styles[l])for(n=u;n<this._unwrappedTextLines[l].length;n++)(i=this.styles[l][n])&&(this.styles[a]||(this.styles[a]={}),this.styles[a][s+n-u]=i);for(n=a+1;n<=l;n++)delete this.styles[n];this.shiftLineStyles(l,a-l)}else if(this.styles[a]){i=this.styles[a];var c,h,d=u-s;for(n=s;n<u;n++)delete i[n];for(h in this.styles[a])(c=parseInt(h,10))>=u&&(i[c-d]=i[h],delete i[h])}},shiftLineStyles:function(t,e){var n=m(this.styles);for(var i in this.styles){var r=parseInt(i,10);r>t&&(this.styles[r+e]=n[r],n[r-e]||delete this.styles[r])}},restartCursorIfNeeded:function(){this._currentTickState&&!this._currentTickState.isAborted&&this._currentTickCompleteState&&!this._currentTickCompleteState.isAborted||this.initDelayedCursor()},insertNewlineStyleObject:function(t,e,n,i){var r,o={},a=!1;for(var s in n||(n=1),this.shiftLineStyles(t,n),this.styles[t]&&(r=this.styles[t][0===e?e:e-1]),this.styles[t]){var l=parseInt(s,10);l>=e&&(a=!0,o[l-e]=this.styles[t][s],delete this.styles[t][s])}for(a?this.styles[t+n]=o:delete this.styles[t+n];n>1;)n--,i&&i[n]?this.styles[t+n]={0:m(i[n])}:r?this.styles[t+n]={0:m(r)}:delete this.styles[t+n];this._forceClearCache=!0},insertCharStyleObject:function(t,e,n,i){this.styles||(this.styles={});var r=this.styles[t],o=r?m(r):{};for(var a in n||(n=1),o){var s=parseInt(a,10);s>=e&&(r[s+n]=o[s],o[s-n]||delete r[s])}if(this._forceClearCache=!0,i)for(;n--;)Object.keys(i[n]).length&&(this.styles[t]||(this.styles[t]={}),this.styles[t][e+n]=m(i[n]));else if(r)for(var l=r[e?e-1:1];l&&n--;)this.styles[t][e+n]=m(l)},insertNewStyleBlock:function(t,e,n){for(var i=this.get2DCursorLocation(e,!0),r=[0],o=0,a=0;a<t.length;a++)"\n"===t[a]?r[++o]=0:r[o]++;for(r[0]>0&&(this.insertCharStyleObject(i.lineIndex,i.charIndex,r[0],n),n=n&&n.slice(r[0]+1)),o&&this.insertNewlineStyleObject(i.lineIndex,i.charIndex+r[0],o),a=1;a<o;a++)r[a]>0?this.insertCharStyleObject(i.lineIndex+a,0,r[a],n):n&&(this.styles[i.lineIndex+a][0]=n[0]),n=n&&n.slice(r[a]+1);r[a]>0&&this.insertCharStyleObject(i.lineIndex+a,0,r[a],n)},setSelectionStartEndWithShift:function(t,e,n){n<=t?(e===t?this._selectionDirection="left":"right"===this._selectionDirection&&(this._selectionDirection="left",this.selectionEnd=t),this.selectionStart=n):n>t&&n<e?"right"===this._selectionDirection?this.selectionEnd=n:this.selectionStart=n:(e===t?this._selectionDirection="right":"left"===this._selectionDirection&&(this._selectionDirection="right",this.selectionStart=e),this.selectionEnd=n)},setSelectionInBoundaries:function(){var t=this.text.length;this.selectionStart>t?this.selectionStart=t:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>t?this.selectionEnd=t:this.selectionEnd<0&&(this.selectionEnd=0)}}),C.util.object.extend(C.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown.bind(this))},onMouseDown:function(t){if(this.canvas){this.__newClickTime=+new Date;var e=this.canvas.getPointer(t.e);this.isTripleClick(e)&&(this.fire("tripleclick",t),this._stopEvent(t.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=e,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(t){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===t.x&&this.__lastPointer.y===t.y},_stopEvent:function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},initClicks:function(){this.on("mousedblclick",function(t){this.selectWord(this.getSelectionStartFromPointer(t.e))}),this.on("tripleclick",function(t){this.selectLine(this.getSelectionStartFromPointer(t.e))})},_mouseDownHandler:function(t){if(this.canvas&&this.editable&&(!t.e.button||1===t.e.button)){var e=this.canvas.getPointer(t.e);this.__mousedownX=e.x,this.__mousedownY=e.y,this.__isMousedown=!0,this.selected&&this.setCursorByClick(t.e),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection())}},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler)},_isObjectMoved:function(t){var e=this.canvas.getPointer(t);return this.__mousedownX!==e.x||this.__mousedownY!==e.y},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(t){this.__isMousedown=!1,!this.editable||this._isObjectMoved(t.e)||t.e.button&&1!==t.e.button||(this.__lastSelected&&!this.__corner&&(this.enterEditing(t.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()),this.selected=!0)},setCursorByClick:function(t){var e=this.getSelectionStartFromPointer(t);t.shiftKey?this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,e):(this.selectionStart=e,this.selectionEnd=e),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(t){for(var e=this.getLocalPointer(t),n=0,i=0,r=0,o=0,a=0,s=0,l=this._textLines.length;s<l&&r<=e.y;s++)r+=this.getHeightOfLine(s)*this.scaleY,a=s,s>0&&(o+=this._textLines[s-1].length+1);i=this._getLineLeftOffset(a)*this.scaleX;for(var u=0,c=this._textLines[a].length;u<c&&(n=i,(i+=this.__charBounds[a][u].kernedWidth*this.scaleX)<=e.x);u++)o++;return this._getNewSelectionStartFromOffset(e,n,i,o,c)},_getNewSelectionStartFromOffset:function(t,e,n,i,r){var o=n-t.x,a=i+(o>t.x-e||o<0?0:1);return this.flipX&&(a=r-a),a>this._text.length&&(a=this._text.length),a}}),C.util.object.extend(C.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=C.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","fal
1se"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var t=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+t.top+"; left: "+t.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; line-height: 1px; padding\uff70top: "+t.fontSize+";",C.document.body.appendChild(this.hiddenTextarea),C.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),C.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),C.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),C.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),C.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),C.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),C.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),C.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),C.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(C.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(t){if(this.isEditing&&!this.inCompositionMode){if(t.keyCode in this.keysMap)this[this.keysMap[t.keyCode]](t);else{if(!(t.keyCode in this.ctrlKeysMapDown&&(t.ctrlKey||t.metaKey)))return;this[this.ctrlKeysMapDown[t.keyCode]](t)}t.stopImmediatePropagation(),t.preventDefault(),t.keyCode>=33&&t.keyCode<=40?(this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(t){!this.isEditing||this._copyDone||this.inCompositionMode?this._copyDone=!1:t.keyCode in this.ctrlKeysMapUp&&(t.ctrlKey||t.metaKey)&&(this[this.ctrlKeysMapUp[t.keyCode]](t),t.stopImmediatePropagation(),t.preventDefault(),this.canvas&&this.canvas.requestRenderAll())},onInput:function(t){var e=this.fromPaste;if(this.fromPaste=!1,t&&t.stopPropagation(),this.isEditing){var n,i,r=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,o=this._text.length,a=r.length,s=a-o;if(""===this.hiddenTextarea.value)return this.styles={},this.updateFromTextArea(),this.fire("changed"),void(this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll()));var l=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),u=this.selectionStart>l.selectionStart;this.selectionStart!==this.selectionEnd?(n=this._text.slice(this.selectionStart,this.selectionEnd),s+=this.selectionEnd-this.selectionStart):a<o&&(n=u?this._text.slice(this.selectionEnd+s,this.selectionEnd):this._text.slice(this.selectionStart,this.selectionStart-s)),i=r.slice(l.selectionEnd-s,l.selectionEnd),n&&n.length&&(this.selectionStart!==this.selectionEnd?this.removeStyleFromTo(this.selectionStart,this.selectionEnd):u?this.removeStyleFromTo(this.selectionEnd-n.length,this.selectionEnd):this.removeStyleFromTo(this.selectionEnd,this.selectionEnd+n.length)),i.length&&(e&&i.join("")===C.copiedText?this.insertNewStyleBlock(i,this.selectionStart,C.copiedTextStyle):this.insertNewStyleBlock(i,this.selectionStart)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(t){this.compositionStart=t.target.selectionStart,this.compositionEnd=t.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(C.copiedText=this.getSelectedText(),C.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(t){return t&&t.clipboardData||C.window.clipboardData},_getWidthBeforeCursor:function(t,e){var n,i=this._getLineLeftOffset(t);return e>0&&(i+=(n=this.__charBounds[t][e-1]).left+n.width),i},getDownCursorOffset:function(t,e){var n=this._getSelectionForOffset(t,e),i=this.get2DCursorLocation(n),r=i.lineIndex;if(r===this._textLines.length-1||t.metaKey||34===t.keyCode)return this._text.length-n;var o=i.charIndex,a=this._getWidthBeforeCursor(r,o),s=this._getIndexOnLine(r+1,a);return this._textLines[r].slice(o).length+s+2},_getSelectionForOffset:function(t,e){return t.shiftKey&&this.selectionStart!==this.selectionEnd&&e?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(t,e){var n=this._getSelectionForOffset(t,e),i=this.get2DCursorLocation(n),r=i.lineIndex;if(0===r||t.metaKey||33===t.keyCode)return-n;var o=i.charIndex,a=this._getWidthBeforeCursor(r,o),s=this._getIndexOnLine(r-1,a),l=this._textLines[r].slice(0,o);return-this._textLines[r-1].length+s-l.length},_getIndexOnLine:function(t,e){for(var n,i,r=this._textLines[t],o=this._getLineLeftOffset(t),a=0,s=0,l=r.length;s<l;s++)if((o+=n=this.__charBounds[t][s].width)>e){i=!0;var u=o,c=Math.abs(o-n-e);a=Math.abs(u-e)<c?s:s-1;break}
1return i||(a=r.length-1),a},moveCursorDown:function(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",t)},moveCursorUp:function(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorUpOrDown("Up",t)},_moveCursorUpOrDown:function(t,e){var n=this["get"+t+"CursorOffset"](e,"right"===this._selectionDirection);e.shiftKey?this.moveCursorWithShift(n):this.moveCursorWithoutShift(n),0!==n&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(t){return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,"left"===this._selectionDirection?this.selectionStart+t:this.selectionEnd+t),0!==t},moveCursorWithoutShift:function(t){return t<0?(this.selectionStart+=t,this.selectionEnd=this.selectionStart):(this.selectionEnd+=t,this.selectionStart=this.selectionEnd),0!==t},moveCursorLeft:function(t){0===this.selectionStart&&0===this.selectionEnd||this._moveCursorLeftOrRight("Left",t)},_move:function(t,e,n){var i;if(t.altKey)i=this["findWordBoundary"+n](this[e]);else{if(!t.metaKey&&35!==t.keyCode&&36!==t.keyCode)return this[e]+="Left"===n?-1:1,!0;i=this["findLineBoundary"+n](this[e])}if(void 0!==typeof i&&this[e]!==i)return this[e]=i,!0},_moveLeft:function(t,e){return this._move(t,e,"Left")},_moveRight:function(t,e){return this._move(t,e,"Right")},moveCursorLeftWithoutShift:function(t){var e=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&0!==this.selectionStart&&(e=this._moveLeft(t,"selectionStart")),this.selectionEnd=this.selectionStart,e},moveCursorLeftWithShift:function(t){return"right"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveLeft(t,"selectionEnd"):0!==this.selectionStart?(this._selectionDirection="left",this._moveLeft(t,"selectionStart")):void 0},moveCursorRight:function(t){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",t)},_moveCursorLeftOrRight:function(t,e){var n="moveCursor"+t+"With";this._currentCursorOpacity=1,this[n+=e.shiftKey?"Shift":"outShift"](e)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(t){return"left"===this._selectionDirection&&this.selectionStart!==this.selectionEnd?this._moveRight(t,"selectionStart"):this.selectionEnd!==this._text.length?(this._selectionDirection="right",this._moveRight(t,"selectionEnd")):void 0},moveCursorRightWithoutShift:function(t){var e=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(e=this._moveRight(t,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,e},removeChars:function(t,e){void 0===e&&(e=t+1),this.removeStyleFromTo(t,e),this._text.splice(t,e-t),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(t,e,n,i){void 0===i&&(i=n),i>n&&this.removeStyleFromTo(n,i);var r=C.util.string.graphemeSplit(t);this.insertNewStyleBlock(r,n,e),this._text=[].concat(this._text.slice(0,n),r,this._text.slice(i)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),v=C.util.toFixed,y=/ +/g,C.util.object.extend(C.Text.prototype,{toSVG:function(t){var e=this._createBaseSVGMarkup(),n=this._getSVGLeftTopOffsets(),i=this._getSVGTextAndBg(n.textTop,n.textLeft);return this._wrapSVGTextAndBg(e,i),t?t(e.join("")):e.join("")},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(t,e){var n=this.getSvgFilter(),i=""===n?"":' style="'+n+'"',r=this.getSvgTextDecoration(this);t.push("\t<g ",this.getSvgId(),'transform="',this.getSvgTransform(),this.getSvgTransformMatrix(),'"',i,">\n",e.textBgRects.join(""),'\t\t<text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",r?'text-decoration="'+r+'" ':"",'style="',this.get
vendor: 4,813 bytes, line 1
1SvgStyles(!0),'"',this.addPaintOrder()," >",e.textSpans.join(""),"</text>\n","\t</g>\n")},_getSVGTextAndBg:function(t,e){var n,i=[],r=[],o=t;this._setSVGBg(r);for(var a=0,s=this._textLines.length;a<s;a++)n=this._getLineLeftOffset(a),(this.textBackgroundColor||this.styleHas("textBackgroundColor",a))&&this._setSVGTextLineBg(r,a,e+n,o),this._setSVGTextLineText(i,a,e+n,o),o+=this.getHeightOfLine(a);return{textSpans:i,textBgRects:r}},_createTextCharSpan:function(t,e,n,i){var r=t!==t.trim()||t.match(y),o=this.getSvgSpanStyles(e,r),a=o?'style="'+o+'"':"",s=e.deltaY,l="",u=C.Object.NUM_FRACTION_DIGITS;return s&&(l=' dy="'+v(s,u)+'" '),['<tspan x="',v(n,u),'" y="',v(i,u),'" ',l,a,">",C.util.string.escapeXml(t),"</tspan>"].join("")},_setSVGTextLineText:function(t,e,n,i){var r,o,a,s,l,u=this.getHeightOfLine(e),c=-1!==this.textAlign.indexOf("justify"),h="",d=0,p=this._textLines[e];i+=u*(1-this._fontSizeFraction)/this.lineHeight;for(var f=0,g=p.length-1;f<=g;f++)l=f===g||this.charSpacing,h+=p[f],a=this.__charBounds[e][f],0===d?(n+=a.kernedWidth-a.width,d+=a.width):d+=a.kernedWidth,c&&!l&&this._reSpaceAndTab.test(p[f])&&(l=!0),l||(r=r||this.getCompleteStyleDeclaration(e,f),o=this.getCompleteStyleDeclaration(e,f+1),l=this._hasStyleChangedForSvg(r,o)),l&&(s=this._getStyleDeclaration(e,f)||{},t.push(this._createTextCharSpan(h,s,n,i)),h="",r=o,n+=d,d=0)},_pushTextBgRect:function(t,e,n,i,r,o){var a=C.Object.NUM_FRACTION_DIGITS;t.push("\t\t<rect ",this._getFillAttributes(e),' x="',v(n,a),'" y="',v(i,a),'" width="',v(r,a),'" height="',v(o,a),'"></rect>\n')},_setSVGTextLineBg:function(t,e,n,i){for(var r,o,a=this._textLines[e],s=this.getHeightOfLine(e)/this.lineHeight,l=0,u=0,c=this.getValueOfPropertyAt(e,0,"textBackgroundColor"),h=0,d=a.length;h<d;h++)r=this.__charBounds[e][h],(o=this.getValueOfPropertyAt(e,h,"textBackgroundColor"))!==c?(c&&this._pushTextBgRect(t,c,n+u,i,l,s),u=r.left,l=r.width,c=o):l+=r.kernedWidth;o&&this._pushTextBgRect(t,o,n+u,i,l,s)},_getFillAttributes:function(t){var e=t&&"string"==typeof t?new C.Color(t):"";return e&&e.getSource()&&1!==e.getAlpha()?'opacity="'+e.getAlpha()+'" fill="'+e.setAlpha(1).toRgb()+'"':'fill="'+t+'"'},_getSVGLineTopOffset:function(t){for(var e,n=0,i=0;i<t;i++)n+=this.getHeightOfLine(i);return e=this.getHeightOfLine(i),{lineTop:n,offset:(this._fontSizeMult-this._fontSizeFraction)*e/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(t){return C.Object.prototype.getSvgStyles.call(this,t)+" white-space: pre;"}}),function(t){"use strict";var n=e.fabric||(e.fabric={});n.Textbox=n.util.createClass(n.IText,n.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:n.Text.prototype._dimensionAffectingProps.concat("width"),initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),-1!==this.textAlign.indexOf("justify")&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(t){for(var e=0,n=0,i=0,r={},o=0;o<t.graphemeLines.length;o++)"\n"===t.graphemeText[i]&&o>0?(n=0,i++,e++):this._reSpaceAndTab.test(t.graphemeText[i])&&o>0&&(n++,i++),r[o]={line:e,offset:n},i+=t.graphemeLines[o].length,n+=t.graphemeLines[o].length;return r},styleHas:function(t,e){if(this._styleMap&&!this.isWrapping){var i=this._styleMap[e];i&&(e=i.line)}return n.Text.prototype.styleHas.call(this,t,e)},isEmptyStyles:function(t){var e,n,i=0,r=!1,o=this._styleMap[t],a=this._styleMap[t+1];for(var s in o&&(t=o.line,i=o.offset),a&&(r=a.line===t,e=a.offset),n=void 0===t?this.styles:{line:this.styles[t]})for(var l in n[s])if(l>=i&&(!r||l<e))for(var u in n[s][l])return!1;return!0},_getStyleDeclaration:function(t,e){if(this._styleMap&&!this.isWrapping){var n=this._styleMap[t];if(!n)return null;t=n.line,e=n.offset+e}return this.callSuper("_getStyleDeclaration",t,e)},_setStyleDeclaration:function(t,e,n){var i=this._styleMap[t];this.styles[t=i.line][e=i.offset+e]=n},_deleteStyleDeclaration:function(t,e){var n=this._styleMap[t];delete this.styles[t=n.line][e=n.offset+e]},_getLineStyle:function(t){return this.styles[this._styleMap[t].line]},_setLineStyle:function(t,e){this.styles[this._styleMap[t].line]=e},_deleteLineStyle:function(t){delete this.styles[this._styleMap[t].line]},_wrapText:function(t,e){var n,i=[];for(this.isWrapping=!0,n=0;n<t.length;n++)i=i.concat(this._wrapLine(t[n],n,e));return this.isWrapping=!1,i},_measureWord:function(t,e,n){var i,r=0;n=n||0;for(var o=0,a=t.length;o<a;o++)r+=this._getGraphemeBox(t[o],e,o+n,i,!0).kernedWidth,i=t[o];return r}
1,_wrapLine:function(t,e,i,r){var o=0,a=[],s=[],l=t.split(this._reSpaceAndTab),u="",c=0,h=0,d=0,p=0,f=!0,g=this._getWidthOfCharSpacing();i-=r=r||0;for(var m=0;m<l.length;m++)u=n.util.string.graphemeSplit(l[m]),h=this._measureWord(u,e,c),c+=u.length,(o+=d+h-g)>=i&&!f?(a.push(s),s=[],o=h,f=!0):o+=g,f||s.push(" "),s=s.concat(u),d=this._measureWord([" "],e,c),c++,f=!1,h>p&&(p=h);return m&&a.push(s),p+r>this.dynamicMinWidth&&(this.dynamicMinWidth=p-g+r),a},isEndOfWrapping:function(t){return!this._styleMap[t+1]||this._styleMap[t+1].line!==this._styleMap[t].line},_splitTextIntoLines:function(t){for(var e=n.Text.prototype._splitTextIntoLines.call(this,t),i=this._wrapText(e.lines,this.width),r=new Array(i.length),o=0;o<i.length;o++)r[o]=i[o].join("");return e.lines=r,e.graphemeLines=i,e},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},toObject:function(t){return this.callSuper("toObject",["minWidth"].concat(t))}}),n.Textbox.fromObject=function(t,e){return n.Object._fromObject("Textbox",t,e,"text")}}(),b=C.Canvas.prototype._setObjectScale,C.Canvas.prototype._setObjectScale=function(t,e,n,i,r,o,a){var s=e.target;if(!("x"===r&&s instanceof C.Textbox))return b.call(C.Canvas.prototype,t,e,n,i,r,o,a);var l=s._getTransformedDimensions().x,u=s.width*(t.x/l);return u>=s.getMinWidth()?(s.set("width",u),!0):void 0},C.util.object.extend(C.Textbox.prototype,{_removeExtraneousStyles:function(){for(var t in this._styleMap)this._textLines[t]||delete this.styles[this._styleMap[t].line]}})},gjZL:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("CcnG"),r=n("Ip0R"),o=n("z7B4"),a=n("z4fs"),s=n("DC8U"),l=n("1kbU");e.ColorPickerModule=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{imports:[r.CommonModule],providers:[a.ColorPickerService],declarations:[s.ColorPickerComponent,l.ColorPickerDirective,o.TextDirective,o.SliderDirective],exports:[l.ColorPickerDirective],entryComponents:[s.ColorPickerComponent]}]}],t}()},hLX6:function(t,e,n){"use strict";function i(t,e){var n,i;if("function"==typeof e)void 0!==(i=e(t))&&(t=i);else if(Array.isArray(e))for(n=0;n<e.length;n++)void 0!==(i=e[n](t))&&(t=i);return t}function r(t,e){return"-"===t[0]&&Array.isArray(e)&&/^-\d+$/.test(t)?e.length+parseInt(t,10):t}function o(t){return"[object Object]"===Object.prototype.toString.call(t)}function a(t){return Object(t)===t}function s(t){return 0===Object.keys(t).length}function l(t,e){return t.indexOf("[")>=0&&(t=t.replace(/\[/g,".").replace(/]/g,"")),t.split(e)}function u(t,e,n){if(!(this instanceof u))return new u(t,e,n);void 0===e&&(e=!1),void 0===n&&(n=!0),this.seperator=t||".",this.override=e,this.useArray=n,this.keepArray=!1,this.cleanup=[]}var c=new u(".",!1,!0);function h(t){return function(){return c[t].apply(c,arguments)}}u.prototype._fill=function(t,e,n,r){var o=t.shift();if(t.length>0){if(e[o]=e[o]||(this.useArray&&/^\d+/.test(t[0])?[]:{}),!a(e[o])){if(!this.override){if(!a(n)||!s(n))throw new Error("Trying to redefine `"+o+"` which is a "+typeof e[o]);return}e[o]={}}this._fill(t,e[o],n,r)}else{if(!this.override&&a(e[o])&&!s(e[o])){if(!a(n)||!s(n))throw new Error("Trying to redefine non-empty obj['"+o+"']");return}e[o]=i(n,r)}},u.prototype.object=function(t,e){var n=this;return Object.keys(t).forEach(function(r){var o=void 0===e?null:e[r],a=l(r,n.seperator).join(n.seperator);-1!==a.indexOf(n.seperator)?(n._fill(a.split(n.seperator),t,t[r],o),delete t[r]):n.override&&(t[r]=i(t[r],o))}),t},u.prototype.str=function(t,e,n,r){return-1!==t.indexOf(this.seperator)?this._fill(t.split(this.seperator),n,e,r):n.hasOwnProperty(t)&&!this.override||(n[t]=i(e,r)),n},u.prototype.pick=function(t,e,n){var i,o,a,s,u;for(o=l(t,this.seperator),i=0;i<o.length;i++){if(s=r(o[i],e),!(e&&"object"==typeof e&&s in e))return;if(i===o.length-1)return n?(a=e[s],delete e[s],Array.isArray(e)&&(u=o.slice(0,-1).join("."),-1===this.cleanup.indexOf(u)&&this.cleanup.push(u)),a):e[s];e=e[s]}return n&&Array.isArray(e)&&(e=e.filter(function(t){return void 0!==t})),e},u.prototype.remove=function(t,e){var n;if(this.cleanup=[],Array.isArray(t)){for(n=0;n<t.length;n++)this.pick(t[n],e,!0);return this._cleanup(e),e}return this.pick(t,e,!0)},u.prototype._cleanup=function(t){var e,n,i,r;if(this.cleanup.length){for(n=0;n<this.cleanup.length;n++)e=(e=(r=(i=this.cleanup[n].split(".")).splice(0,-1).join("."))?this.pick(r,t):t)[i[0]].filter(function(t){return void 0!==t}),this.set(this.cleanup[n],e,t);this.cleanup=[]}},u.prototype.del=u.prototype.remove,u.prototype.move=function(t,e,n,r,o){return"function"==typeof r||Array.isArray(r)?this.set(e,i(this.pick(t,n,!0),r),n,o):(o=r,this.set(e,this.pick(t,n,!0),n,o)),n},u.prototype.transfer=function(t,e,n,r,o,a){return"function"==typeof o||Array.isArray(o)?this.set(e,i(this.pick(t,n,!0),o),r,a):(a=o,this.set(e,this.pick(t,n,!0),r,a)),r},u.prototype.copy=function(t,e,n,r,o,a){return"function"==typeof o||Array.isArray(o)?this.set(e,i(JSON.parse(JSON.stringify(this.pick(t,n,!1))),o),r,a):(a=o,this.set(e,this.pick(t,n,!1),r,a)),r},u.prototype.set=function(t,e,n,i){var r,a,s,u;if(void 0===e)return n;for(s=l(t,this.seperator),r=0;r<s.length;r++){if(u=s[r],r===s.length-1)if(i&&o(e)&&o(n[u]))for(a in e)e.hasOwnProperty(a)&&(n[u][a]=e[a]);else if(i&&Array.isArray(n[u])&&Array.isArray(e))for(var c=0;c<e.length;c++)n[s[r]].push(e[c]);else n[u]=e;else n.hasOwnProperty(u)&&(o(n[u])||Array.isArray(n[u]))||(n[u]=/^\d+$/.test(s[r+1])?[]:{});n=n[u]}return n},u.prototype.transform=function(t,e,n){return e=e||{},n=n||{},Object.keys(t).forEach((function(i){this.set(t[i],this.pick(i,e),n)}).bind(this)),n},u.prototype.dot=function(t,e,n){return e=e||{},n=n||[],Object.keys(t).forEach((function(i){if(a(t[i])&&(o(t[i])&&!s(t[i])||Array.isArray(t[i])&&!this.keepArray&&0!==t[i].length))return this.dot(t[i],e,n.concat(i));e[n.concat(i).join(this.seperator)]=t[i]}).bind(this)),e},u.pick=h("pick"),u.move=h("move"),u.transfer=h("transfer"),u.transform=h("transform"),u.copy=h("copy"),u.object=h("object"),u.str=h("str"),u.set=h("set"),u.del=u.remove=h("remove"),u.dot=h("dot"),["override","overwrite"].forEach(function(t){Object.defineProperty(u,t,{get:function(){return c.override},set:function(t){c.override=!!t}})}),["useArray","keepArray"].forEach(function(t){Object.defineProperty(u,t,{get:function(){return c[t]},set:function(e){c[t]=e}})}),u._process=i,t.exports=u},iLxQ:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},isby:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=Array.isArray||function(t){return t&&"number"==typeof t.length}},jT1Q:function(t,e,n){var i=n("4af/"),r=n("BjAV"),o=n("2yAJ"),a=n("v9aN"),s=n("vYjF"),l=s.isErrorEvent,u=s.isDOMError,c=s.isDOMException,h=s.isError,d=s.isObject,p=s.isPlainObject,f=s.isUndefined,g=s.isFunction,m=s.isString,v=s.isArray,y=s.isEmptyObject,b=s.each,_=s.objectMerge,w=s.truncate,x=s.objectFrozen,C=s.hasKey,S=s.joinRegExp,k=s.urlencode,E=s.uuid4,O=s.htmlTreeAsString,T=s.isSameException,A=s.isSameStacktrace,D=s.parseUrl,P=s.fill,I=s.supportsFetch,R=s.supportsReferrerPolicy,j=s.serializeKeysForMessage,M=s.serializeException,F=s.sanitize,N=n("AKyF").wrapMethod,B="source protocol user pass host port path".split(" "),V=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function L(){return+new Date}var z="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}
1,H=z.document,W=z.navigator;function U(t,e){return g(e)?function(n){return e(n,t)}:e}function Y(){for(var t in this._hasJSON=!("object"!=typeof JSON||!JSON.stringify),this._hasDocument=!f(H),this._hasNavigator=!f(W),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:z.SENTRY_RELEASE&&z.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",keepalive:!0,referrerPolicy:R()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=z.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=L(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._location=z.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[t]=this._originalConsole[t]}(Y.prototype={VERSION:"3.25.2",debug:!1,TraceKit:i,config:function(t,e){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!t)return n;var r=n._globalOptions;e&&b(e,function(t,e){"tags"===t||"extra"===t||"user"===t?n._globalContext[t]=e:r[t]=e}),n.setDSN(t),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=S(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&S(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&S(r.whitelistUrls),r.includePaths=S(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var o={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},a=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(a)?a=_(o,a):!1!==a&&(a=o),r.autoBreadcrumbs=a;var s={tryCatch:!0},l=r.instrument;return"[object Object]"==={}.toString.call(l)?l=_(s,l):!1!==l&&(l=s),r.instrument=l,i.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var t=this;return t.isSetup()&&!t._isRavenInstalled&&(i.report.subscribe(function(){t._handleOnErrorStackInfo.apply(t,arguments)}),t._globalOptions.captureUnhandledRejections&&t._attachPromiseRejectionHandler(),t._patchFunctionToString(),t._globalOptions.instrument&&t._globalOptions.instrument.tryCatch&&t._instrumentTryCatch(),t._globalOptions.autoBreadcrumbs&&t._instrumentBreadcrumbs(),t._drainPlugins(),t._isRavenInstalled=!0),Error.stackTraceLimit=t._globalOptions.stackTraceLimit,this},setDSN:function(t){var e=this._parseDSN(t),n=e.path.lastIndexOf("/"),i=e.path.substr(1,n);this._dsn=t,this._globalKey=e.user,this._globalSecret=e.pass&&e.pass.substr(1),this._globalProject=e.path.substr(n+1),this._globalServer=this._getGlobalServer(e),this._globalEndpoint=this._globalServer+"/"+i+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(t,e,n){return g(t)&&(n=e||[],e=t,t=void 0),this.wrap(t,e).apply(this,n)},wrap:function(t,e,n){var i=this;if(f(e)&&!g(t))return t;if(g(t)&&(e=t,t=void 0),!g(e))return e;try{if(e.__raven__)return e;if(e.__raven_wrapper__)return e.__raven_wrapper__}catch(t){return e}function r(){var r=[],o=arguments.length,a=!t||t&&!1!==t.deep;for(n&&g(n)&&n.apply(this,arguments);o--;)r[o]=a?i.wrap(t,arguments[o]):arguments[o];try{return e.apply(this,r)}catch(e){throw i._ignoreNextOnError(),i.captureException(e,t),e}}for(var o in e)C(e,o)&&(r[o]=e[o]);return r.prototype=e.prototype,e.__raven_wrapper__=r,r.__raven__=!0,r.__orig__=e,r},uninstall:function(){return i.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(t){this._logDebug("debug","Raven caught unhandled promise rejection:",t),this.captureException(t.reason,{extra:{unhandledPromiseRejection:!0}
1})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),z.addEventListener&&z.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return z.removeEventListener&&z.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(t,e){if(e=_({trimHeadFrames:0},e||{}),l(t)&&t.error)t=t.error;else{if(u(t)||c(t)){var n=t.name||(u(t)?"DOMError":"DOMException");return this.captureMessage(t.message?n+": "+t.message:n,_(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}))}if(h(t))t=t;else{if(!p(t))return this.captureMessage(t,_(e,{stacktrace:!0,trimHeadFrames:e.trimHeadFrames+1}));e=this._getCaptureExceptionOptionsFromPlainObject(e,t),t=new Error(e.message)}}this._lastCapturedException=t;try{var r=i.computeStackTrace(t);this._handleStackInfo(r,e)}catch(e){if(t!==e)throw e}return this},_getCaptureExceptionOptionsFromPlainObject:function(t,e){var n=Object.keys(e).sort(),i=_(t,{message:"Non-Error exception captured with keys: "+j(n),fingerprint:[o(n)],extra:t.extra||{}});return i.extra.__serialized__=M(e),i},captureMessage:function(t,e){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)){var n,r=_({message:t+=""},e=e||{});try{throw new Error(t)}catch(t){n=t}n.name=null;var o=i.computeStackTrace(n),a=v(o.stack)&&o.stack[1];a&&"Raven.captureException"===a.func&&(a=o.stack[2]);var s=a&&a.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(s))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(s))){if(this._globalOptions.stacktrace||e&&e.stacktrace){r.fingerprint=null==r.fingerprint?t:r.fingerprint,(e=_({trimHeadFrames:0},e)).trimHeadFrames+=1;var l=this._prepareFrames(o,e);r.stacktrace={frames:l.reverse()}}return r.fingerprint&&(r.fingerprint=v(r.fingerprint)?r.fingerprint:[r.fingerprint]),this._send(r),this}}},captureBreadcrumb:function(t){var e=_({timestamp:L()/1e3},t);if(g(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(e);if(d(n)&&!y(n))e=n;else if(!1===n)return this}return this._breadcrumbs.push(e),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(t){var e=[].slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(r(this._globalContext))},setEnvironment:function(t){return this._globalOptions.environment=t,this},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){return this._globalOptions.dataCallback=U(this._globalOptions.dataCallback,t),this},setBreadcrumbCallback:function(t){return this._globalOptions.breadcrumbCallback=U(this._globalOptions.breadcrumbCallback,t),this},setShouldSendCallback:function(t){return this._globalOptions.shouldSendCallback=U(this._globalOptions.shouldSendCallback,t),this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!(!this._hasJSON||!this._globalServer&&(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),1))},afterLoad:function(){var t=z.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(H){var e=(t=t||{}).eventId||this.lastEventId();if(!e)throw new a("Missing eventId");var n=t.dsn||this._dsn;if(!n)throw new a("Missing DSN");var i=encodeURIComponent,r="";r+="?eventId="+i(e),r+="&dsn="+i(n);var o=t.user||this._globalContext.user;o&&(o.name&&(r+="&name="+i(o.name)),o.email&&(r+="&email="+i(o.email)));var s=this._getGlobalServer(this._parseDSN(n)),l=H.createElement("script");l.async=!0,l.src=s+"/api/embed/error-page/"+r,(H.head||H.body).appendChild(l)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var n,i;if(this._hasDocument){for(i in e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),H.createEvent?(n=H.createEvent("HTMLEvents")).initEvent(t,!0,!0):(n=H.createEventObject()).eventType=t,e)C(e,i)&&(n[i]=e[i]);if(H.createEvent)H.dispatchEvent(n);else try{H.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(t){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){var i;e._lastCapturedEvent=n;try{i=O(n.target)}catch(t){i="<unknown>"}e.captureBreadcrumb({category:"ui."+t,message:i})}}},_keypressEventHandler:function(){var t=this;return function(e){var n;try{n=e.target}catch(t){return}var i=n&&n.tagName;if(i&&("INPUT"===i||"TEXTAREA"===i||n.isContentEditable)){var r=t._keypressTimeout;r||t._breadcrumbEventHandler("input")(e),clearTimeout(r),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},1e3)}}},_captureUrlChange:function(t,e){var n=D(this._location.href),i=D(e),r=D(t);this._lastHref=e,n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_patchFunctionToString:function(){var t=this;t._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return t._originalFunctionToString.apply("function"==typeof this&&this.__raven__?this.__orig__:this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var t=this,e=t._wrappedBuiltIns;function n(e){return function(n,i){for(var r=new Array(arguments.length),o=0;o<r.length;++o)r[o]=arguments[o];var a=r[0];return g(a)&&(r[0]=t.wrap(a)),e.apply?e.apply(this,r):e(r[0],r[1])}}var i=this._globalOptions.autoBreadcrumbs;function r(n){var r=z[n]&&z[n].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(P(r,"addEventListener",function(e){return function(r,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=t.wrap(o.handleEvent))}catch(t){}var l,u,c;return i&&i.dom&&("EventTarget"===n||"Node"===n)&&(u=t._breadcrumbEventHandler("click"),c=t._keypressEventHandler(),l=function(t){if(t){var e;try{e=t.type}catch(t){return}return"click"===e?u(t):"keypress"===e?c(t):void 0}}),e.call(this,r,t.wrap(o,void 0,l),a,s)}},e),P(r,"removeEventListener",function(t){return function(e,n,i,r){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(t){}return t.call(this,e,n,i,r)}},e))}P(z,"setTimeout",n,e),P(z,"setInterval",n,e),z.requestAnimationFrame&&P(z,"requestAnimationFrame",function(e){return function(n){return e(t.wrap(n))}},e);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)r(o[a])},_instrumentBreadcrumbs:function(){var t=this,e=this._globalOptions.autoBreadcrumbs,n=t._wrappedBuiltIns;function i(e,n){e in n&&g(n[e])&&P(n,e,function(e){return t.wrap(e)})}if(e.xhr&&"XMLHttpRequest"in z){var r=z.XMLHttpRequest&&z.XMLHttpRequest.prototype;P(r,"open",function(e){return function(n,i){return m(i)&&-1===i.indexOf(t._globalKey)&&(this.__raven_xhr={method:n,url:i,status_code:null}),e.apply(this,arguments)}},n),P(r,"send",function(e){return function(){var n=this;function r(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(t){}t.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var o=["onload","onerror","onprogress"],a=0;a<o.length;a++)i(o[a],n);return"onreadystatechange"in n&&g(n.onreadystatechange)?P(n,"onreadystatechange",function(e){return t.wrap(e,void 0,r)}):n.onreadystatechange=r,e.apply(this,arguments)}},n)}e.xhr&&I()&&P(z,"fetch",function(e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;++i)n[i]=arguments[i];var r,o=n[0],a="GET";if("string"==typeof o?r=o:"Request"in z&&o instanceof z.Request?(r=o.url,o.method&&(a=o.method)):r=""+o,-1!==r.indexOf(t._globalKey))return e.apply(this,n);n[1]&&n[1].method&&(a=n[1].method);var s={method:a,url:r,status_code:null};return e.apply(this,n).then(function(e){return s.status_code=e.status,t.captureBreadcrumb({type:"http",category:"fetch",data:s}),e}).catch(function(e){throw t.captureBreadcrumb({type:"http",category:"fetch",data:s,level:"error"}),e})}},n),e.dom&&this._hasDocument&&(H.addEventListener?(H.addEventListener("click",t._breadcrumbEventHandler("click"),!1),H.addEventListener("keypress",t._keypressEventHandler(),!1)):H.attachEvent&&(H.attachEvent("onclick",t._breadcrumbEventHandler("click")),H.attachEvent("onkeypress",t._keypressEventHandler())));var o=z.chrome;if(e.location&&!(o&&o.app&&o.app.runtime)&&z.history&&z.history.pushState&&z.history.replaceState){var a=z.onpopstate;z.onpopstate=function(){if(t._captureUrlChange(t._lastHref,t._location.href),a)return a.apply(this,arguments)};var s=function(e){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&t._captureUrlChange(t._lastHref,n+""),e.apply(this,arguments)}};P(z.history,"pushState",s,n),P(z.history,"replaceState",s,n)}if(e.console&&"console"in z&&console.log){var l=function(e,n){t.captureBreadcrumb({message:e,level:n.level,category:"console"})};b(["debug","info","warn","error","log"],function(t,e){N(console,e,l)})}},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;)(t=this._wrappedBuiltIns.shift())[0][t[1]]=t[2]},_restoreConsole:function(){for(var t in this._originalConsoleMethods)this._originalConsole[t]=this._originalConsoleMethods[t]},_drainPlugins:function(){var t=this;
1b(this._plugins,function(e,n){n[0].apply(t,[t].concat(n[1]))})},_parseDSN:function(t){var e=V.exec(t),n={},i=7;try{for(;i--;)n[B[i]]=e[i]||""}catch(e){throw new a("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new a("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var n=this._prepareFrames(t,e);this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,n,e)},_prepareFrames:function(t,e){var n=this,i=[];if(t.stack&&t.stack.length&&(b(t.stack,function(e,r){var o=n._normalizeFrame(r,t.url);o&&i.push(o)}),e&&e.trimHeadFrames))for(var r=0;r<e.trimHeadFrames&&r<i.length;r++)i[r].in_app=!1;return i=i.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(t,e){var n={filename:t.url,lineno:t.line,colno:t.column,function:t.func||"?"};return t.url||(n.filename=e),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(t,e,n,i,r,o){var a,s=(t?t+": ":"")+(e||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)&&!this._globalOptions.ignoreErrors.test(s))&&(r&&r.length?(n=r[0].filename||n,r.reverse(),a={frames:r}):n&&(a={frames:[{filename:n,lineno:i,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var l=_({exception:{values:[{type:t,value:e,stacktrace:a}]},transaction:n},o);this._send(l)}},_trimPacket:function(t){var e=this._globalOptions.maxMessageLength;if(t.message&&(t.message=w(t.message,e)),t.exception){var n=t.exception.values[0];n.value=w(n.value,e)}var i=t.request;return i&&(i.url&&(i.url=w(i.url,this._globalOptions.maxUrlLength)),i.Referer&&(i.Referer=w(i.Referer,this._globalOptions.maxUrlLength))),t.breadcrumbs&&t.breadcrumbs.values&&this._trimBreadcrumbs(t.breadcrumbs),t},_trimBreadcrumbs:function(t){for(var e,n,i,r=["to","from","url"],o=0;o<t.values.length;++o)if((n=t.values[o]).hasOwnProperty("data")&&d(n.data)&&!x(n.data)){i=_({},n.data);for(var a=0;a<r.length;++a)i.hasOwnProperty(e=r[a])&&i[e]&&(i[e]=w(i[e],this._globalOptions.maxUrlLength));t.values[o].data=i}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var t={};return this._hasNavigator&&W.userAgent&&(t.headers={"User-Agent":W.userAgent}),z.location&&z.location.href&&(t.url=z.location.href),this._hasDocument&&H.referrer&&(t.headers||(t.headers={}),t.headers.Referer=H.referrer),t}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&L()-this._backoffStart<this._backoffDuration},_isRepeatData:function(t){var e=this._lastData;return!(!e||t.message!==e.message||t.transaction!==e.transaction)&&(t.stacktrace||e.stacktrace?A(t.stacktrace,e.stacktrace):!t.exception&&!e.exception||T(t.exception,e.exception))},_setBackoffState:function(t){if(!this._shouldBackoff()){var e=t.status;if(400===e||401===e||429===e){var n;try{n=I()?t.headers.get("Retry-After"):t.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(t){}this._backoffDuration=n||2*this._backoffDuration||1e3,this._backoffStart=L()}}},_send:function(t){var e=this._globalOptions,n={project:this._globalProject,logger:e.logger,platform:"javascript"},i=this._getHttpData();i&&(n.request=i),t.trimHeadFrames&&delete t.trimHeadFrames,(t=_(n,t)).tags=_(_({},this._globalContext.tags),t.tags),t.extra=_(_({},this._globalContext.extra),t.extra),t.extra["session:duration"]=L()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(t.user=this._globalContext.user),e.environment&&(t.environment=e.environment),e.release&&(t.release=e.release),e.serverName&&(t.server_name=e.serverName),t=this._sanitizeData(t),Object.keys(t).forEach(function(e){(null==t[e]||""===t[e]||y(t[e]))&&delete t[e]}),g(e.dataCallback)&&(t=e.dataCallback(t)||t),t&&!y(t)&&(g(e.shouldSe
1ndCallback)&&!e.shouldSendCallback(t)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",t):"number"==typeof e.sampleRate?Math.random()<e.sampleRate&&this._sendProcessedPayload(t):this._sendProcessedPayload(t)))},_sanitizeData:function(t){return F(t,this._globalOptions.sanitizeKeys)},_getUuid:function(){return E()},_sendProcessedPayload:function(t,e){var n=this,i=this._globalOptions;if(this.isSetup())if(t=this._trimPacket(t),this._globalOptions.allowDuplicates||!this._isRepeatData(t)){this._lastEventId=t.event_id||(t.event_id=this._getUuid()),this._lastData=t,this._logDebug("debug","Raven about to send:",t);var r={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(r.sentry_secret=this._globalSecret);var o=t.exception&&t.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:t.message,event_id:t.event_id,level:t.level||"error"});var a=this._globalEndpoint;(i.transport||this._makeRequest).call(this,{url:a,auth:r,data:t,options:i,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:t,src:a}),e&&e()},onError:function(i){n._logDebug("error","Raven transport failed to send: ",i),i.request&&n._setBackoffState(i.request),n._triggerEvent("failure",{data:t,src:a}),i=i||new Error("Raven send failed (no additional details provided)"),e&&e(i)}})}else this._logDebug("warn","Raven dropped repeat event: ",t)},_makeRequest:function(t){var e=t.url+"?"+k(t.auth),n=null,i={};if(t.options.headers&&(n=this._evaluateHash(t.options.headers)),t.options.fetchParameters&&(i=this._evaluateHash(t.options.fetchParameters)),I()){i.body=r(t.data);var o=_({},this._fetchDefaults),a=_(o,i);return n&&(a.headers=n),z.fetch(e,a).then(function(e){if(e.ok)t.onSuccess&&t.onSuccess();else{var n=new Error("Sentry error code: "+e.status);n.request=e,t.onError&&t.onError(n)}}).catch(function(){t.onError&&t.onError(new Error("Sentry error code: network unavailable"))})}var s=z.XMLHttpRequest&&new z.XMLHttpRequest;s&&("withCredentials"in s||"undefined"!=typeof XDomainRequest)&&("withCredentials"in s?s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)t.onSuccess&&t.onSuccess();else if(t.onError){var e=new Error("Sentry error code: "+s.status);e.request=s,t.onError(e)}}:(s=new XDomainRequest,e=e.replace(/^https?:/,""),t.onSuccess&&(s.onload=t.onSuccess),t.onError&&(s.onerror=function(){var e=new Error("Sentry error code: XDomainRequest");e.request=s,t.onError(e)})),s.open("POST",e),n&&b(n,function(t,e){s.setRequestHeader(t,e)}),s.send(r(t.data)))},_evaluateHash:function(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[n]="function"==typeof i?i():i}return e},_logDebug:function(t){this._originalConsoleMethods[t]&&(this.debug||this._globalOptions.debug)&&Function.prototype.apply.call(this._originalConsoleMethods[t],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(t,e){f(e)?delete this._globalContext[t]:this._globalContext[t]=_(this._globalContext[t]||{},e)}}).setUser=Y.prototype.setUserContext,Y.prototype.setReleaseContext=Y.prototype.setRelease,t.exports=Y},mrSG:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return l});var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t};function a(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}},nkY7:function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return i})},p0ib:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("6blF"),r=n("nkY7"),o=n("Zn8D"),a=n("IUTb");function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,s=null,l=t[t.length-1];return Object(r.a)(l)?(s=t.pop(),t.length>
11&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof l&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof i.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},psW0:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("mrSG"),r=n("zotm"),o=n("MGBS"),a=n("67Y/"),s=n("0/uQ");function l(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(l(function(n,i){return Object(s.a)(t(n,i)).pipe(Object(a.a)(function(t,r){return e(n,t,i,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new u(t,n))})}var u=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent))},t}(),c=function(t){function e(e,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=t.call(this,e)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i.b(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(Object(r.a)(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},pugT:function(t,e,n){"use strict";var i=n("isby"),r=n("McSo"),o=n("2Bdj"),a=n("Ehmk"),s=n("eihs"),l=n("mrSG"),u=function(t){function e(n){var i=t.call(this,n?n.length+" errors occurred during unsubscription:\n "+n.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"")||this;return i.errors=n,i.name="UnsubscriptionError",Object.setPrototypeOf(i,e.prototype),i}return l.b(e,t),e}(Error);n.d(e,"a",function(){return c});var c=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this._parent,l=this._parents,c=this._unsubscribe,d=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,f=l?l.length:0;n;)n.remove(this),n=++p<f&&l[p]||null;if(Object(o.a)(c)&&Object(a.a)(c).call(this)===s.a&&(e=!0,t=t||(s.a.e instanceof u?h(s.a.e.errors):[s.a.e])),Object(i.a)(d))for(p=-1,f=d.length;++p<f;){var g=d[p];if(Object(r.a)(g)&&Object(a.a)(g.unsubscribe).call(g)===s.a){e=!0,t=t||[];var m=s.a.e;m instanceof u?t=t.concat(h(m.errors)):t.push(m)}}if(e)throw new u(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var i=n;(n=new t)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this._parent,n=this._parents;e&&e!==t?n?-1===n.indexOf(t)&&n.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((e=new t).closed=!0,e),t}();function h(t){return t.reduce(function(t,e){return t.concat(e instanceof u?e.errors:e)},[])}}
1,u67D:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("En8+"),r=function(t){return function(e){for(var n=t[i.a]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e}}},uMaO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("mrSG"),r=function(t){function e(e,n){var i=t.call(this)||this;return i.subject=e,i.subscriber=n,i.closed=!1,i}return i.b(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("pugT").a)},v9aN:function(t,e){function n(t){this.name="RavenConfigError",this.message=t}(n.prototype=new Error).constructor=n,t.exports=n},vYjF:function(t,e,n){var i=n("BjAV"),r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return void 0===t}function a(t){return"[object Object]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function l(t){return"[object Array]"===Object.prototype.toString.call(t)}function u(){if(!("fetch"in r))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function c(t,e){var n,i;if(o(t.length))for(n in t)d(t,n)&&e.call(null,n,t[n]);else if(i=t.length)for(n=0;n<i;n++)e.call(null,n,t[n])}function h(t,e){if("number"!=typeof e)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof t||0===e?t:t.length<=e?t:t.substr(0,e)+"\u2026"}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function p(t){for(var e,n=[],i=0,r=t.length;i<r;i++)s(e=t[i])?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function f(t){var e,n,i,r,o,a=[];if(!t||!t.tagName)return"";if(a.push(t.tagName.toLowerCase()),t.id&&a.push("#"+t.id),(e=t.className)&&s(e))for(n=e.split(/\s+/),o=0;o<n.length;o++)a.push("."+n[o]);var l=["type","name","title","alt"];for(o=0;o<l.length;o++)(r=t.getAttribute(i=l[o]))&&a.push("["+i+'="'+r+'"]');return a.join("")}function g(t,e){return!!(!!t^!!e)}function m(t,e){if(g(t,e))return!1;var n,i,r=t.frames,o=e.frames;if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++)if((n=r[a]).filename!==(i=o[a]).filename||n.lineno!==i.lineno||n.colno!==i.colno||n.function!==i.function)return!1;return!0}function v(t){if("string"==typeof t)return h(t,40);if("number"==typeof t||"boolean"==typeof t||void 0===t)return t;var e=Object.prototype.toString.call(t);return"[object Object]"===e?"[Object]":"[object Array]"===e?"[Array]":"[object Function]"===e?t.name?"[Function: "+t.name+"]":"[Function]":t}t.exports={isObject:function(t){return"object"==typeof t&&null!==t},isError:function(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}},isErrorEvent:function(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)},isDOMError:function(t){return"[object DOMError]"===Object.prototype.toString.call(t)},isDOMException:function(t){return"[object DOMException]"===Object.prototype.toString.call(t)},isUndefined:o,isFunction:function(t){return"function"==typeof t},isPlainObject:a,isString:s,isArray:l,isEmptyObject:function(t){if(!a(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},supportsErrorEvent:function(){try{return new ErrorEvent(""),!0}catch(t){return!1}},supportsDOMError:function(){try{return new DOMError(""),!0}catch(t){return!1}},supportsDOMException:function(){try{return new DOMException(""),!0}catch(t){return!1}},supportsFetch:u,supportsReferrerPolicy:function(){if(!u())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(t){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(t){return function(e,n){var i=t(e)||e;return n&&n(i)||i}},each:c,objectMerge:function(t,e){return e?(c(e,function(e,n){t[e]=n}),t):t},truncate:h,objectFrozen:function(t){return!!Object.isFrozen&&Object.isFrozen(t)},hasKey:d,joinRegExp:p,urlencode:function(t){var e=[];return c(t,function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.join("&")},uuid4:function(){var t=r.crypto||r.msCrypto;if(!o(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var n=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return n(e[0])+n(e[1])+n(e[2])+n(e[3])+n(e[4])+n(e[5])+n(e[6])+n(e[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},htmlTreeAsString:function(t){for(var e,n=[],i=0,r=0,o=" > ".length;t&&i++<5&&!("html"===(e=f(t))||i>1&&r+n.length*o+e.length>=80);)n.push(e),r+=e.length,t=t.parentNode;return n.reverse().join(" > ")},htmlElementAsString:f,isSameException:function(t,e){return!g(t,e)&&(t=t.values[0]).type===(e=e.values[0]).type&&t.value===e.value&&(n=e.stacktrace,(!o(t.stacktrace)||!o(n))&&m(t.stacktrace,e.stacktrace));var n},isSameStacktrace:m,parseUrl:function(t){if("string"!=typeof t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+(e[6]||"")+(e[8]||"")}},fill:function(t,e,n,i){if(null!=t){var r=t[e];t[e]=n(r),t[e].__raven__=!0,t[e].__orig__=r,i&&i.push([t,e,r])}},safeJoin:function(t,e){if(!l(t))return"";for(var n=[],i=0;i<t.length;i++)try{n.push(String(t[i]))}catch(t){n.push("[value cannot be serialized]")}return n.join(e)},serializeException:function t(e,n,r){if(!a(e))return e;r="number"!=typeof(n="number"!=typeof n?3:n)?51200:r;var o,s=function t(e,n){return 0===n?v(e):a(e)?Object.keys(e).reduce(function(i,r){return i[r]=t(e[r],n-1),i},{}):Array.isArray(e)?e.map(function(e){return t(e,n-1)}):v(e)}(e,n);return o=i(s),function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(o))>r?t(e,n-1):s},serializeKeysForMessage:function(t,e){if("number"==typeof t||"string"==typeof t)return t.toString();if(!Array.isArray(t))return"";if(0===(t=t.filter(function(t){return"string"==typeof t})).length)return"[object has no keys]";if(t[0].length>=(e="number"!=typeof e?40:e))return t[0];for(var n=t.length;n>0;n--){var i=t.slice(0,n).join(", ");
1if(!(i.length>e))return n===t.length?i:i+"\u2026"}return""},sanitize:function(t,e){if(!l(e)||l(e)&&0===e.length)return t;var n,r=p(e);try{n=JSON.parse(i(t))}catch(e){return t}return function t(e){return l(e)?e.map(function(e){return t(e)}):a(e)?Object.keys(e).reduce(function(n,i){return n[i]=r.test(i)?"********":t(e[i]),n},{}):e}(n)}}},xTla:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},yLV6:function(t,e,n){var i;!function(r,o,a,s){"use strict";var l,u=["","webkit","Moz","MS","ms","o"],c=o.createElement("div"),h="function",d=Math.round,p=Math.abs,f=Date.now;function g(t,e,n){return setTimeout(x(t,n),e)}function m(t,e,n){return!!Array.isArray(t)&&(v(t,n[e],n),!0)}function v(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==s)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function y(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(t===s||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==s&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var b=y(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===s)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),_=y(function(t,e){return b(t,e,!0)},"merge","Use `assign`.");function w(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&l(i,n)}function x(t,e){return function(){return t.apply(e,arguments)}}function C(t,e){return typeof t==h?t.apply(e&&e[0]||s,e):t}function S(t,e){return t===s?e:t}function k(t,e,n){v(A(e),function(e){t.addEventListener(e,n,!1)})}function E(t,e,n){v(A(e),function(e){t.removeEventListener(e,n,!1)})}function O(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function T(t,e){return t.indexOf(e)>-1}function A(t){return t.trim().split(/\s+/g)}function D(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function P(t){return Array.prototype.slice.call(t,0)}function I(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];D(r,a)<0&&i.push(t[o]),r[o]=a,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function R(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<u.length;){if((i=(n=u[o])?n+r:e)in t)return i;o++}return s}var j=1;function M(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var F="ontouchstart"in r,N=R(r,"PointerEvent")!==s,B=F&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),V=25,L=1,z=4,H=8,W=1,U=2,Y=4,X=8,q=16,G=U|Y,K=X|q,Z=G|K,Q=["x","y"],J=["clientX","clientY"];function $(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){C(t.options.enable,[t])&&n.handler(e)},this.init()}function tt(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&L&&i-r==0,a=e&(z|H)&&i-r==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=et(e)),r>1&&!n.firstMultiple?n.firstMultiple=et(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,l=a?a.center:o.center,u=e.center=nt(i);e.timeStamp=f(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=at(l,u),e.distance=ot(l,u),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==L&&o.eventType!==z||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=rt(e.deltaX,e.deltaY);var c,h,d=it(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=p(d.x)>p(d.y)?d.x:d.y,e.scale=a?(c=a.pointers,ot((h=i)[0],h[1],J)/ot(c[0],c[1],J)):1,e.rotation=a?function(t,e){return at(i[1],i[0],J)+at(t[1],t[0],J)}(a.pointers):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=H&&(l>V||a.velocity===s)){var u=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,h=it(l,u,c);i=h.x,r=h.y,n=p(h.x)>p(h.y)?h.x:h.y,o=rt(u,c),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var g=t.element;O(e.srcEvent.target,g)&&(g=e.srcEvent.target),e.target=g}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function et(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:nt(e),deltaX:t.deltaX,deltaY:t.deltaY}}function nt(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:d(n/e),y:d(i/e)}}function it(t,e,n){return{x:e/t||0,y:n/t||0}}function rt(t,e){return t===e?W:p(t)>=p(e)?t<0?U:Y:e<0?X:q}function ot(t,e,n){n||(n=Q);
1var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function at(t,e,n){return n||(n=Q),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(M(this.element),this.evWin,this.domHandler)}};var st={mousedown:L,mousemove:2,mouseup:z},lt="mousedown",ut="mousemove mouseup";function ct(){this.evEl=lt,this.evWin=ut,this.pressed=!1,$.apply(this,arguments)}w(ct,$,{handler:function(t){var e=st[t.type];e&L&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=z),this.pressed&&(e&z&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ht={pointerdown:L,pointermove:2,pointerup:z,pointercancel:H,pointerout:H},dt={2:"touch",3:"pen",4:"mouse",5:"kinect"},pt="pointerdown",ft="pointermove pointerup pointercancel";function gt(){this.evEl=pt,this.evWin=ft,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(pt="MSPointerDown",ft="MSPointerMove MSPointerUp MSPointerCancel"),w(gt,$,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=ht[i],o=dt[t.pointerType]||t.pointerType,a="touch"==o,s=D(e,t.pointerId,"pointerId");r&L&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):r&(z|H)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var mt={touchstart:L,touchmove:2,touchend:z,touchcancel:H},vt="touchstart",yt="touchstart touchmove touchend touchcancel";function bt(){this.evTarget=vt,this.evWin=yt,this.started=!1,$.apply(this,arguments)}w(bt,$,{handler:function(t){var e=mt[t.type];if(e===L&&(this.started=!0),this.started){var n=(function(t,e){var n=P(t.touches),i=P(t.changedTouches);return e&(z|H)&&(n=I(n.concat(i),"identifier",!0)),[n,i]}).call(this,t,e);e&(z|H)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var _t={touchstart:L,touchmove:2,touchend:z,touchcancel:H},wt="touchstart touchmove touchend touchcancel";function xt(){this.evTarget=wt,this.targetIds={},$.apply(this,arguments)}w(xt,$,{handler:function(t){var e=_t[t.type],n=(function(t,e){var n=P(t.touches),i=this.targetIds;if(e&(2|L)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=P(t.changedTouches),s=[],l=this.target;if(o=n.filter(function(t){return O(t.target,l)}),e===L)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(z|H)&&delete i[a[r].identifier],r++;return s.length?[I(o.concat(s),"identifier",!0),s]:void 0}).call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var Ct=2500;function St(){$.apply(this,arguments);var t=x(this.handler,this);this.touch=new xt(this.manager,t),this.mouse=new ct(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function kt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},Ct)}}w(St,$,{handler:function(t,e,n){var i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)(function(t,e){t&L?(this.primaryTouch=e.changedPointers[0].identifier,kt.call(this,e)):t&(z|H)&&kt.call(this,e)}).call(this,e,n);else if(i&&(function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),a=Math.abs(n-r.y);if(o<=25&&a<=25)return!0}return!1}).call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Et=R(c.style,"touchAction"),Ot=Et!==s,Tt=function(){if(!Ot)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();function At(t,e){this.manager=t,this.set(e)}At.prototype={set:function(t){"compute"==t&&(t=this.compute()),Ot&&this.manager.element.style&&Tt[t]&&(this.manager.element.style[Et]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return v(this.manager.recognizers,function(e){C(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(T(t,"none"))return"none";var e=T(t,"pan-x"),n=T(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":T(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=T(i,"none")&&!Tt.none,o=T(i,"pan-y")&&!Tt["pan-y"],a=T(i,"pan-x")&&!Tt["pan-x"];if(r&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!a||!o)return r||o&&n&G||a&&n&K?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Dt=1,Pt=2,It=4,Rt=8,jt=Rt,Mt=16;function Ft(t){this.options=l({},this.defaults,t||{}),this.id=j++,this.manager=null,this.options.enable=S(this.options.enable,!0),this.state=Dt,this.simultaneous={},this.requireFail=[]}function Nt(t){return t&Mt?"cancel":t&Rt?"end":t&It?"move":t&Pt?"start":""}function Bt(t){return t==q?"down":t==X?"up":t==U?"left":t==Y?"right":""}function Vt(t,e){var n=e.manager;return n?n.get(t):t}function Lt(){Ft.apply(this,arguments)}function zt(){Lt.apply(this,arguments),this.pX=null,this.pY=null}function Ht(){Lt.apply(this,arguments)}function Wt(){Ft.apply(this,arguments),this._timer=null,this._input=null}
1function Ut(){Lt.apply(this,arguments)}function Yt(){Lt.apply(this,arguments)}function Xt(){Ft.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function qt(t,e){return(e=e||{}).recognizers=S(e.recognizers,qt.defaults.preset),new Gt(t,e)}function Gt(t,e){var n;this.options=l({},qt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(N?gt:B?xt:F?St:ct))(n,tt),this.touchAction=new At(this,this.options.touchAction),Kt(this,!0),v(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Kt(t,e){var n,i=t.element;i.style&&(v(t.options.cssProps,function(r,o){n=R(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}Ft.prototype={defaults:{},set:function(t){return l(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Vt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)?this:(t=Vt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return-1===D(e,t=Vt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=Vt(t,this);var e=D(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<Rt&&i(e.options.event+Nt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=Rt&&i(e.options.event+Nt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Dt)))return!1;t++}return!0},recognize:function(t){var e=l({},t);if(!C(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(jt|Mt|32)&&(this.state=Dt),this.state=this.process(e),this.state&(Pt|It|Rt|Mt)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(Lt,Ft,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(Pt|It),r=this.attrTest(t);return i&&(n&H||!r)?e|Mt:i||r?n&z?e|Rt:e&Pt?e|It:Pt:32}}),w(zt,Lt,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var t=this.options.direction,e=[];return t&G&&e.push("pan-y"),t&K&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(e.direction&G?(r=0===o?W:o<0?U:Y,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===a?W:a<0?X:q,n=a!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Lt.prototype.attrTest.call(this,t)&&(this.state&Pt||!(this.state&Pt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Bt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(Ht,Lt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Pt)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),w(Wt,Ft,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(z|H)&&!r)this.reset();else if(t.eventType&L)this.reset(),this._timer=g(function(){this.state=jt,this.tryEmit()},e.time,this);else if(t.eventType&z)return jt;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===jt&&(t&&t.eventType&z?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),w(Ut,Lt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Pt)}}),w(Yt,Lt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:G|K,pointers:1},getTouchAction:function(){return zt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(G|K)?e=t.overallVelocity:n&G?e=t.overallVelocityX:n&K&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&t.eventType&z},emit:function(t){var e=Bt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Xt,Ft,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&L&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=z)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||ot(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=g(function(){this.state=jt,this.tryEmit()},e.interval,this),Pt):jt}return 32},failTimeout:function(){return this._timer=g(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==jt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),qt.VERSION="2.0.7",qt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ut,{enable:!1}],[Ht,{enable:!1},["rotate"]],[Yt,{direction:G}],[zt,{direction:G},["swipe"]],[Xt],[Xt,{event:"doubletap",taps:2},["tap"]],[Wt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Gt.prototype={set:function(t){return l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&jt)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(Pt|It|Rt)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Ft)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(m(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(m(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=D(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==s&&e!==s){var n=this.handlers;return v(A(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==s){var n=this.handlers;return v(A(t),function(t){e?n[t]&&n[t].splice(D(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(qt,{INPUT_START:L,INPUT_MOVE:2,INPUT_END:z,INPUT_CANCEL:H,STATE_POSSIBLE:Dt,STATE_BEGAN:Pt,STATE_CHANGED:It,STATE_ENDED:Rt,STATE_RECOGNIZED:jt,STATE_CANCELLED:Mt,STATE_FAILED:32,DIRECTION_NONE:W,DIRECTION_LEFT:U,DIRECTION_RIGHT:Y,DIRECTION_UP:X,DIRECTION_DOWN:q,DIRECTION_HORIZONTAL:G,DIRECTION_VERTICAL:K,DIRECTION_ALL:Z,Manager:Gt,Input:$,TouchAction:At,TouchInput:xt,MouseInput:ct,PointerEventInput:gt,TouchMouseInput:St,SingleTouchInput:bt,Recognizer:Ft,AttrRecognizer:Lt,Tap:Xt,Pan:zt,Swipe:Yt,Pinch:Ht,Rotate:Ut,Press:Wt,on:k,off:E,each:v,merge:_,extend:b,assign:l,inherit:w,bindFn:x,prefixed:R}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=qt,(i=(function(){return qt}).call(e,n,e,t))===s||(t.exports=i)}(window,document)},z4fs:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var i=n("CcnG"),r=n("PEPO");e.ColorPickerService=function(){function t(){this.active=null}return t.prototype.setActive=function(t){this.active&&this.active!==t&&"inline"!==this.active.cpDialogDisplay&&this.active.closeColorPicker(),this.active=t},t.prototype.hsla2hsva=function(t){var e=Math.min(t.h,1),n=Math.min(t.s,1),i=Math.min(t.l,1),o=Math.min(t.a,1);if(0===i)return new r.Hsva(e,0,0,o);var a=i+n*(1-Math.abs(2*i-1))/2;return new r.Hsva(e,2*(a-i)/a,a,o)},t.prototype.hsva2hsla=function(t){var e=t.h,n=t.s,i=t.v,o=t.a;if(0===i)return new r.Hsla(e,0,0,o);if(0===n&&1===i)return new r.Hsla(e,1,1,o);var a=i*(2-n)/2;return new r.Hsla(e,i*n/(1-Math.abs(2*a-1)),a,o)},t.prototype.rgbaToHsva=function(t){var e,n,i=Math.min(t.r,1),o=Math.min(t.g,1),a=Math.min(t.b,1),s=Math.min(t.a,1),l=Math.max(i,o,a),u=Math.min(i,o,a),c=l,h=l-u;if(n=0===l?0:h/l,l===u)e=0;else{switch(l){case i:e=(o-a)/h+(o<a?6:0);break;case o:e=(a-i)/h+2;break;case a:e=(i-o)/h+4}e/=6}return new r.Hsva(e,n,c,s)},t.prototype.hsvaToRgba=function(t){var e,n,i,o=t.h,a=t.s,s=t.v,l=t.a,u=Math.floor(6*o),c=6*o-u,h=s*(1-a),d=s*(1-c*a),p=s*(1-(1-c)*a);switch(u%6){case 0:e=s,n=p,i=h;break;case 1:e=d,n=s,i=h;break;case 2:e=h,n=s,i=p;break;case 3:e=h,n=d,i=s;break;case 4:e=p,n=h,i=s;break;case 5:e=s,n=h,i=d}return new r.Rgba(e,n,i,l)},t.prototype.stringToHsva=function(t,e){void 0===t&&(t=""),void 0===e&&(e=!1);var n=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(t){return new r.Rgba(parseInt(t[2])/255,parseInt(t[3])/255,parseInt(t[4])/255,isNaN(parseFloat(t[5]))?1:parseFloat(t[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(t){return new r.Hsla(parseInt(t[2])/360,parseInt(t[3])/100,parseInt(t[4])/100,isNaN(parseFloat(t[5]))?1:parseFloat(t[5]))}}];e?n.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(t){return new r.Rgba(parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255,parseInt(t[4]||"FF",16)/255)}}):n.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(t){return new r.Rgba(parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255,1)}},{re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(t){return new r.Rgba(parseInt(t[1]+t[1],16)/255,parseInt(t[2]+t[2],16)/255,parseInt(t[3]+t[3],16)/255,1)}}),t=(t||"").toLowerCase();var i=null;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o],s=a.re.exec(t),l=s&&a.parse(s);if(l)return l instanceof r.Rgba?i=this.rgbaToHsva(l):l instanceof r.Hsla&&(i=this.hsla2hsva(l)),i}return i},t.prototype.outputFormat=function(t,e,n){switch(e){case"hsla":var i=this.hsva2hsla(t),o=new r.Hsla(Math.round(360*i.h),Math.round(100*i.s),Math.round(100*i.l),Math.round(100*i.a)/100);return t.a<1||"always"===n?"hsla("+o.h+","+o.s+"%,"+o.l+"%,"+o.a+")":"hsl("+o.h+","+o.s+"%,"+o.l+"%)";case"rgba":var a=this.denormalizeRGBA(this.hsvaToRgba(t));return t.a<1||"always"===n?"rgba("+a.r+","+a.g+","+a.b+","+Math.round(100*a.a)/100+")":"rgb("+a.r+","+a.g+","+a.b+")";default:return this.hexText(this.denormalizeRGBA(this.hsvaToRgba(t)),"always"===n||"hex8"===n)}},t.prototype.hexText=function(t,e){var n="#"+(1<<24|t.r<<16|t.g<<8|t.b).toString(16).substr(1);return e&&(n+=(256|Math.round(255*t.a)).toString(16).substr(1)),n},t.prototype.denormalizeRGBA=function(t){return new r.Rgba(Math.round(255*t.r),Math.round(255*t.g),Math.round(255*t.b),t.a)},t.decorators=[{type:i.Injectable}],t}()},z7B4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("CcnG");e.TextDirective=function(){function t(){this.newValue=new i.EventEmitter}return t.prototype.changeInput=function(t){if(void 0===this.rg)this.newValue.emit(t);else{var e=parseFloat(t);!isNaN(e)&&e>=0&&e<=this.rg&&this.newValue.emit({v:e,rg:this.rg})}},t.decorators=[{type:i.Directive,args:[{selector:"[text]",host:{"(input)":"changeInput($event.target.value)"}}]}],t.propDecorators={newValue:[{type:i.Output,args:["newValue"]}],text:[{type:i.Input,args:["text"]}],rg:[{type:i.Input,args:["rg"]}]},t}(),e.SliderDirective=function(){function t(t){var e=this;this.el=t,this.newValue=new i.EventEmitter,this.dragStart=new i.EventEmitter,this.dragEnd=new i.EventEmitter,this.listenerMove=function(t){e.move(t)},this.listenerStop=function(){e.stop()}}return t.prototype.setCursor=function(t){var e=this.el.nativeElement.offsetHeight,n=this.el.nativeElement.offsetWidth,i=Math.max(0,Math.min(this.getX(t),n)),r=Math.max(0,Math.min(this.getY(t),e));this.newValue.emit(void 0!==this.rgX&&void 0!==this.rgY?{s:i/n,v:1-r/e,rgX:this.rgX,rgY:this.rgY}:void 0===this.rgX&&void 0!==this.rgY?{v:r/e,rg:this.rgY}:{v:i/n,rg:this.rgX})},t.prototype.move=function(t){t.preventDefault(),this.setCursor(t)},t.prototype.start=function(t){this.setCursor(t),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),this.dragStart.emit()},t.prototype.stop=function(){document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),this.dragEnd.emit()},t.prototype.getX=function(t){return(void 0!==t.pageX?t.pageX:t.touches[0].pageX)-this.el.nativeElement.getBoundingClientRect().left-window.pageXOffset},t.prototype.getY=function(t){return(void 0!==t.pageY?t.pageY:t.touches[0].pageY)-this.el.nativeElement.getBoundingClientRect().top-window.pageYOffset},t.decorators=[{type:i.Directive,args:[{selector:"[slider]",host:{"(mousedown)":"start($event)","(touchstart)":"start($event)"}}]}],t.propDecorators={newValue:[{type:i.Output,args:["newValue"]}],dragStart:[{type:i.Output,args:["dragStart"]}],dragEnd:[{type:i.Output,args:["dragEnd"]}],slider:[{type:i.Input,args:["slider"]}],rgX:[{type:i.Input,args:["rgX"]}],rgY:[{type:i.Input,args:["rgY"]}]},t}(),e.SliderPosition=function(t,e,n,i){this.h=t,this.s=e,this.v=n,this.a=i},e.SliderDimension=function(t,e,n,i){this.h=t,this.s=e,this.v=n,this.a=i},e.detectIE=function(){var t="";"undefined"!=typeof navigator&&(t=navigator.userAgent.toLowerCase());var e=t.indexOf("msie ");return e>0&&parseInt(t.substring(e+5,t.indexOf(".",e)),10)}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("CcnG"),r=[1,8,15,20,25],o=new i.InjectionToken("MERGED_CONFIG"),a="2.0.7",s={selector:"pixie-editor",ui:{mode:"inline",theme:"light",allowEditorClose:!0,toolbar:{hideOpenButton:!1,hideCloseButton:!0},nav:{position:"top",replaceDefault:!1,items:[{name:"filter",icon:"filter-custom",action:"filter"},{type:"separator"},{name:"resize",icon:"resize-custom",action:"resize"},{name:"crop",icon:"crop-custom",action:"crop"},{name:"transform",icon:"transform-custom",action:"rotate"},{type:"separator"},{name:"draw",icon:"pencil-custom",action:"draw"},{name:"text",icon:"text-box-custom",action:"text"},{name:"shapes",icon:"polygon-custom",action:"shapes"},{name:"stickers",icon:"sticker-custom",action:"stickers"},{name:"frame",icon:"frame-custom",action:"frame"},{type:"separator"},{name:"corners",icon:"rounded-corner-custom",action:"round"},{name:"background",icon:"background-custom",action:"background"},{name:"merge",icon:"merge-custom",action:"merge"}]},openImageDialog:{show:!0,sampleImages:[{url:"assets/images/samples/sample1.jpg",thumbnail:"assets/images/samples/sample1_thumbnail.jpg"},{url:"assets/images/samples/sample2.jpg",thumbnail:"assets/images/samples/sample2_thumbnail.jpg"},{url:"assets/images/samples/sample3.jpg",thumbnail:"assets/images/samples/sample3_thumbnail.jpg"}]},colorPresets:["#000","#fff","rgb(242, 38, 19)","rgb(249, 105, 14)","rgb(253, 227, 167)","rgb(4, 147, 114)","rgb(30, 139, 195)","rgb(142, 68, 173)"]},languages:{active:"default"},googleFontsApiKey:"AIzaSyDOrI6VJiMbR6XLvlp3CdCPZj1T2PzVkKs",objectDefaults:{transparentCorners:!1,borderOpacityWhenMoving:1,cornerStyle:"circle",cornerColor:"#ccc",cornerStrokeColor:"#fff",cornerSize:16,strokeWidth:.05,lockUniScaling:!0},tools:{crop:{replaceDefault:!1,items:["3:2","5:3","4:3","5:4","6:4","7:5","10:8","16:9"]},draw:{replaceDefault:!1,brushSizes:r,brushTypes:["PencilBrush","VLineBrush","HLineBrush","CircleBrush","SquareBrush","SprayBrush"]},shapes:{replaceDefault:!1,items:[{name:"circle",type:"Circle"},{name:"rectangle",type:"Rect",options:{lockUniScaling:!1}},{name:"triangle",type:"Triangle"},{name:"ellipse",type:"Ellipse",options:{lockUniScaling:!1}},{name:"Arrow #1",type:"Path",options:{path:"M 294.9 16.4 l 15.7 42.2 c -171.4 70.3 -294 242.3 -289.1 437.4 l 14.7 -1 c 9.1 -0.6 18.1 -1.2 27.1 -1.9 l 14.7 -1 c -4.3 -170.1 102.5 -320 252 -381.3 l 15.7 42.2 c 34.7 -40.5 83.1 -76.6 144.8 -99.8 c -58.1 -26.2 -124.9 -39.6 -195.6 -36.8 z"}},{name:"Arrow #2",type:"Path",options:{path:"M 16 248.4 v 14.9 h 447.5 l -93.2 82.5 l 11.9 10.5 l 113.8 -100.2 l -113.6 -100.4 l -11.8 10.5 l 92.9 82.2 z"}},{name:"Arrow #3",type:"Path",options:{path:"M 496 256 l -118.6 -66 v 40.8 h -361.4 v 50.4 h 361.4 v 40.8 l 118.6 -66 z"}},{name:"Line",type:"Path",options:{path:"M 16 256 h 480",strokeWidth:10,stroke:"#000"}},{name:"Star",type:"Path",options:{path:"M 256 406.3 l 148.3 78 l -28.3 -165.2 l 120 -117 l -165.8 -24.1 l -74.2 -150.3 l -74.2 150.3 l -165.8 24.1 l 120 117 l -28.3 165.2 z"}},{name:"Polygon",type:"Path",options:{path:"M 256 19.6 l 156.6 57.1 l 83.4 144.3 l -28.9 164.2 l -127.7 107.2 h -166.8 l -127.7 -107.2 l -28.9 -164.2 l 83.4 -144.3 z"}},{name:"Badge",type:"Path",options:{path:"M 257.3 16.2 s -148 58.2 -204.4 81.4 c 0 75.7 -16.8 303.5 204.4 398.2 c 218.7 -94.6 201.9 -322.4 201.9 -398.2 c -62.1 -23.6 -201.9 -81.4 -201.9 -81.4 z"}}].slice()},stickers:{replaceDefault:!1,items:[{name:"emoticons",list:["afro-1","afro","agent","alien-1","alien","angel","angry-1","angry-2","angry-3","angry-4","angry-5","angry","arguing","arrogant","people-1","people","avatar","baby-1","baby-2","baby","bully","burglar","hat","cheeky-1","cheeky","clown","confused-1","confused-2","confused-3","confused","creepy","crying-1","crying-2","crying-3","crying","dazed-1","dazed-2","dazed-3","dazed","dead-1","dead-2","dead-3","dead-4","dead-5","dead-6","dead","de
1sperate-1","desperate","detective","dissapointment","doctor","drunk","smile","upset-1","upset-2","upset","emoticon","evil","faint-1","faint","flirt-1","flirt-2","flirt","flirty","gangster","geek-1","geek","gentleman-1","gentleman-2","gentleman-3","gentleman-4","gentleman","freckles","girl-1","girl","goofy-1","goofy-2","goofy-3","goofy-4","goofy","stubble-1","stubble","happy-1","happy-10","happy-11","happy-12","happy-13","happy-14","happy-15","happy-16","happy-2","happy-3","happy-4","happy-5","happy-6","happy-7","happy-8","happy-9","happy","harry-potter","heisenberg","sunglasses","moustache-2","moustache","in-love-1","in-love-2","in-love-3","in-love-4","in-love-5","in-love-6","in-love","headband","farmer","joyful-1","joyful-2","joyful","kiss-1","kiss-2","kiss-3","kiss-4","kiss","laughing-1","laughing-2","laughing-3","laughing","listening","love","moustache-1","angry-baby","angry-glasses","glasses-1","glasses-2","glasses-3","glasses-4","glasses","ninja","pirate-1","pirate-2","pirate","punk-1","punk-2","punk","hat-1","relieved","moustache-3","money-2","money","rockstar","sad-1","
1sad-2","sad-3","sad-4","sad-5","sad-6","sad","scared-1","scared-2","scared-3","scared","sceptic-1","sceptic-2","sceptic-3","sceptic-4","sceptic-5","sceptic-6","sceptic-7","sceptic","secret","shocked-1","shocked-2","shocked-3","shocked","sick-1","sick-2","sick-3","sick-4","sick","silent","skeleton","smile","smiling-1","smiling","hat-sunglasses","smug-1","smug-2","smug-3","smug-4","smug-5","smug-6","smug","sporty","stunned","superhero-1","superhero-2","superhero-3","superhero-4","superhero","surprised-1","surprised","thinking","tired-1","tired-2","tired-3","tired","sunglasses-1","stubble-2","happy-17","vampire-1","vampire","wink-1","wink-2","wink","winking-1","winking","yawning-1","yawning-2","yawning-3","yawning","yelling","zombie"],type:"svg",thumbnailUrl:"images/ui/emoticon.svg"},{name:"doodles",items:100,type:"svg",thumbnailUrl:"images/ui/doodles.svg"},{name:"landmarks",items:100,type:"svg",thumbnailUrl:"images/ui/landmark.svg"},{name:"stars",items:6,type:"png",darkBg:!0,thumbnailUrl:"images/ui/star.svg"},{name:"clouds",items:15,type:"png",darkBg:!0,thumbnailUrl:"images/ui/clouds.svg"},{name:"bubbles",items:104,type:"png",thumbnailUrl:"images/ui/speech-bubble.svg"},{name:"transportation",items:22,type:"svg",thumbnailUrl:"images/ui/transportation.svg"},{name:"beach",items:22,type:"svg",thumbnailUrl:"images/ui/beach.svg"}]},import:{validExtensions:["png","jpg","jpeg","svg","json","gif"]},export:{defaultFormat:"png",defaultQuality:.8,defaultName:"image"},frame:{replaceDefault:!1,items:[{name:"basic",mode:"basic",size:{min:1,max:35,default:10}},{name:"pine",mode:"stretch",size:{min:1,max:35,default:15}},{name:"oak",mode:"stretch",size:{min:1,max:35,default:15}},{name:"rainbow",mode:"stretch",size:{min:1,max:35,default:15}},{name:"grunge1",display_name:"grunge #1",mode:"stretch",size:{min:1,max:35,default:15}},{name:"grunge2",display_name:"grunge #2",mode:"stretch",size:{min:1,max:35,default:20}},{name:"ebony",mode:"stretch",size:{min:1,max:35,default:15}},{name:"art1",display_name:"Art #1",mode:"repeat",size:{min:10,max:70,default:55}},{name:"art2",display_name:"Art #2",mode:"repeat",size:{min:10,max:70,default:55}}]}}},l=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===u}(t)}(t)},u="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?d(Array.isArray(t)?[]:{},t,e):t}function h(t,e,n){return t.concat(e).map(function(t){return c(t,n)})}function d(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||h,n.isMergeableObject=n.isMergeableObject||l;var i=Array.isArray(e);return i===Array.isArray(t)?i?n.arrayMerge(t,e,n):function(t,e,n){var i={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(e){i[e]=c(t[e],n)}),Object.keys(e).forEach(function(r){i[r]=n.isMergeableObject(e[r])&&t[r]?d(t[r],e[r],n):c(e[r],n)}),i}(t,e,n):c(e,n)}d.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return d(t,n,e)},{})};var p=d,f=n("hLX6"),g=n("epSk"),m=function(){function t(t){this.settings=t,this.loadedScripts={}}return t.isIterable=function(t){return"function"==typeof t[Symbol.iterator]||this.isFileList(t)},t.isFileList=function(t){return t instanceof FileList},t.strContains=function(t,e){if(!t||!e)return!1;e=e.toLowerCase(),Array.isArray(t)||(t=[t]);for(var n=0;n<t.length;n++)if(t[n].toLowerCase().indexOf(e)>-1)return!0;return!1},t.splitDateTime=function(t){if(!t)return{date:null,time:null};var e=t.split(" ");return{date:e[0],time:e[1]}},t.getObjectProp=function(t,e){if(!t)return null;for(var n=e.split(".");n.length&&(t=t[n.shift()]););return t},t.ucFirst=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.flattenArray=function(t){return[].concat.apply([],t)},t.moveArrayElement=function(t,e,n){t.splice(n,0,t.splice(e,1)[0])},t.slugifyString=function(t){return t?t.trim().replace(/["']/g,"").replace(/[^a-z0-9-]/gi,"-").replace(/-+/g,"-").replace(/^-|-$/g,"").toLowerCase():t},t.randomString=function(t){void 0===t&&(t=36);for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<t;i++)e+=n.charAt(Math.floor(Math.random()*n.length));return e},t.prototype.loadScript=function(t,e){var n=this;return void 0===e&&(e={}),"loaded"!==this.loadedScripts[t]||e.force?this.loadedScripts[t]?this.loadedScripts[t]:(this.loadedScripts[t]=new Promise(function(i,r){var o=document.createElement("script");o.async=!0,o.id=e.id||t.split("/").pop(),o.src=t.indexOf("//")>-1?t:n.settings.getAssetUrl()+t,o.onload=function(){n.loadedScripts[t]="loaded",i()},document.body.appendChild(o)}),this.loadedScripts[t]):new Promise(function(t){return t()})},t.poll=function(t,e,n){void 0===e&&(e=2e3),void 0===n&&(n=100);var i=Number(new Date)+e,r=function(e,o){var a=t();a?e(a):Number(new Date)<i?setTimeout(r,n,e,o):o(new Error("timed out for "+t))};return new Promise(r)},t}(),v={selectable:!1,evented:!1,lockMovementX:!0,lockMovementY:!0,lockRotation:!0,lockScalingX:!0,lockScalingY:!0,lockUniScaling:!0,hasControls:!1,hasBorders:!1,hasRotatingPoint:!1,strokeWidth:0},y=function(){function t(t,e,n,i,r){this.pan=t,this.zoom=e,this.state=n,this.activeObject=i,this.config=r,this.minWidth=50,this.minHeight=50}return t.prototype.render=function(){this.state.fabric.requestRenderAll()},t.prototype.fabric=function(){return this.state.fabric},t.prototype.getObjectById=function(t){return this.state.fabric.getObjects().find(function(e){return e.data&&e.data.id===t})},t.prototype.init=function(){var t=this,e=document.querySelector("canvas");this.state.fabric=new g.fabric.Canvas(e),this.state.fabric.selection=!1,this.state.fabric.renderOnAddRemove=!1;var n=this.config.get("pixie.objectDefaults");for(var i in n)g.fabric.Object.prototype[i]=n[i];return this.state.fabric.on("object:added",function(t){t.target.data&&t.target.data.id||(t.target.data||(t.target.data={}),t.target.data.id=m.randomString(10))}),this.pan.init(),this.zoom.init(),this.activeObject.init(),this.initContent().then(function(){return t.state.loaded.next(null)}),this.state.loaded},t.prototype.initContent=function(){var t=this.config.get("pixie.image");t instanceof HTMLImageElement&&(t=t.src);var e=this.config.get("pixie.blankCanvasSize");return t?this.loadMainImage(t):e?this.openNew(e.width,e.height):new Promise(function(t){return t()})},t.prototype.resize=function(t,e){this.state.fabric.setWidth(t*this.zoom.get()),this.state.fabric.setHeight(e*this.zoom.get()),this.state.original.width=t,this.state.original.height=e},t.prototype.loadMainImage=function(t){var e=this;return new Promise(function(n){e.loadImage(t).then(function(t){e.fabric().clear(),t.set(v),t.name="mainImage",e.state.fabric.add(t),e.resize(t.width,t.height),e.zoom.fitToScreen(),n(t)})})},t.prototype.changeMainImage=function(t){var e=this,n=this.getMainImage();return new Promise(function(i){n||i(null),n.setSrc(t,function(){n.setCo
1ords(),e.resize(n.width,n.height),e.render(),i(n)})})},t.prototype.loadImage=function(t){return new Promise(function(e){g.fabric.util.loadImage(t,function(t){return e(new g.fabric.Image(t))})})},t.prototype.openNew=function(t,e){var n=this;return t=t<this.minWidth?this.minWidth:t,e=e<this.minHeight?this.minHeight:e,this.state.fabric.clear(),this.resize(t,e),new Promise(function(t){setTimeout(function(){n.zoom.fitToScreen(),t()})})},t.prototype.openImage=function(t){var e=this;return new Promise(function(n){g.fabric.util.loadImage(t,function(t){if(t){var i=new g.fabric.Image(t);i.name="image";var r=e.state.original.width,o=e.state.original.height;if(i.width>=r||i.height>=o){var a=r-.1*r,s=1/Math.min((o-.1*o)/i.getScaledHeight(),a/i.getScaledWidth());i.scaleX=i.scaleX*(1/s),i.scaleY=i.scaleY*(1/s)}e.state.fabric.add(i),i.viewportCenter(),i.setCoords(),e.render(),e.zoom.fitToScreen(),n(i)}})})},t.prototype.getMainImage=function(){return this.state.fabric.getObjects().find(function(t){return"mainImage"===t.name})},t}(),b=function(){function t(){this.onChange=new i.EventEmitter}return t.prototype.setMultiple=function(t){for(var e in this.all||(this.all={}),t){var n=t[e];"0"!==n&&"1"!==n||(n=parseInt(n)),this.set(e,n)}},t.prototype.merge=function(t){this.all=p(this.all,t)},t.prototype.set=function(t,e,n){void 0===n&&(n=!1),f.set(t,e,this.all),n&&this.onChange.emit(t)},t.prototype.get=function(t,e){void 0===e&&(e=null);var n=f.pick(t,this.all);return null==n?e:n},t.prototype.getAll=function(){return this.all},t.prototype.has=function(t){return null!=f.pick(t,this.all)},t.prototype.getJson=function(t,e){void 0===e&&(e=null);var n=this.get(t,e);return"string"!=typeof n?n:JSON.parse(n)},t.prototype.getBaseUrl=function(t){if(void 0===t&&(t=!1),this.has("base_url")&&("production"===this.get("vebto.environment")||t))return this.get("base_url")+"/";if(document.querySelector("base"))return document.querySelector("base").href;var e=window.location;return(e.protocol+"//"+(e.host+"/"+e.pathname).replace("//","/")).replace(/\/[a-z]+\.html/,"/")},t.prototype.getAssetUrl=function(t){var e=this.get("vebto.assetsUrl")||this.getBaseUrl(),n=this.get("vebto.assetsPrefix");return"production"===this.get("vebto.environment")&&n&&(e+=n+"/"),e+="assets/",t&&(e+=t),e},t.prototype.save=function(t){this.setMultiple(t.client);var e=btoa(encodeURIComponent(JSON.stringify(t)));return this.http.post("settings",{settings:e})},t.prototype.anySocialLoginEnabled=function(){var t=this;return["facebook","google","twitter"].filter(function(e){return t.get("social."+e+".enable")}).length>-1},t.prototype.setHttpClient=function(t){this.http=t},t}(),_=function(){function t(t,e,n,i,r,o,a,s,l,u,c,h,d,p){this.filterTool=t,this.resizeTool=e,this.cropTool=n,this.transformTool=i,this.drawTool=r,this.textTool=o,this.shapesTool=a,this.frameTool=s,this.cornerTool=l,this.exportTool=u,this.importTool=c,this.canvas=h,this.watermark=d,this.history=p}return t.prototype.get=function(t){return"canvas"===t?this.canvas:this[t]||this[t+"Tool"]},t}(),w=n("nkY7"),x=n("IUTb"),C=n("6blF"),S=new C.a(function(t){return t.complete()});function k(t){return t?function(t){return new C.a(function(e){return t.schedule(function(){return e.complete()})})}(t):S}function E(t){var e=new C.a(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}function O(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];switch(Object(w.a)(n)?t.pop():n=void 0,t.length){case 0:return k(n);case 1:return n?Object(x.a)(t,n):E(t[0]);default:return Object(x.a)(t,n)}}var T=n("67Y/"),A=n("psW0"),D=n("mrSG"),P=n("FFOo");function I(t,e){return function(n){return n.lift(new R(t,e))}}var R=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.predicate,this.thisArg))},t}(),j=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return D.b(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(P.a),M=n("Ip0R"),F=function(){},N=function(){},B=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var i=t.slice(0,n),r=i.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(i,r),e.headers.has(r)?e.headers.get(r).push(o):e.headers.set(r,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var i=t[n],r=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(e.headers.set(r,i),e.maybeSetNormalizedName(n,r))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;
1t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,Object(D.d)(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),V=function(){function t(){}return t.prototype.encodeKey=function(t){return L(t)},t.prototype.encodeValue=function(t){return L(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function L(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var z=function(){function t(t){void 0===t&&(t={});var e,n,i,r=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new V,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),r=Object(D.c)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=r[0],a=r[1],s=i.get(o)||[];s.push(a),i.set(o,s)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];r.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function H(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function W(t){return"undefined"!=typeof Blob&&t instanceof Blob}function U(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Y=function(){function t(t,e,n,i){var r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new B),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new z,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:H(this.body)||W(this.body)||U(this.body)||"string"==typeof this.body?this.body:this.body instanceof z?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:U(this.body)?null:W(this.body)?this.body.type||null:H(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof z?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,i=e.url||this.url,r=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,l=e.headers||this.headers,u=e.params||this.params;return void 0!==e.setHeaders&&(l=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},l)),e.setParams&&(u=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},u)),new t(n,i,o,{params:u,headers:l,reportProgress:s,responseType:r,withCredentials:a})},t}(),X=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),q=function(){return function(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new B,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),G=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=X.ResponseHeader,n}return Object(D.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(q),K=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=X.Response,n.body=void 0!==e.body?e.body:null,n}return Object(D.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(q),Z=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(D.b)(e,t),e}(q);function Q(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var J=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var i,r=this;if(void 0===n&&(n={}),t instanceof Y)i=t;else{var o;o=n.headers instanceof B?n.headers:new B(n.headers);var a=void 0;n.params&&(a=n.params instanceof z?n.params:new z({fromObject:n.params})),i=new Y(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s,l=O(i).pipe((s=function(t){return r.handler.handle(t)},Object(A.a)(s,void 0,1)));if(t instanceof Y||"events"===n.observe)return l;var u=l.pipe(I(function(t){return t instanceof K}));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return u.pipe(Object(T.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return u.pipe(Object(T.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return u.pipe(Object(T.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return u.pipe(Object(T.a)(function(t){return t.body}))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new z).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Q(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Q(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Q(n,e))},t}(),$=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),tt=new i.InjectionToken("HTTP_INTERCEPTORS"),et=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),nt=/^\)\]\}',?\n/,it=function(){},rt=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),ot=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new C.a(function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEac
1h(function(t,e){return i.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new B(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new G({headers:r,status:e,statusText:n,url:o})},u=function(){var e=l(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(nt,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=h,c&&(c=!1,u={error:t,text:u})}}c?(n.next(new K({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new Z({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=new Z({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error"});n.error(e)},h=!1,d=function(e){h||(n.next(l()),h=!0);var r={type:X.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(t){var e={type:X.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",p)),i.send(a),n.next({type:X.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",u),t.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",p)),i.abort()}})},t}(),at=new i.InjectionToken("XSRF_COOKIE_NAME"),st=new i.InjectionToken("XSRF_HEADER_NAME"),lt=function(){},ut=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(M["\u0275parseCookieValue"])(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),ct=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)},t}(),ht=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(tt,[]);this.chain=e.reduceRight(function(t,e){return new $(t,e)},this.backend)}return this.chain.handle(t)},t}(),dt=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:ct,useClass:et}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:at,useValue:e.cookieName}:[],e.headerName?{provide:st,useValue:e.headerName}:[]]}},t}(),pt=function(){},ft=function(t){for(var e in void 0===t&&(t={}),t)this[e]=t[e]},gt=function(){function t(t,e,n){this.config=t,this.breakpoints=e,this.i18n=n,this.visible=!0}return t.prototype.close=function(){this.config.get("pixie.ui.allowEditorClose")&&(this.visible=!1),this.executeCallback("onClose")},t.prototype.open=function(){return this.visible=!0,this.executeCallback("onOpen"),new Promise(function(t){return setTimeout(function(){return t()})})},t.prototype.isOverlayMode=function(){return"overlay"===this.config.get("pixie.ui.mode")},t.prototype.isVisible=function(){return this.visible},t.prototype.getMode=function(){return this.config.get("pixie.ui.mode")},t.prototype.getTheme=function(){return this.config.get("pixie.ui.theme")},t.prototype.getControlsPosition=function(){return this.breakpoints.isMobile?"bottom":this.config.get("pixie.ui.nav.position","top")},t.prototype.init=function(t){this.rootEl=t.root,"overlay"===this.config.get("pixie.ui.mode")&&(this.visible=!1),this.bindToOverlayClick(t.overlay),this.setLocalization()},t.prototype.getWidth=function(){return this.config.get("pixie.ui.width")},t.prototype.getHeight=function(){return this.config.get("pixie.ui.height")},t.prototype.getNavItems=function(){return this.config.get("pixie.ui.nav.items")},t.prototype.shouldHideToolbar=function(){return this.config.get("pixie.ui.toolbar.hide")},t.prototype.isCompact=function(){return this.config.get("pixie.ui.compact")},t.prototype.bindToOverlayClick=function(t){var e=this;t.nativeElement.addEventListener("click",function(){e.close()})},t.prototype.executeCallback=function(t){var e=this.config.get("pixie."+t);e&&e()},t.prototype.setLocalization=function(){var t=this.config.get("pixie.languages.active","default");if("default"!==t){this.config.set("i18n.enable",!0);var e=this.config.get("pixie.languages.custom."+t);this.i18n.setLocalization({model:new ft({name:t}),lines:e})}},t}(),mt=function(){function t(t){this.toast=t,this.rules={maxSize:5e7,maxFiles:5,blacklist:[],whitelist:[]}}return t.prototype.validateFiles=function(t,e){void 0===e&&(e=!1);var n={};t.length>this.rules.maxFiles&&(n["*"]="you can upload a maximum of "+this.rules.maxFiles+" files.");for(var i=0;i<t.length;i++){var r=this.validateFile(t[i]);r&&(n[t[i].name]=r)}var o=Object.keys(n).length;
1return e&&o&&this.toast.open(n[Object.keys(n)[0]]),o?n:null},t.prototype.validateFile=function(e){var n=[],i=t.getFileNameAndExtension(e.name).extension.toLowerCase();return e.size>this.rules.maxSize&&n.push(e.name+" is to large. Maximum file size is "+this.rules.maxSize),this.rules.blacklist.indexOf(i)>-1&&n.push(e.name+" type is invalid. "+i+" files are not allowed."),this.rules.whitelist.length&&-1===this.rules.whitelist.indexOf(i)&&n.push(e.name+" type is invalid. Only "+this.rules.whitelist.join(", ")+" extensions are allowed."),n.length?n:null},t.getFileNameAndExtension=function(t){var e=/(?:\.([^.]+))?$/.exec(t)[1];return{name:t.replace("."+e,""),extension:e}},t.getFileType=function(e){var n={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",yaml:"text/yaml",yml:"text/yaml"},i=e.name?t.getFileNameAndExtension(e.name).extension:null;return e.type?e.type:i&&n[i]?n[i]:null},t}(),vt=function(){function t(t,e,n,i,r,o,a,s){this.validator=t,this.history=e,this.canvas=n,this.toast=i,this.uploads=r,this.config=o,this.frame=a,this.cropzone=s,this.validator.rules.whitelist=this.config.get("pixie.tools.import.validExtensions")}return t.prototype.openUploadDialog=function(t){var e=this;void 0===t&&(t={type:"image"});var n=this.getUploadAcceptString(t.type);return new Promise(function(i){e.uploads.openUploadDialog({accept:n}).then(function(n){e.validateAndGetData(n[0]).then(function(n){t.backgroundImage&&"json"!==n.extension?e.openBackgroundImage(n.data).then(function(t){return i(t)}):e.openFile(n.data,n.extension).then(function(t){return i(t)})})})})},t.prototype.importAndGetData=function(){var t=this;return new Promise(function(e){t.uploads.openUploadDialog().then(function(n){t.validateAndGetData(n[0]).then(function(t){return e(t.data)})})})},t.prototype.validateAndGetData=function(t){var e=this,n=this.validator.validateFile(t),i=mt.getFileNameAndExtension(t.name).extension;return new Promise(function(r,o){if(n)return o(),e.toast.open("Unsupported file type.");e.readFile(t,i).then(function(t){return r({data:t,extension:i})})})},t.prototype.openStateFile=function(t){var e=this;return this.resetEditor().then(function(){return e.history.addFromJson(t)})},t.prototype.resetEditor=function(){return this.canvas.fabric().clear(),this.frame.remove(),this.cropzone.remove(),this.history.clear(),new Promise(function(t){return setTimeout(function(){return t()})})},t.prototype.openFile=function(t,e){return void 0===e&&(e="png"),t instanceof HTMLImageElement&&(t=t.src),"json"===e?this.openStateFile(t):this.canvas.openImage(t)},t.prototype.openBackgroundImage=function(t){return t instanceof HTMLImageElement&&(t=t.src),this.canvas.getMainImage()?this.canvas.changeMainImage(t):this.canvas.loadMainImage(t)},t.prototype.readFile=function(t,e){var n=new FileReader;return new Promise(function(i){n.addEventListener("load",function(){i(n.result)}),"json"===e?n.readAsText(t):n.readAsDataURL(t)})},t.prototype.getUploadAcceptString=function(t){switch(void 0===t&&(t="all"),t){case"image":return"image/*";case"state":return".json,application/json";case"all":default:return"image/*,.json,application/json"}},t}(),yt=n("0/uQ"),bt=n("isby"),_t=n("zotm"),wt=n("MGBS"),xt=function(t){function e(e,n){var i=t.call(this,e)||this;i.sources=n,i.completed=0,i.haveValues=0;var r=n.length;i.values=new Array(r);for(var o=0;o<r;o++){var a=n[o],s=Object(_t.a)(i,a,null,o);s&&i.add(s)}return i}return D.b(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.values[n]=e,r._hasValue||(r._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this.haveValues,i=this.values,r=i.length;t._hasValue?(this.completed++,this.completed===r&&(n===r&&e.next(i),e.complete())):e.complete()},e}(wt.a),Ct=null;function St(){return Ct}var kt,Et={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ot={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Tt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};i["\u0275global"].Node&&(kt=i["\u0275global"].Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var At,Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Ct||(Ct=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var i;(i=t)[e].apply(i,Object(D.d)(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}
1,Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Et},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return kt.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),i=0;i<e.length;i++)n[i]=e[i];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},e.prototype.createTemplate=function(t){var e=this.getDefaultDocument().createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)},e.prototype.createElementNS=function(t,e,n){return(n=n||this.getDefaultDocument()).createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return(e=e||this.getDefaultDocument()).createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){var i=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(t,e),i},e.prototype.createStyleElement=function(t,e){var n=(e=e||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(t,e)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var i=this.getStyle(t,e)||"";return n?i==n:i.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,i=0;i<n.length;i++){var r=n.item(i);e.set(r.name,r.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,i){t.setAttributeNS(e,n,i)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getDefaultDocument=function(){return document},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return t.title},e.prototype.setTitle=function(t,e){t.title=e||""},e.prototype.elementMatches=function(t,e){return!!this.isElementNode(t)&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.getAttribute("href")},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Tt.hasOwnProperty(e)&&(e=Tt[e]))}return Ot[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e,n=Pt||(Pt=document.querySelector("base"))?Pt.getAttribute("href"):null;return null==n?null:(e=n,At||(At=document.createElement("a")),At.setAttribute("href",e),"/"===At.pathname.charAt(0)?At.pathname:"/"+At.pathname)},e.prototype.resetBaseElement=function(){Pt=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Object(M["\u0275parseCookieValue"])(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],r=0;r<i.length;r++)if(null!=e.getStyle(n,i[r]+"AnimationName")){e._animationPrefix="-"+i[r].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};
1Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return Object(D.b)(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),Pt=null,It=M.DOCUMENT;function Rt(){return!!window.history.pushState}var jt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return Object(D.b)(e,t),e.prototype._init=function(){this.location=St(
1).getLocation(),this._history=St().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return St().getBaseHref(this._doc)},e.prototype.onPopState=function(t){St().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){St().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){Rt()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){Rt()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[It]}]}]},e}(M.PlatformLocation),Mt=function(){function t(t){this._doc=t,this._dom=St()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,i){return i&&t.push(n._getOrCreateElement(i,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),i=this.getTag(n);if(i&&this._containsAttributes(t,i))return i}var r=this._dom.createElement("meta");this._setMetaElementAttributes(t,r);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,r),r},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(i){return n._dom.setAttribute(e,i,t[i])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(i){return n._dom.getAttribute(e,i)===t[i]})},t}(),Ft=new i.InjectionToken("TRANSITION_ID"),Nt=[{provide:i.APP_INITIALIZER,useFactory:function(t,e,n){return function(){n.get(i.ApplicationInitStatus).donePromise.then(function(){var n=St();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}},deps:[Ft,It,i.Injector],multi:!0}],Bt=function(){function t(){}return t.init=function(){Object(i.setTestabilityGetter)(new t)},t.prototype.addToWindow=function(t){i["\u0275global"].getAngularTestability=function(e,n){void 0===n&&(n=!0);var i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},i["\u0275global"].getAllAngularTestabilities=function(){return t.getAllTestabilities()},i["\u0275global"].getAllAngularRootElements=function(){return t.getAllRootElements()},i["\u0275global"].frameworkStabilizers||(i["\u0275global"].frameworkStabilizers=[]),i["\u0275global"].frameworkStabilizers.push(function(t){var e=i["\u0275global"].getAllAngularTestabilities(),n=e.length,r=!1,o=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(o)})})},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?St().isShadowRoot(e)?this.findTestabilityInTree(t,St().getHost(e),!0):this.findTestabilityInTree(t,St().parentElement(e),!0):null},t}(),Vt=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return St().getTitle(this._doc)},t.prototype.setTitle=function(t){St().setTitle(this._doc,t)},t}();function Lt(t,e){"undefined"!=typeof COMPILED&&COMPILED||((i["\u0275global"].ng=i["\u0275global"].ng||{})[t]=e)}var zt={ApplicationRef:i.ApplicationRef,NgZone:i.NgZone};function Ht(t){return Object(i.getDebugNode)(t)}var Wt=new i.InjectionToken("EventManagerPlugins"),Ut=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(t))return this._eventNameToPlugin.set(t,r),r}throw new Error("No event manager plugin found for event "+t)},t}(),Yt=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,e,n){var i=St().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+e);return this.addEventListener(i,e,n)},t}(),Xt=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}(),qt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return Object(D.b)(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var i=n._doc.createElement("style");i.textContent=t,n._styleNodes.add(e.appendChild(i))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;
1this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return St().remove(t)})},e}(Xt),Gt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Kt=/%COMP%/g,Zt="_nghost-%COMP%",Qt="_ngcontent-%COMP%";function Jt(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];Array.isArray(r)?Jt(t,r,n):(r=r.replace(Kt,t),n.push(r))}return n}function $t(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var te=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new ee(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new oe(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case i.ViewEncapsulation.Native:return new ae(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=Jt(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}(),ee=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(Gt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,i){if(i){e=i+":"+e;var r=Gt[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var i=Gt[n];i?t.removeAttributeNS(i,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&i.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,r&i.RendererStyleFlags2.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&i.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){ie(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return ie(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,$t(n)):this.eventManager.addEventListener(t,e,$t(n))},t}(),ne="@".charCodeAt(0);function ie(t,e){if(t.charCodeAt(0)===ne)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var re,oe=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.component=i;var o=Jt(i.id,i.styles,[]);return n.addStyles(o),r.contentAttr=Qt.replace(Kt,i.id),r.hostAttr=Zt.replace(Kt,i.id),r}return Object(D.b)(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var i=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,i,this.contentAttr,""),i},e}(ee),ae=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=i,o.component=r,o.shadowRoot=i.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=Jt(r.id,r.styles,[]),s=0;s<a.length;s++){var l=document.createElement("style");l.textContent=a[s],o.shadowRoot.appendChild(l)}return o}return Object(D.b)(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,i){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,i)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(ee),se="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},le=se("addEventListener"),ue=se("removeEventListener"),ce={},he="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[se("BLACK_LISTED_EVENTS")]&&(re={});var de=function(t){return!!re&&re.hasOwnProperty(t)},pe=function(t){var e=ce[t.type];if(e){var n=this[e];if(n){var i=[t];if(1===n.length)return(a=n[0]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i);for(var r=n.slice(),o=0;o<r.length&&!0!==t[he];o++){var a;(a=r[o]).zone!==Zone.current?a.zone.run(a.handler,this,i):a.handler.apply(this,i)}}}},fe=function(t){function e(e,n){var i=t.call(this,e)||this;return i.ngZone=n,i.patchEvent(),i}return Object(D.b)(e,t),e.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[he]=!0),t&&t.apply(this,arguments)}}},e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=n;if(!t[le]||i.NgZone.isInAngularZone()&&!de(e))t.addEventListener(e,o,!1);else{var a=ce[e];a||(a=ce[e]=se("ANGULAR"+e+"FALSE"));var s=t[a],l=s&&s.length>0;s||(s=t[a]=[]);var u=de(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var c=!1,h=0;h<s.length;h++)if(s[h].handler===o){c=!0;break}c||s.push({zone:u,handler:o})}l||t[le](e,pe,!1)}return function(){return r.removeEventListener(t,e,o)}},e.prototype.removeEventListener=function(t,e,n){var i=t[ue];if(!i)return t.removeEventListener.apply(t,[e,n,!1]);var r=ce[e],o=r&&t[r];if(!o)return t.removeEventListener.apply(t,[e,n,!1]);for(var a=!1,s=0;s<o.length;s++)if(o[s].handler===n){a=!0,o.splice(s,1);break}a?0===o.length&&i.apply(t,[e,pe,!1]):t.removeEventListener.apply(t,[e,n,!1])},e}(Yt),ge={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},me=new i.InjectionToken("HammerGestureConfig"),ve=function(){function t(){this.events=[],this.overrides={}}
1return t.prototype.buildHammer=function(t){var e=new Hammer(t,this.options);for(var n in e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0}),this.overrides)e.get(n).set(this.overrides[n]);return e},t}(),ye=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._config=n,r.console=i,r}return Object(D.b)(e,t),e.prototype.supports=function(t){return!(!ge.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&(this.console.warn("Hammer.js is not loaded, can not bind '"+t+"' event."),1))},e.prototype.addEventListener=function(t,e,n){var i=this,r=this.manager.getZone();return e=e.toLowerCase(),r.runOutsideAngular(function(){var o=i._config.buildHammer(t),a=function(t){r.runGuarded(function(){n(t)})};return o.on(e,a),function(){return o.off(e,a)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(Yt),be=["alt","control","meta","shift"],_e={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},we=function(t){function e(e){return t.call(this,e)||this}return Object(D.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var r=e.parseEventName(n),o=e.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return St().onAndCancel(t,r.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var r=e._normalizeKey(n.pop()),o="";if(be.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=r,0!=n.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=St().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),be.forEach(function(i){i!=n&&(0,_e[i])(t)&&(e+=i+".")}),e+=n},e.eventCallback=function(t,n,i){return function(r){e.getEventFullKey(r)===t&&i.runGuarded(function(){return n(r)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Yt),xe=function(){},Ce=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(D.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case i.SecurityContext.NONE:return e;case i.SecurityContext.HTML:return e instanceof ke?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Object(i["\u0275_sanitizeHtml"])(this._doc,String(e)));case i.SecurityContext.STYLE:return e instanceof Ee?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),Object(i["\u0275_sanitizeStyle"])(e));case i.SecurityContext.SCRIPT:if(e instanceof Oe)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case i.SecurityContext.URL:return e instanceof Ae||e instanceof Te?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Object(i["\u0275_sanitizeUrl"])(String(e)));case i.SecurityContext.RESOURCE_URL:if(e instanceof Ae)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Se)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new ke(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Ee(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Oe(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Te(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new Ae(t)},e}(xe),Se=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Se),Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Se),Oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Se),Te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Se),Ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Se),De=[{provide:i.PLATFORM_ID,useValue:M["\u0275PLATFORM_BROWSER_ID"]},{provide:i.PLATFORM_INITIALIZER,useValue:function(){Dt.makeCurrent(),Bt.init(
1)},multi:!0},{provide:M.PlatformLocation,useClass:jt,deps:[It]},{provide:It,useFactory:function(){return document},deps:[]}],Pe=Object(i.createPlatformFactory)(i.platformCore,"browser",De),Ie=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:i.APP_ID,useValue:e.appId},{provide:Ft,useExisting:i.APP_ID},Nt]}},t}();"undefined"!=typeof window&&window;var Re=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(Re);function Me(t){return null==t||0===t.length}var Fe=new i.InjectionToken("NgValidators"),Ne=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Be=function(){function t(){}return t.min=function(t){return function(e){if(Me(e.value)||Me(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(Me(e.value)||Me(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Me(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Me(t.value)?null:Ne.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Me(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(Me(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Ve);return 0==e.length?null:function(t){return ze(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Ve);return 0==e.length?null:function(t){return function t(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Object(bt.a)(n[0])&&(n=n[0]),0===n.length?S:e?t(n).pipe(Object(T.a)(function(t){return e.apply(void 0,t)})):new C.a(function(t){return new xt(t,n)})}(function(t,n){return e.map(function(e){return e(t)})}(t).map(Le)).pipe(Object(T.a)(ze))}},t}();function Ve(t){return null!=t}
1function Le(t){var e=Object(i["\u0275isPromise"])(t)?Object(yt.a)(t):t;if(!Object(i["\u0275isObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function ze(t){var e=t.reduce(function(t,e){return null!=e?Object(D.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}var He=new i.InjectionToken("NgValueAccessor"),We=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Ue=new i.InjectionToken("CompositionEventMode"),Ye=function(){function t(t,e,n){var i;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=St()?St().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function Xe(t){return t.validate?function(e){return t.validate(e)}:t}function qe(t){return t.validate?function(e){return t.validate(e)}:t}var Ge=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function Ke(){throw new Error("unimplemented")}var Ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return Ke()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Ke()},enumerable:!0,configurable:!0}),e}(Re),Qe=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Je=function(){function t(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Ze),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}(),$e=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),tn='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',en='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',nn='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',rn=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\
1n\n Example:\n\n "+tn)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+en+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+nn)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+tn)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+en)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"
1===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function on(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var an=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=on(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){try{for(var e=Object(D.e)(Array.from(this._optionMap.keys())),n=e.next();!n.done;n=e.next()){var i=n.value;if(this._compareWith(this._optionMap.get(i),t))return i}}catch(t){r={error:t}}finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(r)throw r.error}}return null;var r,o},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),sn=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(on(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function ln(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var un=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var i=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(i.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o<r.length;o++){var a=r.item(o),s=e._getOptionValue(a.value);i.push(s)}else for(r=n.options,o=0;o<r.length;o++)(a=r.item(o)).selected&&(s=e._getOptionValue(a.value),i.push(s));e.value=i,t(i)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){try{for(var e=Object(D.e)(Array.from(this._optionMap.keys())),n=e.next();!n.done;n=e.next()){var i=n.value;if(this._compareWith(this._optionMap.get(i)._value,t))return i}}catch(t){r={error:t}}
1finally{try{n&&!n.done&&(o=e.return)&&o.call(e)}finally{if(r)throw r.error}}return null;var r,o},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}(),cn=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(ln(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(ln(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function hn(t,e){return Object(D.d)(e.path,[t])}function dn(t,e){t||mn(e,"Cannot find control with"),e.valueAccessor||mn(e,"No value accessor for form control with"),t.validator=Be.compose([t.validator,e.validator]),t.asyncValidator=Be.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&pn(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&pn(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function pn(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function fn(t,e){null==t&&mn(e,"Cannot find control with"),t.validator=Be.compose([t.validator,e.validator]),t.asyncValidator=Be.composeAsync([t.asyncValidator,e.asyncValidator])}function gn(t){return mn(t,"There is no FormControl instance attached to form control element with")}function mn(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function vn(t){return null!=t?Be.compose(t.map(Xe)):null}function yn(t){return null!=t?Be.composeAsync(t.map(qe)):null}function bn(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(e,n.currentValue)}var _n=[We,$e,Ge,an,un,Je];function wn(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function xn(t,e){if(!e)return null;Array.isArray(e)||mn(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach(function(e){var o;e.constructor===Ye?n=e:(o=e,_n.some(function(t){return o.constructor===t})?(i&&mn(t,"More than one built-in value accessor matches form control with"),i=e):(r&&mn(t,"More than one custom value accessor matches form control with"),r=e))}),r||i||n||(mn(t,"No valid value accessor for form control with"),null)}function Cn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function Sn(t,e,n,r){Object(i.isDevMode)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(rn.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var kn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return hn(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return vn(this._val
1idators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return yn(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(je),En=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),On=function(t){function e(e){return t.call(this,e)||this}return Object(D.b)(e,t),e}(En),Tn=function(t){function e(e){return t.call(this,e)||this}return Object(D.b)(e,t),e}(En);function An(t){var e=Pn(t)?t.validators:t;return Array.isArray(e)?vn(e):e||null}function Dn(t,e){var n=Pn(e)?e.asyncValidators:t;return Array.isArray(n)?yn(n):n||null}function Pn(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var In=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=An(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Dn(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}
1,t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(D.a)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(D.a)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=Le(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof jn?t.controls[e]||null:t instanceof Mn&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){Pn(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),Rn=function(t){function e(e,n,i){void 0===e&&(e=null);var r=t.call(this,An(n),Dn(i,n))||this;return r._onChange=[],r._applyFormState(e),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return Object(D.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}
1),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(In),jn=function(t){function e(e,n,i){var r=t.call(this,An(n),Dn(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(D.b)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){n._throwIfControlMissing(i),n.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(i){n.controls[i]&&n.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof Rn?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}
1,e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(i,r){n=n||e.contains(r)&&t(i)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,i){n=e(n,t,i)}),n},e.prototype._allControlsDisabled=function(){try{for(var t=Object(D.e)(Object.keys(this.controls)),e=t.next();!e.done;e=t.next())if(this.controls[e.value].enabled)return!1}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(n)throw n.error}}return Object.keys(this.controls).length>0||this.disabled;var n,i},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(In),Mn=function(t){function e(e,n,i){var r=t.call(this,An(n),Dn(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return Object(D.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,i){n._throwIfControlMissing(i),n.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,i){n.at(i)&&n.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Rn?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){try{for(var t=Object(D.e)(this.controls),e=t.next();!e.done;e=t.next())if(e.value.enabled)return!1}catch(t){n={error:t}}finally{try{e&&!e.done&&(i=t.return)&&i.call(t)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled;var n,i},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(In),Fn=Promise.resolve(null),Nn=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.EventEmitter,r.form=new jn({},vn(e),yn(n)),r}return Object(D.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Fn.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),dn(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Fn.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Cn(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;Fn.then(function(){var n=e._findContainer(t.path),i=new jn({});fn(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Fn.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Fn.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,wn(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(je),Bn=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+tn+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+en+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+nn)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+en+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+nn)},t}(),Vn=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return Object(D.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Nn||Bn.modelGroupParentException()},e}(kn),Ln=Promise.resolve(null),zn=function(t){function e(e,n,r,o){var a=t.call(this)||this;return a.control=new Rn,a._registered=!1,a.update=new i.EventEmitter,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=xn(a,o),a}return Object(D.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),bn(t,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?hn(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return vn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return yn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){dn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Vn)&&this._parent instanceof kn?Bn.formGroupNameException():this._parent instanceof Vn||this._parent instanceof Nn||Bn.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Bn.missingNameException()},e.prototype._updateValue=function(t){var e=this;Ln.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;Ln.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})},e}(Ze),Hn=new i.InjectionToken("NgModelWithFormControlWarning"),Wn=function(t){function e(e,n,r,o){var a=t.call(this)||this;return a._ngModelWarningConfig=o,a.update=new i.EventEmitter,a._ngModelWarningSent=!1,a._rawValidators=e||[],a._rawAsyncValidators=n||[],a.valueAccessor=xn(a,r),a}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){rn.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(dn(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),bn(t,this.viewModel)&&(Sn("formControl",e,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return vn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return yn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e}(Ze),Un=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new i.EventEmitter,r}return Object(D.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return dn(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){Cn(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);fn(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);fn(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,wn(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;
1this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return gn(e)}),e.valueAccessor.registerOnTouched(function(){return gn(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&dn(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=vn(this._validators);this.form.validator=Be.compose([this.form.validator,t]);var e=yn(this._asyncValidators);this.form.asyncValidator=Be.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||rn.missingFormException()},e}(je),Yn=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return Object(D.b)(e,t),e.prototype._checkParentType=function(){qn(this._parent)&&rn.groupParentException()},e}(kn),Xn=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return Object(D.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return hn(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return vn(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return yn(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){qn(this._parent)&&rn.arrayParentException()},e}(je);function qn(t){return!(t instanceof Yn||t instanceof Un||t instanceof Xn)}var Gn=function(t){function e(e,n,r,o,a){var s=t.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new i.EventEmitter,s._ngModelWarningSent=!1,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=xn(s,o),s}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){rn.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),bn(t,this.viewModel)&&(Sn("formControlName",e,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return hn(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return vn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return yn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Yn)&&this._parent instanceof kn?rn.ngModelGroupException():this._parent instanceof Yn||this._parent instanceof Un||this._parent instanceof Xn||rn.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e}(Ze),Kn=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?Be.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),Zn=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t);return new jn(n,null!=e?e.validator:null,null!=e?e.asyncValidator:null)},t.prototype.control=function(t,e,n){return new Rn(t,e,n)},t.prototype.array=function(t,e,n){var i=this,r=t.map(function(t){return i._createControl(t)});return new Mn(r,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(i){n[i]=e._createControl(t[i])}),n},t.prototype._createControl=function(t){return t instanceof Rn||t instanceof jn||t instanceof Mn?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),Qn=function(){},Jn=function(){},$n=function(){},ti=function(){function t(){}return t.withConfig=function(e){return{ngModule:t,providers:[{provide:Hn,useValue:e.warnOnNgModelWithFormControl}]}},t}(),ei=function(){function t(t,e,n,i,r){this.importTool=t,this.config=e,this.panelRef=n,this.canvas=i,this.history=r,this.newCanvasForm=new jn({width:new Rn(800),height:new Rn(600)}),this.newCanvasFormVisible=!1,this.sampleImages=this.config.get("pixie.ui.openImageDialog.sampleImages")}return t.prototype.openUploadDialog=function(){var t=this;this.importTool.openUploadDialog({backgroundImage:!0}).then(function(){return t.close()})},t.prototype.openSampleImage=function(t){var e=this;
1this.importTool.openBackgroundImage(t).then(function(){return e.close()})},t.prototype.createNewCanvas=function(){var t=this,e=this.newCanvasForm.get("width").value,n=this.newCanvasForm.get("height").value;this.config.set("pixie.blankCanvasSize",{width:e,height:n}),this.canvas.openNew(e,n).then(function(){return t.close()})},t.prototype.close=function(){this.panelRef.close(),this.history.addInitial()},t}(),ni=n("K9Ia"),ii=n("pugT"),ri=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return D.b(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(t){n=!0,i=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return D.b(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(ii.a)),oi=function(t){function e(e,n){var i=t.call(this,e,n)||this;
1return i.scheduler=e,i.work=n,i}return D.b(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(ri),ai=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}(),si=function(t){function e(n,i){void 0===i&&(i=ai.now);var r=t.call(this,n,function(){return e.delegate&&e.delegate!==r?e.delegate.now():i()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return D.b(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(ai),li=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D.b(e,t),e}(si))(oi);function ui(t,e){return new C.a(e?function(n){return e.schedule(ci,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function ci(t){t.subscriber.error(t.error)}var hi=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return O(this.value);case"E":return ui(this.error);case"C":return k()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),di=function(t){function e(e,n,i){void 0===i&&(i=0);var r=t.call(this,e)||this;return r.scheduler=n,r.delay=i,r}return D.b(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new pi(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(hi.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(hi.createError(t))},e.prototype._complete=function(){this.scheduleMessage(hi.createComplete())},e}(P.a),pi=function(t,e){this.notification=t,this.destination=e},fi=n("8g8A"),gi=n("uMaO"),mi=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=e<1?1:e,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return D.b(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new vi(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new fi.a;if(this.isStopped||this.hasError?e=ii.a.EMPTY:(this.observers.push(t),e=new gi.a(this,t)),r&&t.add(t=new di(t,r)),n)for(var a=0;a<o&&!t.closed;
1a++)t.next(i[a]);else for(a=0;a<o&&!t.closed;a++)t.next(i[a].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||li).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(ni.a),vi=function(t,e){this.time=t,this.value=e},yi=function(){function t(t){this.config=t,this.original={width:0,height:0},this.loading=!1,this.loaded=new mi(1)}return t.prototype.isEmpty=function(){return!this.config.get("pixie.image")&&!this.config.get("pixie.blankCanvasSize")&&0===this.fabric.getObjects().length},t.prototype.calcWrapperSize=function(){var t=this.wrapperEl.getBoundingClientRect();return{width:t.width,height:t.height}},t}();function bi(){throw Error("Host already has a portal attached")}var _i,wi=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&bi(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),xi=function(t){function e(e,n,i){var r=t.call(this)||this;return r.component=e,r.viewContainerRef=n,r.injector=i,r}return Object(D.b)(e,t),e}(wi),Ci=function(t){function e(e,n,i){var r=t.call(this)||this;return r.templateRef=e,r.viewContainerRef=n,r.context=i,r}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(wi),Si=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&bi(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof xi?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ci?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),ki=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.outletElement=e,o._componentFactoryResolver=n,o._appRef=i,o._defaultInjector=r,o}return Object(D.b)(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,i=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);
1return i.detectChanges(),i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),i},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(Si),Ei=function(t){function e(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new i.EventEmitter,r}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,i=this._componentFactoryResolver.resolveComponentFactory(e.component),r=n.createComponent(i,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return r.destroy()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i},e}(Si),Oi=function(){},Ti=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}(),Ai=function(){function t(t){this.overlayRef=t,this.value=new ni.a}return t.prototype.isOpen=function(){return this.overlayRef&&this.overlayRef.hasAttached()},t.prototype.close=function(){this.overlayRef&&this.overlayRef.dispose()},t.prototype.emitValue=function(t){this.value.next(t)},t.prototype.valueChanged=function(){return this.value.asObservable()},t.prototype.getPanelEl=function(){return this.overlayRef.overlayElement},t.prototype.updatePosition=function(){this.overlayRef.updatePosition()},t}(),Di={hasBackdrop:!0,closeOnBackdropClick:!0,panelClass:"overlay-panel"},Pi=function(){function t(t,e,n){this.overlay=t,this.breakpoints=e,this.injector=n}return t.prototype.open=function(t,e){var n=Object.assign({},Di,e),i=this.overlay.create({positionStrategy:n.positionStrategy||this.getPositionStrategy(n),hasBackdrop:n.hasBackdrop,panelClass:n.panelClass}),r=new Ai(i),o=new xi(t,null,this.createInjector(n,r));return i.attach(o),n.closeOnBackdropClick&&i.backdropClick().subscribe(function(){return r.close()}),r},t.prototype.createInjector=function(t,e){var n=new WeakMap;return n.set(Ai,e),new Ti(this.injector,n)},t.prototype.getPositionStrategy=function(t){return this.breakpoints.isMobile?this.overlay.position().global().centerHorizontally().centerVertically():"global"===t.origin?this.getGlobalPositionStrategy(t):"bottom"===t.position?this.getBottomPositionStrategy(t):"bottom right"===t.position?this.getBottomRightPositionStrategy(t):"bottom left"===t.position?this.getBottomLeftPositionStrategy(t):"top"===t.position?this.getTopPositionStrategy(t):this.getRightPositionStrategy(t)},t.prototype.getGlobalPositionStrategy=function(t){return"bottom left"===t.position?this.overlay.position().global().left("10px").bottom("10px"):"center"===t.position?this.overlay.position().global().centerHorizontally().centerVertically():this.overlay.position().global().right("10px").bottom("10px")},t.prototype.getRightPositionStrategy=function(t){return this.overlay.position().connectedTo(t.origin,{originX:"end",originY:"center"},{overlayX:"start",overlayY:"center"}).withFallbackPosition({originX:"end",originY:"center"},{overlayX:"start",overlayY:"top"}).withOffsetX(35)},t.prototype.getBottomPositionStrategy=function(t){return this.overlay.position().flexibleConnectedTo(t.origin).withPositions([{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:5},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom"}])},t.prototype.getBottomRightPositionStrategy=function(t){return this.overlay.position().connectedTo(t.origin,{originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"bottom"}).withOffsetY(-10).withOffsetX(-10)},t.prototype.getBottomLeftPositionStrategy=function(t){return this.overlay.position().connectedTo(t.origin,{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withOffsetY(10).withOffsetX(10).withFallbackPosition({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"}).withOffsetY(10).withOffsetX(10)},t.prototype.getTopPositionStrategy=function(t){return this.overlay.position().connectedTo(t.origin,{originX:"center",originY:"top"},{overlayX:"center",overlayY:"bottom"}).withFallbackPosition({originX:"center",originY:"bottom"},{overlayX:"end",overlayY:"top"}).withOffsetY(-15)},t}(),Ii=function(){function t(t,e,n,i){this.canvasState=t,this.config=e,this.overlayPanel=n,this.editorUi=i}return t.prototype.open=function(){if(this.shouldShowOpenImageDialog()){var t=this.overlayPanel.overlay.position().flexibleConnectedTo(new i.ElementRef(this.canvasState.wrapperEl)).withPositions([{overlayX:"center",overlayY:"center",originX:"center",originY:"center"}]);this.sampleImagePanelRef=this.overlayPanel.open(ei,{hasBackdrop:!0,closeOnBackdropClick:!1,positionStrategy:t,panelClass:"floating-panel"})}},t.prototype.reposition=function(){this.sampleImagePanelRef&&this.sampleImagePanelRef.updatePosition()},t.prototype.shouldShowOpenImageDialog=function(){return this.editorUi.isVisible()&&this.canvasState.isEmpty()&&this.config.get("pixie.ui.openImageDialog.show")},t.ngInjectableDef=i.defineInjectable({factory:function(){return new t(i.inject(yi),i.inject(b),i.inject(Pi),i.inject(gt))},token:t,providedIn:"root"}),t}(),Ri=function(){function t(t,e){this.config=t,this.editorUI=e,this.breadcrumbs=["navigation"],this.onClose$=new ni.a}return t.prototype.openPanel=function(t){var e=this;Array.isArray(t)||(t=[t]),t.forEach(function(t){e.breadcrumbs.indexOf(t)>-1||e.breadcrumbs.push(t)})},t.prototype.togglePanel=function(t){this.panelIsVisible(t)?this.closePanel(t):(this.closeAllPanels(),this.openPanel
1(t))},t.prototype.closePanel=function(t){var e=this.breadcrumbs.indexOf(t);this.breadcrumbs.splice(e,1),this.onClose$.next()},t.prototype.closeCurrentPanel=function(){this.breadcrumbs.length<2||this.closePanel(this.breadcrumbs[this.breadcrumbs.length-1])},t.prototype.closeAllPanels=function(){this.breadcrumbs=["navigation"],this.onClose$.next()},t.prototype.panelIsVisible=function(t){return this.breadcrumbs[this.breadcrumbs.length-1]===t},t.prototype.panelIsOpen=function(t){return this.breadcrumbs.indexOf(t)>-1},t.prototype.openObjectDrawer=function(t){switch(t){case"shape":case"sticker":this.closeAllPanels(),this.openPanel(["objectSettings"]);break;case"text":this.closeAllPanels(),this.openPanel(["text"]);break;case"drawing":this.closeAllPanels(),this.openPanel(["draw"])}},t.prototype.getIconName=function(t){var e=this.editorUI.getNavItems().find(function(e){return e.name===t}),n=t.replace(/([A-Z])/g,"-$1").toLowerCase();return e?e.icon:n+"-custom"},t}(),ji=function(){function t(t,e,n,i,r,o){var a=this;this.canvas=t,this.activeObject=e,this.objects=n,this.frameTool=i,this.googleFonts=r,this.textTool=o,this.items=[],this.pointer=0,this.canvas.state.loaded.subscribe(function(){a.canvas.state.isEmpty()||a.addInitial()})}return t.prototype.canUndo=function(){return this.pointer-1>-1},t.prototype.canRedo=function(){return this.items.length>this.pointer+1},t.prototype.undo=function(){this.canUndo()&&this.load(this.items[this.pointer-1])},t.prototype.redo=function(){this.canRedo()&&this.load(this.items[this.pointer+1])},t.prototype.reload=function(){this.load(this.items[this.pointer])},t.prototype.replaceCurrent=function(){var t=this.items[this.pointer];this.items[this.pointer]=this.createHistoryItem(t.name,t.icon)},t.prototype.add=function(t,e,n){void 0===n&&(n=!0);var i=this.items.push(this.createHistoryItem(t,e));n&&(this.pointer=i-1)},t.prototype.addFromJson=function(t){var e=this.items.length?"loaded: state":"initial",n=this.createHistoryItem(e,"initial"===e?"home":"history",JSON.parse(t)),i=this.items.push(n);return this.pointer=i-1,this.load(n)},t.prototype.getAllItems=function(){return this.items},t.prototype.get=function(t){return this.items.find(function(e){return e.name===t})},t.prototype.getPointer=function(){return this.pointer},t.prototype.getCurrentCanvasState=function(){return{canvas:this.canvas.fabric().toJSON(["selectable","name","data"]),editor:{frame:this.frameTool.getActive(),fonts:this.textTool.getUsedFonts()},canvasWidth:this.canvas.state.original.width,canvasHeight:this.canvas.state.original.height}},t.prototype.clear=function(){this.items=[],this.pointer=0},t.prototype.addInitial=function(){this.items.length||(this.add("Initial","home",!1),this.pointer=0)},t.prototype.load=function(t){var e=this;return new Promise(function(n){"string"==typeof t&&(t=e.get(t));var i=t;e.pointer=e.items.findIndex(function(e){return e===t}),i.editor.fonts.length&&e.googleFonts.loadIntoDom(i.editor.fonts).then(function(){e.canvas.fabric().getObjects("i-text").forEach(function(t){t.set({dirty:!0})}),e.canvas.render()}),e.canvas.fabric().loadFromJSON(i.canvas,function(){i.editor.frame?e.frameTool.add(i.editor.frame.name):e.frameTool.remove(),e.canvas.zoom.set(1),i.canvasWidth&&i.canvasHeight&&e.canvas.resize(i.canvasWidth,i.canvasHeight),e.canvas.render(),e.canvas.fabric().calcOffset(),e.canvas.state.loading=!1,e.canvas.zoom.fitToScreen(),e.objects.syncObjects(),n()},function(t){t.hasOwnProperty("applyFilters")&&t.applyFilters()})})},t.prototype.createHistoryItem=function(t,e,n){return void 0===e&&(e=null),n||(n=this.getCurrentCanvasState()),Object.assign(n,{name:t,index:this.items.length,icon:e,zoom:this.canvas.zoom.get(),activeObjectId:this.activeObject.getId()})},t}(),Mi=n("+aTx"),Fi=function(){function t(t,e){this.el=t,this.editorUi=e}return Object.defineProperty(t.prototype,"animate",{get:function(){return this.editorUi.isVisible()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"darkTheme",{get:function(){return"dark"===this.editorUi.getTheme()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lightTheme",{get:function(){return"light"===this.editorUi.getTheme()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayMode",{get:function(){return"overlay"===this.editorUi.getMode()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inlineMode",{get:function(){return"inline"===this.editorUi.getMode()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.editorUi.getWidth()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.editorUi.getHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compact",{get:function(){return this.editorUi.isCompact()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.editorUi.init({root:this.el,overlay:this.overlay}),Mi()},t}(),Ni=n("NlKi"),Bi=["requestAnimationFrame is not defined","Object [object DOMWindow] has no method 'cancelAnimationFrame'","Uncaught (in promise): [object Object]","Uncaught (in promise): [object Undef
1ined]","[object Object]",'{"isTrusted"\n true}',"'block' member of ScrollIntoViewOptions 'center' is not a valid value for enumeration ScrollLogicalPosition."],Vi=(_i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}_i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Li=function(t){function e(e){var n=t.call(this)||this;return n.settings=e,n.installed=!1,n}return Vi(e,t),e.prototype.handleError=function(e,n){e&&(t.prototype.handleError.call(this,e),this.installSentry()&&Ni.captureException(e.originalError||e,n))},e.prototype.installSentry=function(){return!!this.installed||!!this.settings.has("logging.sentry_public")&&(Ni.config(this.settings.get("logging.sentry_public"),{release:this.settings.get("version"),ignoreErrors:Bi}).install(),this.installed=!0)},e}(i.ErrorHandler),zi=function(t){return new Li(t)},Hi=function(){function t(t){this.injector=t}return t.prototype.ngDoBootstrap=function(t){var e=this.injector.get(o).selector;t.bootstrap(Fi,e)},t}(),Wi=n("z7B4"),Ui=n("DC8U"),Yi=n("z4fs"),Xi=i["\u0275crt"]({encapsulation:0,styles:[[".color-picker[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{box-sizing:border-box;margin:0;font-size:11px}.color-picker[_ngcontent-%COMP%]{cursor:default;width:230px;height:auto;border:1px solid #777;position:absolute;z-index:100000;background-color:#fff;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.color-picker[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:default;position:relative}.color-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{text-align:center;font-size:13px;height:26px;min-width:0;-moz-appearance:textfield}.color-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:invalid{box-shadow:none}.color-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-moz-submit-invalid{box-shadow:none}.color-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-moz-ui-invalid{box-shadow:none}.color-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .color-picker[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.color-picker[_ngcontent-%COMP%] .button-area[_ngcontent-%COMP%]{padding:0 16px 16px;text-align:right}.color-picker[_ngcontent-%COMP%] .preset-area[_ngcontent-%COMP%]{padding:4px 15px}.color-picker[_ngcontent-%COMP%] .preset-area[_ngcontent-%COMP%] .preset-label[_ngcontent-%COMP%]{width:100%;padding:4px;font-size:11px;text-align:left;color:#555}.color-picker[_ngcontent-%COMP%] .preset-area[_ngcontent-%COMP%] .preset-color[_ngcontent-%COMP%]{border-radius:25%;-khtml-border-radius:25%;border:1px solid #a9a9a9;cursor:pointer;display:inline-block;height:18px;margin:4px 6px 8px;position:relative;width:18px}
1.color-picker[_ngcontent-%COMP%] .preset-area[_ngcontent-%COMP%] .preset-empty-message[_ngcontent-%COMP%]{font-style:italic;margin-bottom:8px;margin-top:4px;min-height:18px;text-align:center}.color-picker[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%]{height:0;width:0;border-style:solid;position:absolute;z-index:999999}.color-picker[_ngcontent-%COMP%] .arrow-right[_ngcontent-%COMP%]{border-width:5px 10px;border-color:transparent #777 transparent transparent;top:10px;left:-20px}.color-picker[_ngcontent-%COMP%] .arrow-left[_ngcontent-%COMP%]{border-width:5px 10px;border-color:transparent transparent transparent #777;top:10px;left:100%}.color-picker[_ngcontent-%COMP%] .arrow-bottom[_ngcontent-%COMP%]{border-width:10px 5px;border-color:transparent transparent #777;top:-20px;left:10px}.color-picker[_ngcontent-%COMP%] .arrow-top[_ngcontent-%COMP%]{border-width:10px 5px;border-color:#777 transparent transparent;left:10px}.color-picker[_ngcontent-%COMP%] div.cursor-sv[_ngcontent-%COMP%]{cursor:default;position:relative;border-radius:50%;-khtml-border-radius:50%;width:15px;height:15px;border:1px solid #ddd}.color-picker[_ngcontent-%COMP%] div.cursor[_ngcontent-%COMP%]{cursor:default;position:relative;border-radius:50%;-khtml-border-radius:50%;width:16px;height:16px;border:2px solid #222}.color-picker[_ngcontent-%COMP%] .saturation-lightness[_ngcontent-%COMP%]{cursor:pointer;width:100%;height:130px;border:none;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od
15rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuza
1HsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+
17669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTj
1xymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{display:-moz-flex;display:flex;padding:4px 8px}.color-picker[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{position:relative;padding:16px 8px}.color-picker[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1 1 auto;padding:12px 8px}.color-picker[_ngcontent-%COMP%] .hue[_ngcontent-%COMP%]{cursor:pointer;width:100%;height:16px;border:none;margin-bottom:16px;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker[_ngcontent-%COMP%] .alpha[_ngcontent-%COMP%]{cursor:pointer;width:100%;height:16px;border:none;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker[_ngcontent-%COMP%] .selected-color[_ngcontent-%COMP%]{width:40px;height:40px;top:16px;left:8px;position:absolute;border-radius:50%;-khtml-border-radius:50%;border:1px solid #a9a9a9}.color-picker[_ngcontent-%COMP%] .selected-color-background[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;-khtml-border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker[_ngcontent-%COMP%] .type-policy[_ngcontent-%COMP%]{position:absolute;top:215px;right:12px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center;background-size:8px 16px;-moz-background-size:8px 16px;-webkit-background-size:8px 16px;-o-background-size:8px 16px;width:16px;height:24px}
1.color-picker[_ngcontent-%COMP%] .hsla-text[_ngcontent-%COMP%], .color-picker[_ngcontent-%COMP%] .rgba-text[_ngcontent-%COMP%]{width:100%;font-size:11px;padding:4px 8px}.color-picker[_ngcontent-%COMP%] .hsla-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%], .color-picker[_ngcontent-%COMP%] .rgba-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{padding:0 24px 8px 8px}.color-picker[_ngcontent-%COMP%] .hsla-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .color-picker[_ngcontent-%COMP%] .rgba-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-width:0;flex:1;margin:0 8px 0 0;float:left;border:1px solid #a9a9a9;padding:1px}.color-picker[_ngcontent-%COMP%] .hsla-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:last-child, .color-picker[_ngcontent-%COMP%] .rgba-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:last-child{margin-right:0}.color-picker[_ngcontent-%COMP%] .hsla-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .color-picker[_ngcontent-%COMP%] .rgba-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1 1 auto;text-align:center;color:#555;margin-right:8px}.color-picker[_ngcontent-%COMP%] .hsla-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:last-child, .color-picker[_ngcontent-%COMP%] .rgba-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:last-child{margin-right:0}.color-picker[_ngcontent-%COMP%] .hex-text[_ngcontent-%COMP%]{width:100%;font-size:11px;padding:4px 8px}.color-picker[_ngcontent-%COMP%] .hex-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{padding:0 24px 8px 8px}.color-picker[_ngcontent-%COMP%] .hex-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1 1 auto;border:1px solid #a9a9a9;padding:1px}.color-picker[_ngcontent-%COMP%] .hex-text[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1 1 auto;text-align:center;color:#555;float:left;clear:left}.color-picker[_ngcontent-%COMP%] .cp-add-color-button-class[_ngcontent-%COMP%]{background:0 0;border:0;cursor:pointer;display:inline;margin-left:-3px;margin-top:3px;padding:0;position:absolute}.color-picker[_ngcontent-%COMP%] .cp-add-color-button-class[_ngcontent-%COMP%]:hover{text-decoration:underline}.color-picker[_ngcontent-%COMP%] .cp-add-color-button-class[_ngcontent-%COMP%]:disabled{color:#999;cursor:not-allowed}.color-picker[_ngcontent-%COMP%] .cp-add-color-button-class[_ngcontent-%COMP%]:disabled:hover{text-decoration:none}.color-picker[_ngcontent-%COMP%] .cp-remove-color-button-class[_ngcontent-%COMP%]{background:#fff;border-radius:50%;box-shadow:1px 1px 5px #333;cursor:pointer;display:block;height:10px;position:absolute;right:-5px;text-align:center;top:-5px;width:10px}.color-picker[_ngcontent-%COMP%] .cp-remove-color-button-class[_ngcontent-%COMP%]:before{bottom:3.5px;content:'x';display:inline-block;font-size:10px;position:relative}\n/*# sourceMappingURL=color-picker.component.css.map*/"]],data:{}});function qi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,0,"div",[],[[8,"className",0],[4,"top","px"]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,i["\u0275inlineInterpolate"](1,"arrow arrow-",n.cpPosition,""),n.arrowTop)})}function Gi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"button",[],[[8,"className",0],[8,"disabled",0]],[[null,"click"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==r.addPresetColor(n,r.selectedColor)&&i),i},null,null)),(t()(),i["\u0275ted"](1,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,i["\u0275inlineInterpolate"](1,"",n.cpAddColorButtonClass,""),n.cpPresetColors&&n.cpPresetColors.length>=n.cpMaxPresetColorsLength),t(e,1,0,n.cpAddColorButtonText)})}function Ki(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,0,"div",[["style","height: 16px;"]],null,null,null,null,null))],null,null)}function Zi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"input",[["max","1"],["min","0"],["pattern","[0-9]+([\\.,][0-9]{1,2})?"],["step","0.1"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,1).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setA(n)&&r),r}
1,null,null)),i["\u0275did"](1,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"})],function(t,e){t(e,1,0,1)},function(t,e){t(e,0,0,e.component.hslaText.a)})}function Qi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["A"]))],null,null)}function Ji(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"input",[["max","1"],["min","0"],["pattern","[0-9]+([\\.,][0-9]{1,2})?"],["step","0.1"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,1).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setA(n)&&r),r},null,null)),i["\u0275did"](1,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"})],function(t,e){t(e,1,0,1)},function(t,e){t(e,0,0,e.component.rgbaText.a)})}function $i(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["A"]))],null,null)}function tr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,0,"span",[],[[8,"className",0]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.removePresetColor(n,t.parent.context.$implicit)&&i),i},null,null))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"",e.component.cpRemoveColorButtonClass,""))})}function er(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","preset-color"]],[[4,"backgroundColor",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.setColorFromString(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,tr)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.cpAddColorButton)},function(t,e){t(e,0,0,e.context.$implicit)})}function nr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,er)),i["\u0275did"](2,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.cpPresetColors)},null)}function ir(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,i["\u0275inlineInterpolate"](1,"",n.cpPresetEmptyMessageClass,"")),t(e,1,0,n.cpPresetEmptyMessage)})}function rr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","preset-area"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"hr",[],null,
1null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,1,"div",[["class","preset-label"]],null,null,null,null,null)),(t()(),i["\u0275ted"](3,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,nr)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,ir)),i["\u0275did"](7,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,n.cpPresetColors.length),t(e,7,0,!n.cpPresetColors.length&&n.cpAddColorButton)},function(t,e){t(e,3,0,e.component.cpPresetLabel)})}function or(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"button",[["type","button"]],[[8,"className",0]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.oKColor(n)&&i),i},null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,i["\u0275inlineInterpolate"](1,"",n.cpOKButtonClass,"")),t(e,1,0,n.cpOKButtonText)})}function ar(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"button",[["type","button"]],[[8,"className",0]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.cancelColor(n)&&i),i},null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,i["\u0275inlineInterpolate"](1,"",n.cpCancelButtonClass,"")),t(e,1,0,n.cpCancelButtonText)})}function sr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","button-area"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,or)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,ar)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.cpOKButton),t(e,4,0,n.cpCancelButton)},null)}function lr(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{hueSlider:0}),i["\u0275qud"](402653184,2,{alphaSlider:0}),i["\u0275qud"](402653184,3,{dialogElement:0}),(t()(),i["\u0275eld"](3,0,[[3,0],["dialogPopup",1]],null,70,"div",[["class","color-picker"]],[[4,"visibility",null],[4,"height","px"],[4,"width","px"],[4,"top","px"],[4,"left","px"],[4,"position",null]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,qi)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](6,0,null,null,2,"div",[["class","saturation-lightness"]],[[4,"background-color",null]],[[null,"newValue"],[null,"dragStart"],[null,"dragEnd"],[null,"mousedown"],[null,"touchstart"]],function(t,e,n){var r=!0,o=t.component;return"mousedown"===e&&(r=!1!==i["\u0275nov"](t,7).start(n)&&r),"touchstart"===e&&(r=!1!==i["\u0275nov"](t,7).start(n)&&r),"newValue"===e&&(r=!1!==o.setSaturationAndBrightness(n)&&r),"dragStart"===e&&(r=!1!==o.onDragStart("saturation-lightness")&&r),"dragEnd"===e&&(r=!1!==o.onDragEnd("saturation-lightness")&&r),r},null,null)),i["\u0275did"](7,16384,null,0,Wi.SliderDirective,[i.ElementRef],{rgX:[0,"rgX"],rgY:[1,"rgY"]},{newValue:"newValue",dragStart:"dragStart",dragEnd:"dragEnd"}),(t()(),i["\u0275eld"](8,0,null,null,0,"div",[["class","cursor"]],[[4,"left","px"],[4,"top","px"]],null,null,null,null)),(t()(),i["\u0275eld"](9,0,null,null,14,"div",[["class","box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](10,0,null,null,4,"div",[["class","left"]],null,null,null,null,null)),(t()(),i["\u0275eld"](11,0,null,null,0,"div",[["class","selected-color-background"]],null,null,null,null,null)),(t()(),i["\u0275eld"](12,0,null,null,0,"div",[["class","selected-color"]],[[4,"background-color",null]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Gi)),i["\u0275did"](14,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](15,0,null,null,8,"div",[["class","right"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Ki)),i["\u0275did"](17,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](18,0,[[1,0],["hueSlider",1]],null,2,"div",[["class","hue"]],null,[[null,"newValue"],[null,"dragStart"],[null,"dragEnd"],[null,"mousedown"],[null,"touchstart"]],function(t,e,n){var r=!0,o=t.component;return"mousedown"===e&&(r=!1!==i["\u0275nov"](t,19).start(n)&&r),"touchstart"===e&&(r=!1!==i["\u0275nov"](t,19).start(n)&&r),"newValue"===e&&(r=!1!==o.setHue(n)&&r),"dragStart"===e&&(r=!1!==o.onDragStart("hue")&&r),"dragEnd"===e&&(r=!1!==o.onDragEnd("hue")&&r),r}
1,null,null)),i["\u0275did"](19,16384,null,0,Wi.SliderDirective,[i.ElementRef],{rgX:[0,"rgX"]},{newValue:"newValue",dragStart:"dragStart",dragEnd:"dragEnd"}),(t()(),i["\u0275eld"](20,0,null,null,0,"div",[["class","cursor"]],[[4,"left","px"]],null,null,null,null)),(t()(),i["\u0275eld"](21,0,[[2,0],["alphaSlider",1]],null,2,"div",[["class","alpha"]],[[4,"display",null],[4,"background-color",null]],[[null,"newValue"],[null,"dragStart"],[null,"dragEnd"],[null,"mousedown"],[null,"touchstart"]],function(t,e,n){var r=!0,o=t.component;return"mousedown"===e&&(r=!1!==i["\u0275nov"](t,22).start(n)&&r),"touchstart"===e&&(r=!1!==i["\u0275nov"](t,22).start(n)&&r),"newValue"===e&&(r=!1!==o.setAlpha(n)&&r),"dragStart"===e&&(r=!1!==o.onDragStart("alpha")&&r),"dragEnd"===e&&(r=!1!==o.onDragEnd("alpha")&&r),r},null,null)),i["\u0275did"](22,16384,null,0,Wi.SliderDirective,[i.ElementRef],{rgX:[0,"rgX"]},{newValue:"newValue",dragStart:"dragStart",dragEnd:"dragEnd"}),(t()(),i["\u0275eld"](23,0,null,null,0,"div",[["class","cursor"]],[[4,"left","px"]],null,null,null,null)),(t()(),i["\u0275eld"](24,0,null,null,18,"div",[["class","hsla-text"]],[[4,"display",null]],null,null,null,null)),(t()(),i["\u0275eld"](25,0,null,null,8,"div",[["class","box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](26,0,null,null,1,"input",[["max","360"],["min","0"],["pattern","[0-9]*"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,27).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setHue(n)&&r),r},null,null)),i["\u0275did"](27,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"}),(t()(),i["\u0275eld"](28,0,null,null,1,"input",[["max","100"],["min","0"],["pattern","[0-9]*"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,29).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setSaturation(n)&&r),r},null,null)),i["\u0275did"](29,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"}),(t()(),i["\u0275eld"](30,0,null,null,1,"input",[["max","100"],["min","0"],["pattern","[0-9]*"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,31).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setLightness(n)&&r),r},null,null)),i["\u0275did"](31,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"}),(t()(),i["\u0275and"](16777216,null,null,1,null,Zi)),i["\u0275did"](33,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](34,0,null,null,8,"div",[["class","box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](35,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["H"])),(t()(),i["\u0275eld"](37,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["S"])),(t()(),i["\u0275eld"](39,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["L"])),(t()(),i["\u0275and"](16777216,null,null,1,null,Qi)),i["\u0275did"](42,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](43,0,null,null,18,"div",[["class","rgba-text"]],[[4,"display",null]],null,null,null,null)),(t()(),i["\u0275eld"](44,0,null,null,8,"div",[["class","box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](45,0,null,null,1,"input",[["max","255"],["min","0"],["pattern","[0-9]*"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,46).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setR(n)&&r),r},null,null)),i["\u0275did"](46,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"}),(t()(),i["\u0275eld"](47,0,null,null,1,"input",[["max","255"],["min","0"],["pattern","[0-9]*"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,48).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setG(n)&&r),r}
1,null,null)),i["\u0275did"](48,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"}),(t()(),i["\u0275eld"](49,0,null,null,1,"input",[["max","255"],["min","0"],["pattern","[0-9]*"],["type","number"]],[[8,"value",0]],[[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,50).changeInput(n.target.value)&&r),"newValue"===e&&(r=!1!==o.setB(n)&&r),r},null,null)),i["\u0275did"](50,16384,null,0,Wi.TextDirective,[],{rg:[0,"rg"]},{newValue:"newValue"}),(t()(),i["\u0275and"](16777216,null,null,1,null,Ji)),i["\u0275did"](52,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](53,0,null,null,8,"div",[["class","box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](54,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["R"])),(t()(),i["\u0275eld"](56,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["G"])),(t()(),i["\u0275eld"](58,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["B"])),(t()(),i["\u0275and"](16777216,null,null,1,null,$i)),i["\u0275did"](61,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](62,0,null,null,6,"div",[["class","hex-text"]],[[4,"display",null]],null,null,null,null)),(t()(),i["\u0275eld"](63,0,null,null,2,"div",[["class","box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](64,0,null,null,1,"input",[],[[8,"value",0]],[[null,"blur"],[null,"newValue"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,65).changeInput(n.target.value)&&r),"blur"===e&&(r=!1!==o.setHex(null)&&r),"newValue"===e&&(r=!1!==o.setHex(n)&&r),r},null,null)),i["\u0275did"](65,16384,null,0,Wi.TextDirective,[],null,{newValue:"newValue"}),(t()(),i["\u0275eld"](66,0,null,null,2,"div",[["class","box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](67,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["Hex"])),(t()(),i["\u0275eld"](69,0,null,null,0,"div",[["class","type-policy"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.formatPolicy()&&i),i},null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,rr)),i["\u0275did"](71,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,sr)),i["\u0275did"](73,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,"popup"==n.cpDialogDisplay),t(e,7,0,1,1),t(e,14,0,n.cpAddColorButton),t(e,17,0,"disabled"===n.cpAlphaChannel),t(e,19,0,1),t(e,22,0,1),t(e,27,0,360),t(e,29,0,100),t(e,31,0,100),t(e,33,0,"disabled"!==n.cpAlphaChannel),t(e,42,0,"disabled"!==n.cpAlphaChannel),t(e,46,0,255),t(e,48,0,255),t(e,50,0,255),t(e,52,0,"disabled"!==n.cpAlphaChannel),t(e,61,0,"disabled"!==n.cpAlphaChannel),t(e,71,0,n.cpPresetColors),t(e,73,0,n.cpOKButton||n.cpCancelButton)},function(t,e){var n=e.component;t(e,3,0,n.hidden||!n.show?"hidden":"visible",n.cpHeight,n.cpWidth,n.top,n.left,n.position),t(e,6,0,n.hueSliderColor),t(e,8,0,n.slider.s,n.slider.v),t(e,12,0,n.selectedColor),t(e,20,0,n.slider.h),t(e,21,0,"disabled"===n.cpAlphaChannel?"none":"block",n.alphaSliderColor),t(e,23,0,n.slider.a),t(e,24,0,2!==n.format?"none":"block"),t(e,26,0,n.hslaText.h),t(e,28,0,n.hslaText.s),t(e,30,0,n.hslaText.l),t(e,43,0,1!==n.format?"none":"block"),t(e,45,0,n.rgbaText.r),t(e,47,0,n.rgbaText.g),t(e,49,0,n.rgbaText.b),t(e,62,0,0!==n.format?"none":"block"),t(e,64,0,n.hexText)})}var ur=i["\u0275ccf"]("color-picker",Ui.ColorPickerComponent,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"color-picker",[],null,null,null,lr,Xi)),i["\u0275did"](1,4308992,null,0,Ui.ColorPickerComponent,[i.ElementRef,i.ChangeDetectorRef,Yi.ColorPickerService],null,
1null)],function(t,e){t(e,1,0)},null)},{},{},[]),cr=n("1kbU"),hr=function(){function t(t){this.overlayPanelRef=t}return t.prototype.ngOnInit=function(){var t=this;setTimeout(function(){t.trigger.nativeElement.click()})},t.prototype.emitSelectedEvent=function(t){this.color=t,this.overlayPanelRef.emitValue(t)},t}(),dr=i["\u0275crt"]({encapsulation:2,styles:[["colorpicker-panel{display:block;width:230px;height:277px}colorpicker-panel>.trigger{display:block}"]],data:{}});function pr(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{trigger:0}),(t()(),i["\u0275eld"](1,16777216,[[1,0],["trigger",1]],null,1,"div",[["class","trigger"]],null,[[null,"colorPickerChange"],[null,"click"],[null,"focus"],[null,"input"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==i["\u0275nov"](t,2).inputFocus()&&r),"focus"===e&&(r=!1!==i["\u0275nov"](t,2).inputFocus()&&r),"input"===e&&(r=!1!==i["\u0275nov"](t,2).inputChange(n.target.value)&&r),"colorPickerChange"===e&&(r=!1!==o.emitSelectedEvent(n)&&r),r},null,null)),i["\u0275did"](2,737280,null,0,cr.ColorPickerDirective,[i.Injector,i.ComponentFactoryResolver,i.ApplicationRef,i.ViewContainerRef,i.ElementRef,Yi.ColorPickerService],{colorPicker:[0,"colorPicker"],cpToggle:[1,"cpToggle"],cpDialogDisplay:[2,"cpDialogDisplay"],cpAlphaChannel:[3,"cpAlphaChannel"]},{colorPickerChange:"colorPickerChange"})],function(t,e){t(e,2,0,e.component.color,!1,"inline","always")},null)}var fr,gr=i["\u0275ccf"]("colorpicker-panel",hr,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"colorpicker-panel",[],null,
1null,null,pr,dr)),i["\u0275did"](1,114688,null,0,hr,[Ai],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),mr=function(){function t(){}return t.prototype.transform=function(t){var e=[];if(t)for(var n in t)e.push({key:n,value:t[n]});return e},t}(),vr=function(){function t(t,e,n){this.el=t,this.renderer=e,this.settings=n}return t.prototype.ngOnInit=function(){this.path=this.settings.getAssetUrl("icons/merged.svg")+"#"+this.name,this.renderer.addClass(this.el.nativeElement,("icon-"+this.name).replace(/ /g,"-"))},t}(),yr=i["\u0275crt"]({encapsulation:2,styles:[["svg-icon{display:inline-block;width:24px;height:24px;vertical-align:inherit}svg-icon>svg{display:block;fill:currentColor;width:inherit;height:inherit}svg-icon.size-16{width:16px;height:16px}svg-icon.size-18{width:18px;height:18px}svg-icon.size-20{width:20px;height:20px}svg-icon.size-22{width:22px;height:22px}svg-icon.align-middle{vertical-align:middle}svg-icon.block{display:block}"]],data:{}});function br(t){return i["\u0275vid"](2,[(t()(),i["\u0275eld"](0,0,null,null,1,":svg:svg",[],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null))],null,function(t,e){t(e,1,0,e.component.path)})}!function(t){t.display="Display",t.handwriting="Hand Writing",t.monospace="Mono Space",t["sans-serif"]="Sans Serif",t.serif="Serif"}(fr||(fr={}));var _r=function(){function t(t,e){this.overlayPanelRef=t,this.fonts=e,this.fontCategories=fr}return t.prototype.ngOnInit=function(){this.fonts.init()},t.prototype.ngOnDestroy=function(){this.fonts.paginator.reset()},t.prototype.applyFont=function(t){this.overlayPanelRef.emitValue(t),this.overlayPanelRef.close()},t}(),wr=n("J9Y1"),xr=function(){function t(t,e,n){var i=this;this.http=t,this.settings=e,this.paginator=n,this.loadedFonts=[],this.customFonts=[],this.paginator.current$.subscribe(function(t){i.loadIntoDom(t)}),this.customFonts=this.settings.get("pixie.tools.text.items",[])}return t.prototype.init=function(){return t=this,void 0,n=function(){var t,e,n;return function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=i[2&o[0]?"return":o[0]?"throw":"next"])&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[0,r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,function(i){switch(i.label){case 0:return t=this.customFonts.slice(),this.settings.get("pixie.tools.text.replaceDefault")?[3,2]:(n=(e=t).concat,[4,this.getGoogleFonts()]);case 1:t=n.apply(e,[i.sent()]),i.label=2;case 2:return this.paginator.setFonts(t),[2]}})},new((e=void 0)||(e=Promise))(function(i,r){function o(t){try{s(n.next(t))}catch(t){r(t)}}function a(t){try{s(n.throw(t))}catch(t){r(t)}}function s(t){t.done?i(t.value):new e(function(e){e(t.value)}).then(o,a)}s((n=n.apply(t,[])).next())});var t,e,n},t.prototype.loadIntoDom=function(t,e){var n=this;return void 0===t&&(t=[]),new Promise(function(i){if(!(t=t.filter(function(t){return!n.loadedFonts.find(function(e){return e.family===t.family})})).length)return i();n.loadedFonts=n.loadedFonts.concat(t);var r=t.filter(function(t){return"google"===t.type}),o=t.filter(function(t){return"custom"===t.type}),a={active:i,context:e,classes:!1};r.length&&(a.google={families:r.map(function(t){return t.family})}),o.length&&(n.loadCustomFonts(o,e),a.custom={families:o.map(function(t){return t.family})}),wr.load(a)})},t.prototype.loadCustomFonts=function(t,e){var n=this;if(void 0===t&&(t=[]),t.length){var i="";t.forEach(function(t){var e=n.settings.getAssetUrl("fonts")+t.filePath;i+="@font-face { font-family: "+t.family+'; src: url("'+e+'"); }'});var r=document.createElement("style");r.innerHTML=i,(e||window).document.head.appendChild(r)}},t.prototype.getGoogleFonts=function(){var t=this.settings.get("pixie.googleFontsApiKey");return this.http.getWithCache("https://www.googleapis.com/webfonts/v1/webfonts?sort=popularity&key="+t).pipe(Object(T.a)(function(t){return t.items.map(function(t){return{family:t.family,category:t.category,type:"google"}})})).toPromise()},t}(),Cr=i["\u0275crt"]({encapsulation:2,styles:[["google-fonts-panel{display:block;width:280px;min-height:600px;background-color:#fff;box-shadow:-1px 0 2px rgba(0,0,0,.5);border-radius:2px;color:rgba(0,0,0,.87)}google-fonts-panel>.header{display:flex;align-items:center;padding:12px;color:#fff;border-bottom:1px solid #e0e0e0;background-color:#1565c0}google-fonts-panel>.header>.close-button{margin-left:auto}google-fonts-panel .many-inputs{padding:10px}google-fonts-panel .many-inputs .input-container{width:auto}google-fonts-panel .many-inputs .input-container>input{background-color:#fff;border-color:#e0e0e0}google-fonts-panel>.fonts{text-align:center;padding:10px 0}google-fonts-panel>.fonts>.font{display:block;font-size:2.5rem;margin-bottom:10px;width:100%;transition:color .2s ease}google-fonts-panel>.fonts>.font:hover{color:#009688}google-fonts-panel>.pagination{padding:0 10px 10px;text-align:right;margin-top:auto}"]],data:{}});function Sr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"option",[["trans",""]],null,null,null,null,null)),i["\u0275did"](1,147456,null,0,sn,[i.ElementRef,i.Renderer2,[2,an]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,cn,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),(t()(),i["\u0275ted"](3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit.key),t(e,2,0,e.context.$implicit.key)},function(t,e){t(e,3,0,e.context.$implicit.value)})}function kr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","no-style font"]],[[4,"fontFamily",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.applyFont(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,e.context.$implicit.family),t(e,1,0,e.context.$implicit.family)})}function Er(t){return i["\u0275vid"](0,[i["\u0275pid"](0,mr,[]),(t()(),i["\u0275eld"](1,0,null,null,5,"div",[["class","header"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,1,"div",[["class","name"],["trans",""]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["Google Fonts"])),(t()(),i["\u0275eld"](4,0,null,null,2,"button",[["class","close-button no-style"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.overlayPanelRef.close()&&i),i},null,null)),(t()(),i["\u0275eld"](5,0,null,null,1,"svg-icon",[["name","close"]],null,null,null,br,yr)),i["\u0275did"](6,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](7,0,null,null,21,"form",[["class","many-inputs"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0;return"submit"===e&&(r=!1!==i["\u0275nov"](t,9).onSubmit(n)&&r),"reset"===e&&(r=!1!==i["\u0275nov"](t,9).onReset()&&r),r}
1,null,null)),i["\u0275did"](8,16384,null,0,Qn,[],null,null),i["\u0275did"](9,540672,null,0,Un,[[8,null],[8,null]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,je,null,[Un]),i["\u0275did"](11,16384,null,0,Tn,[[4,je]],null,null),(t()(),i["\u0275eld"](12,0,null,null,6,"div",[["class","input-container search"]],null,null,null,null,null)),(t()(),i["\u0275eld"](13,0,null,null,5,"input",[["formControlName","search"],["placeholder","Search..."],["trans-placeholder",""],["type","search"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==i["\u0275nov"](t,14)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,14).onTouched()&&r),"compositionstart"===e&&(r=!1!==i["\u0275nov"](t,14)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i["\u0275nov"](t,14)._compositionEnd(n.target.value)&&r),r},null,null)),i["\u0275did"](14,16384,null,0,Ye,[i.Renderer2,i.ElementRef,[2,Ue]],null,null),i["\u0275prd"](1024,null,He,function(t){return[t]},[Ye]),i["\u0275did"](16,671744,null,0,Gn,[[3,je],[8,null],[8,null],[6,He],[2,Hn]],{name:[0,"name"]},null),i["\u0275prd"](2048,null,Ze,null,[Gn]),i["\u0275did"](18,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](19,0,null,null,9,"div",[["class","input-container category"]],null,null,null,null,null)),(t()(),i["\u0275eld"](20,0,null,null,8,"select",[["formControlName","category"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"change"],[null,"blur"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==i["\u0275nov"](t,21).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,21).onTouched()&&r),r},null,null)),i["\u0275did"](21,16384,null,0,an,[i.Renderer2,i.ElementRef],null,
1null),i["\u0275prd"](1024,null,He,function(t){return[t]},[an]),i["\u0275did"](23,671744,null,0,Gn,[[3,je],[8,null],[8,null],[6,He],[2,Hn]],{name:[0,"name"]},null),i["\u0275prd"](2048,null,Ze,null,[Gn]),i["\u0275did"](25,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275and"](16777216,null,null,2,null,Sr)),i["\u0275did"](27,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275ppd"](28,1),(t()(),i["\u0275eld"](29,0,null,null,3,"div",[["class","fonts"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,2,null,kr)),i["\u0275did"](31,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,M.AsyncPipe,[i.ChangeDetectorRef]),(t()(),i["\u0275eld"](33,0,null,null,6,"div",[["class","pagination"]],null,null,null,null,null)),(t()(),i["\u0275eld"](34,0,null,null,2,"button",[["class","no-style previous-page"],["matTooltip","Previous Page"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.fonts.paginator.previous()&&i),i},null,null)),(t()(),i["\u0275eld"](35,0,null,null,1,"svg-icon",[["name","keyboard-arrow-left"]],null,null,null,br,yr)),i["\u0275did"](36,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](37,0,null,null,2,"button",[["class","no-style next-page"],["matTooltip","Next Page"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.fonts.paginator.next()&&i),i},null,null)),(t()(),i["\u0275eld"](38,0,null,null,1,"svg-icon",[["name","keyboard-arrow-right"]],null,null,null,br,yr)),i["\u0275did"](39,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){var n=e.component;t(e,6,0,"close"),t(e,9,0,n.fonts.paginator.filters),t(e,16,0,"search"),t(e,23,0,"category"),t(e,27,0,i["\u0275unv"](e,27,0,t(e,28,0,i["\u0275nov"](e,0),n.fontCategories))),t(e,31,0,i["\u0275unv"](e,31,0,i["\u0275nov"](e,32).transform(n.fonts.paginator.current$))),t(e,36,0,"keyboard-arrow-left"),t(e,39,0,"keyboard-arrow-right")},function(t,e){t(e,7,0,i["\u0275nov"](e,11).ngClassUntouched,i["\u0275nov"](e,11).ngClassTouched,i["\u0275nov"](e,11).ngClassPristine,i["\u0275nov"](e,11).ngClassDirty,i["\u0275nov"](e,11).ngClassValid,i["\u0275nov"](e,11).ngClassInvalid,i["\u0275nov"](e,11).ngClassPending),t(e,13,0,i["\u0275nov"](e,18).ngClassUntouched,i["\u0275nov"](e,18).ngClassTouched,i["\u0275nov"](e,18).ngClassPristine,i["\u0275nov"](e,18).ngClassDirty,i["\u0275nov"](e,18).ngClassValid,i["\u0275nov"](e,18).ngClassInvalid,i["\u0275nov"](e,18).ngClassPending),t(e,20,0,i["\u0275nov"](e,25).ngClassUntouched,i["\u0275nov"](e,25).ngClassTouched,i["\u0275nov"](e,25).ngClassPristine,i["\u0275nov"](e,25).ngClassDirty,i["\u0275nov"](e,25).ngClassValid,i["\u0275nov"](e,25).ngClassInvalid,i["\u0275nov"](e,25).ngClassPending)})}var Or=i["\u0275ccf"]("google-fonts-panel",_r,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"google-fonts-panel",[],null,
1null,null,Er,Cr)),i["\u0275did"](1,245760,null,0,_r,[Ai,xr],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Tr=function(){},Ar="*";function Dr(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function Pr(t){return{type:6,styles:t,offset:null}}function Ir(t){Promise.resolve(null).then(t)}var Rr=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;Ir(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),jr=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,i=0,r=0,o=this.players.length;0==o?Ir(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==o&&e._onFinish()}),t.onDestroy(function(){++i==o&&e._onDestroy()}),t.onStart(function(){++r==o&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Mr="!";function Fr(t){return null!=t&&""+t!="false"}function Nr(t,e){return void 0===e&&(e=0),function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Br(t){return Array.isArray(t)?t:[t]}function Vr(t){return null==t?"":"string"==typeof t?t:t+"px"}var Lr,zr="undefined"!=typeof Intl&&Intl.v8BreakIterator,Hr=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?Object(M.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(m
1sie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!zr)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(i.PLATFORM_ID,8))},token:t,providedIn:"root"}),t}();function Wr(){if(null==Lr&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Lr=!0}}))}finally{Lr=Lr||!1}return Lr}var Ur=function(){},Yr=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Xr=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&Object(i.isDevMode)()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t}();function qr(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,e)||this;return i._disabled=!1,i}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Fr(t)},enumerable:!0,configurable:!0}),e}(t)}function Gr(t,e){return function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return r.color=e,r}return Object(D.b)(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function Kr(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=t.apply(this,e)||this;return i._disableRipple=!1,i}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Fr(t)},enumerable:!0,configurable:!0}),e}(t)}function Zr(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r=t.apply(this,n)||this;return r._tabIndex=e,r}return Object(D.b)(n,t),Object.defineProperty(n.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:e},enumerable:!0,configurable:!0}),n}(t)}var Qr=new i.InjectionToken("MAT_HAMMER_OPTIONS"),Jr=function(t){function e(e,n){var i=t.call(this)||this;return i._hammerOptions=e,i._hammer="undefined"!=typeof window?window.Hammer:null,i.events=i._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],n&&n._checkHammerIsAvailable(),i}
1return Object(D.b)(e,t),e.prototype.buildHammer=function(t){var e=new this._hammer(t,this._hammerOptions||void 0),n=new this._hammer.Pan,i=new this._hammer.Swipe,r=new this._hammer.Press,o=this._createRecognizer(n,{event:"slide",threshold:0},i),a=this._createRecognizer(r,{event:"longpress",time:500});return n.recognizeWith(i),e.add([i,r,n,o,a]),e},e.prototype._createRecognizer=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var r=new t.constructor(e);return n.push(t),n.forEach(function(t){return r.recognizeWith(t)}),r},e}(ve),$r=function(){var t={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return t[t.FADING_IN]="FADING_IN",t[t.VISIBLE]="VISIBLE",t[t.FADING_OUT]="FADING_OUT",t[t.HIDDEN]="HIDDEN",t}(),to=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=$r.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),eo={enterDuration:450,exitDuration:400},no=800,io=function(){function t(t,e,n,i){var r=this;this._target=t,this._ngZone=e,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._eventOptions=!!Wr()&&{passive:!0},this.onMousedown=function(t){var e=r._lastTouchStartEvent&&Date.now()<r._lastTouchStartEvent+no;r._target.rippleDisabled||e||(r._isPointerDown=!0,r.fadeInRipple(t.clientX,t.clientY,r._target.rippleConfig))},this.onTouchStart=function(t){r._target.rippleDisabled||(r._lastTouchStartEvent=Date.now(),r._isPointerDown=!0,r.fadeInRipple(t.touches[0].clientX,t.touches[0].clientY,r._target.rippleConfig))},this.onPointerUp=function(){r._isPointerDown&&(r._isPointerDown=!1,r._activeRipples.forEach(function(t){!t.config.persistent&&(t.state===$r.VISIBLE||t.config.terminateOnPointerUp&&t.state===$r.FADING_IN)&&t.fadeOut()}))},i.isBrowser&&(this._containerElement=n.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown),this._triggerEvents.set("mouseup",this.onPointerUp),this._triggerEvents.set("mouseleave",this.onPointerUp),this._triggerEvents.set("touchstart",this.onTouchStart),this._triggerEvents.set("touchend",this.onPointerUp))}return t.prototype.fadeInRipple=function(t,e,n){var i=this;void 0===n&&(n={});var r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object(D.a)({},eo,n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=n.radius||function(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,r),s=t-r.left,l=e-r.top,u=o.enterDuration/(n.speedFactor||1),c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=s-a+"px",c.style.top=l-a+"px",c.style.height=2*a+"px",c.style.width=2*a+"px",c.style.backgroundColor=n.color||null,c.style.transitionDuration=u+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";var h=new to(this,c,n);return h.state=$r.FADING_IN,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this.runTimeoutOutsideZone(function(){var t=h===i._mostRecentTransientRipple;h.state=$r.VISIBLE,n.persistent||t&&i._isPointerDown||h.fadeOut()},u),h},t.prototype.fadeOutRipple=function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object(D.a)({},eo,t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=$r.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=$r.HIDDEN,n.parentNode.removeChild(n)},i.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setupTriggerEvents=function(t){var e=this;t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(n,i){return t.addEventListener(i,n,e._eventOptions)})}),this._triggerElement=t)},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t.prototype._removeTriggerEvents=function(){var t=this;
1this._triggerElement&&this._triggerEvents.forEach(function(e,n){t._triggerElement.removeEventListener(n,e,t._eventOptions)})},t}(),ro=new i.InjectionToken("mat-ripple-global-options"),oo=function(){function t(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this.speedFactor=1,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new io(this,e,t,n)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:Object(D.a)({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,e,n){return void 0===e&&(e=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object(D.a)({},this.rippleConfig,n)):this._rippleRenderer.fadeInRipple(0,0,Object(D.a)({},this.rippleConfig,t))},t}(),ao=function(){},so=function(t){function e(){var n=t.call(this,"argument out of range")||this;return n.name="ArgumentOutOfRangeError",Object.setPrototypeOf(n,e.prototype),n}return D.b(e,t),e}(Error);function lo(t){return function(e){return 0===t?k():e.lift(new uo(t))}}var uo=function(){function t(t){if(this.total=t,this.total<0)throw new so}return t.prototype.call=function(t,e){return e.subscribe(new co(t,this.total))},t}(),co=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return D.b(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(P.a);function ho(t){return function(e){return e.lift(new po(t))}}var po=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new fo(t),i=Object(_t.a)(n,this.notifier);return i&&!i.closed?(n.add(i),e.subscribe(n)):n},t}(),fo=function(t){function e(e){return t.call(this,e)||this}return D.b(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.complete()},e.prototype.notifyComplete=function(){},e}(wt.a),go={},mo=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vo(t,this.resultSelector))},t}(),vo=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return D.b(e,t),e.prototype._next=function(t){this.values.push(go),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var i=t[n];this.add(Object(_t.a)(this,i,i,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,i,r){var o=this.values,a=this.toRespond?o[n]===go?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(wt.a),yo=n("2Bdj"),bo=n("Zn8D");var _o,wo=new Set,xo=function(){function t(t){this.platform=t,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Co}return t.prototype.matchMedia=function(t){return this.platform.WEBKIT&&function(t){if(!wo.has(t))try{_o||((_o=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(_o)),_o.sheet&&(_o.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),wo.add(t))}catch(t){console.error(t)}}(t),this._matchMedia(t)},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(Hr))},token:t,providedIn:"root"}),t}();function Co(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var So=function(){function t(t,e){this.mediaMatcher=t,this.zone=e,this._queries=new Map,this._destroySubject=ne
1w ni.a}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return ko(Br(t)).some(function(t){return e._registerQuery(t).mql.matches})},t.prototype.observe=function(t){var e=this;return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null,i=null;return Object(w.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(bt.a)(t[0])&&(t=t[0]),Object(x.a)(t,i).lift(new mo(n))}(ko(Br(t)).map(function(t){return e._registerQuery(t).observable})).pipe(Object(T.a)(function(t){return{matches:t.some(function(t){return t&&t.matches})}}))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this.mediaMatcher.matchMedia(t),i={observable:function t(e,n,i){return i?t(e,n).pipe(Object(T.a)(function(t){return Object(bt.a)(t)?i.apply(void 0,t):i(t)})):new C.a(function(t){var i,r=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1===e.length?e[0]:e)};try{i=e(r)}catch(e){return void t.error(e)}if(Object(yo.a)(n))return function(){return n(r,i)}})}(function(t){n.addListener(function(n){return e.zone.run(function(){return t(n)})})},function(t){n.removeListener(function(n){return e.zone.run(function(){return t(n)})})}).pipe(ho(this._destroySubject),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n=t[t.length-1];Object(w.a)(n)?t.pop():n=null;var i=t.length;return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length||2===t.length&&Object(w.a)(t[1])?Object(yt.a)(t[0]):Object(bo.a)(1)(O.apply(void 0,t))}(1!==i||n?i>0?Object(x.a)(t,n):k(n):E(t[0]),e)}}(n),Object(T.a)(function(t){return{matches:t.matches}})),mql:n};return this._queries.set(t,i),i},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(xo),Object(i.inject)(i.NgZone))},token:t,providedIn:"root"}),t}();function ko(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}var Eo={XSmall:"(max-width: 599px)",Small:"(min-width: 600px) and (max-width: 959px)",Medium:"(min-width: 960px) and (max-width: 1279px)",Large:"(min-width: 1280px) and (max-width: 1919px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599px) and (orientation: portrait), (max-width: 959px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};function Oo(t,e,n,i){return Object(yo.a)(n)&&(i=n,n=void 0),i?Oo(t,e,n).pipe(Object(T.a)(function(t){return Object(bt.a)(t)?i.apply(void 0,t):i(t)})):new C.a(function(i){!function t(e,n,i,r,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,i,o),a=function(){return s.removeEventListener(n,i,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,i),a=function(){return l.off(n,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,i),a=function(){return u.removeListener(n,i)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,h=e.length;c<h;c++)t(e[c],n,i,r,o)}r.add(a)}(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}Object;var To=n("p0ib"),Ao=new si(ri),Do=n("Ehmk"),Po=n("eihs"),Io=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new Ro(t,this.durationSelector))},t}(),Ro=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return D.b(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Object(Do.a)(this.durationSelector)(t);if(e===Po.a)this.destination.error(Po.a.e);else{var n=Object(_t.a)(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;
1n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,i){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(wt.a);function jo(t){return!Object(bt.a)(t)&&t-parseFloat(t)+1>=0}function Mo(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function Fo(t,e){return void 0===e&&(e=Ao),n=function(){return function(t,e,n){void 0===t&&(t=0);var i=-1;return jo(e)?i=Number(e)<1?1:Number(e):Object(w.a)(e)&&(n=e),Object(w.a)(n)||(n=Ao),new C.a(function(e){var r=jo(t)?t:+t-n.now();return n.schedule(Mo,r,{index:0,period:i,subscriber:e})})}(t,e)},function(t){return t.lift(new Io(n))};var n}var No=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new ni.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?C.a.create(function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(Fo(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):O()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(I(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Oo(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(i.NgZone),Object(i.inject)(Hr))},token:t,providedIn:"root"}),t}(),Bo=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return Object(To.a)(Oo(window,"resize"),Oo(window,"orientationchange"))}):O(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(Fo(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(Hr),Object(i.inject)(i.NgZone))},token:t,providedIn:"root"}),t}(),Vo=function(){},Lo=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),zo=function(){return function(t){var e=this;this.scrollStrategy=new Lo,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",t&&Object.keys(t).filter(function(e){return void 0!==t[e]}
1).forEach(function(n){return e[n]=t[n]})}}();function Ho(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function Wo(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var Uo=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vr(-this._previousScrollPosition.left),t.style.top=Vr(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,n=t.style.scrollBehavior||"",i=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=i}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Yo(){return Error("Scroll strategy has already been attached.")}var Xo=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run(function(){return r._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw Yo();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}();function qo(t,e){return e.some(function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right})}function Go(t,e){return e.some(function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right})}var Ko=function(){function t(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Yo();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;qo(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),Zo=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Lo},this.close=function(t){return new Xo(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new Uo(r._viewportRuler,r._document)},this.reposition=function(t){return new Ko(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=i}return t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(No),Object(i.inject)(Bo),Object(i.inject)(i.NgZone),Object(i.inject)(M.DOCUMENT))},token:t,providedIn:"root"}),t}(),Qo=function(){function t(t){var e=this;
1this._attachedOverlays=[],this._keydownListener=function(t){e._attachedOverlays.length&&e._attachedOverlays[e._attachedOverlays.length-1]._keydownEvents.next(t)},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(M.DOCUMENT))},token:t,providedIn:"root"}),t}(),Jo=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(M.DOCUMENT))},token:t,providedIn:"root"}),t}(),$o=function(){function t(t,e,n,i,r,o,a){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=o,this._document=a,this._backdropElement=null,this._backdropClick=new ni.a,this._attachments=new ni.a,this._detachments=new ni.a,this._key
1downEvents=new ni.a,i.scrollStrategy&&i.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(lo(1)).subscribe(function(){e.hasAttached()&&e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=Object(D.a)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(D.a)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=Vr(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=Vr(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=Vr(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=Vr(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=Vr(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=Vr(this._config.maxHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(e){return t._backdropClick.next(e)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),e.addEventListener("transitionend",n),e.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){return setTimeout(n,500)})}},t.prototype._toggleClasses=function(t,e,n){var i=t.classList;Br(e).forEach(function(t){n?i.add(t):i.remove(t)})},t}(),ta=function(){function t(t,e,n,i){var r=this;
1this._viewportRuler=e,this._document=n,this._platform=i,this._isInitialRender=!0,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new ni.a,this._resizeSubscription=ii.a.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this.positionChanges=C.a.create(function(t){var e=r._positionChanges.subscribe(t);return r._positionChangeSubscriptions++,function(){e.unsubscribe(),r._positionChangeSubscriptions--}}),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var t,e=this._originRect,n=this._overlayRect,i=this._viewportRect,r=[],o=0,a=this._preferredPositions;o<a.length;o++){var s=a[o],l=this._getOriginPoint(e,s),u=this._getOverlayPoint(l,n,s),c=this._getOverlayFit(u,n,i,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,l);this._canFitWithFlexibleDimensions(c,u,i)?r.push({position:s,origin:l,overlayRect:n,boundingBoxRect:this._calculateBoundingBoxRect(l,s)}):(!t||t.overlayFit.visibleArea<c.visibleArea)&&(t={overlayFit:c,overlayPoint:u,originPoint:l,position:s,overlayRect:n})}if(r.length){for(var h=null,d=-1,p=0,f=r;p<f.length;p++){var g=f[p],m=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);m>d&&(d=m,h=g)}return this._isPushed=!1,void this._applyPosition(h.position,h.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this.detach(),this._boundingBox=null,this._positionChanges.complete(),this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t instanceof i.ElementRef?t.nativeElement:t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,i){var r=t.x,o=t.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var l=0-o,u=o+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),h=this._subtractOverflows(e.height,l,u),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}}
1,t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}},t.prototype._pushOverlayOnScreen=function(t,e){var n=this._viewportRect,i=Math.max(t.x+e.width-n.right,0),r=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-t.y,0),a=Math.max(n.left-t.x,0);return{x:t.x+(e.width<=n.width?a||-i:n.left-t.x),y:t.y+(e.height<=n.height?o||-r:n.top-t.y)}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),this._lastPosition=t,this._positionChangeSubscriptions>0){var n=new function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}(t,this._getScrollVisibility());this._positionChanges.next(n)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var r=0;r<n.length;r++)n[r].style.transformOrigin=e+" "+i}},t.prototype._calculateBoundingBoxRect=function(t,e){var n,i,r,o,a,s,l=this._viewportRect,u=this._isRtl();if("top"===e.overlayY)i=t.y,n=l.bottom-t.y;else if("bottom"===e.overlayY)n=l.height-(r=l.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var c=Math.min(l.bottom-t.y,t.y-l.left),h=this._lastBoundingBoxSize.height;i=t.y-c,(n=2*c)>h&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.right-t.x+this._viewportMargin,o=t.x-l.left;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=l.right-t.x;else{c=Math.min(l.right-t.x,t.x-l.top);var d=this._lastBoundingBoxSize.width;a=t.x-c,(o=2*c)>d&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-d/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Vr(n.height),i.top=Vr(n.top),i.bottom=Vr(n.bottom),i.width=Vr(n.width),i.left=Vr(n.left),i.right=Vr(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Vr(r)),o&&(i.maxWidth=Vr(o))}this._lastBoundingBoxSize=n,ea(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){ea(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){ea(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};this._hasExactPosition()?(ea(n,this._getExactOverlayY(e,t)),ea(n,this._getExactOverlayX(e,t))):n.position="static";var i="",r=this._getOffset(e,"x"),o=this._getOffset(e,"y");r&&(i+="translateX("+r+"px) "),o&&(i+="translateY("+o+"px)"),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),ea(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e){var n={top:null,bottom:null},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect)),"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":n.top=Vr(i.y),n},t.prototype._getExactOverlayX=function(t,e){var n={left:null,right:null},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":n.left=Vr(i.x),n},t.prototype._getScrollVisibility=function(){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Go(t,n),isOriginOutsideView:qo(t,n),isOverlayClipped:Go(e,n),isOverlayOutsideView:qo(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(t,e){return t-Math.max(e,0)},t)},t.prototype._getNarrowedViewportRect=function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}},t.prototype._isRtl=function(){return"rtl"===this._overlayRef.getDirection()},t.prototype._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed},t.prototype._getOffset=function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY},t.prototype._validatePositions=function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(function(t){Wo("originX",t.originX),Ho("originY",t.originY),Wo("overlayX",t.overlayX),Ho("overlayY",t.overlayY)})},t}();function ea(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var na=function(){function t(t,e,n,i,r,o){this._preferredPositions=[],this._positionStrategy=new ta(n,i,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getDirection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._positionStrategy.positionChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)},t.prototype.dispose=function(){this._positionStrategy.dispose()},t.prototype.detach=function(){this._positionStrategy.detach()},t.prototype.apply=function(){this._positionStrategy.apply()},t.prototype.recalculateLastPosition=function(){this._positionStrategy.reapplyLastPosition()},t.prototype.withScrollableContainers=function(t){this._positionStrategy.withScrollableContainers(t)},t.prototype.withFallbackPosition=function(t,e,n,i){var r=new function(t,e,n,i){this.offsetX=n,this.offsetY=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.withDirection=function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this},t.prototype.withOffsetX=function(t){return this._positionStrategy.withDefaultOffsetX(t),this},t.prototype.withOffsetY=function(t){return this._positionStrategy.withDefaultOffsetY(t),this},t.prototype.withLockedPosition=function(t){return this._positionStrategy.withLockedPosition(t),this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.setOrigin=function(t){return this._positionStrategy.setOrigin(t),this},t}(),ia=function(){function t(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return t.prototype.attach=function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper")},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this},t.prototype.height=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();t.position=this._cssPosition,t.marginLeft="100%"===n.width?"0":this._leftOffset,t.marginTop="100%"===n.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,e.justifyContent="100%"===n.width?"flex-start":this._justifyContent,e.alignItems="100%"===n.height?"flex-start":this._alignItems}},t.prototype.dispose=function(){},t}
1(),ra=function(){function t(t,e,n){this._viewportRuler=t,this._document=e,this._platform=n}return t.prototype.global=function(){return new ia},t.prototype.connectedTo=function(t,e,n){return new na(e,n,t,this._viewportRuler,this._document)},t.prototype.flexibleConnectedTo=function(t){return new ta(t,this._viewportRuler,this._document,this._platform)},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(Bo),Object(i.inject)(M.DOCUMENT),Object(i.inject)(Hr,8))},token:t,providedIn:"root"}),t}(),oa=0,aa=function(){function t(t,e,n,i,r,o,a,s,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=o,this._ngZone=a,this._document=s,this._directionality=l}return t.prototype.create=function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new zo(t);return r.direction=r.direction||this._directionality.value,new $o(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+oa++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e},t.prototype._createHostElement=function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return this._appRef||(this._appRef=this._injector.get(i.ApplicationRef)),new ki(t,this._componentFactoryResolver,this._appRef,this._injector)},t}(),sa=new i.InjectionToken("cdk-connected-overlay-scroll-strategy");function la(t){return function(){return t.scrollStrategies.reposition()}}var ua=function(){},ca=function(){function t(t,e){var n=this;this._overlayRef=e,this._afterDismissed=new ni.a,this._afterOpened=new ni.a,this._onAction=new ni.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(function(){return n.dismiss()}),t._onExit.subscribe(function(){return n._finishDismiss()})}return t.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())},t.prototype.closeWithAction=function(){this.dismissWithAction()},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},t)},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1},t.prototype.afterDismissed=function(){return this._afterDismissed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),ha=new i.InjectionToken("MatSnackBarData"),da=function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},pa=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.dismissWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t}(),fa=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=i,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new ni.a,o._onEnter=new ni.a,o._animationState="void",o}return Object(D.b)(e,t),e.prototype.attachComponentPortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)},e.prototype.onAnimationEnd=function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||e.startsWith("hidden"))&&this._completeExit(),e.startsWith("visible")){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}},e.prototype.enter=function(){this._destroyed||(this._animationState="visible-"+this.snackBarConfig.verticalPosition,this._changeDetectorRef.detectChanges())},e.prototype.exit=function(){return this._animationState="hidden-"+this.snackBarConfig.verticalPosition,this._onExit},e.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},e.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(lo(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})},e.prototype._applySnackBarClasses=function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(function(e){return t.classList.add(e)}):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")},e.prototype._assertNotAttached=function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar c
1ontent after content is already attached")},e}(Si),ga=new i.InjectionToken("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new da}}),ma=function(){function t(t,e,n,i,r,o){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){return this._attach(t,e)},t.prototype.openFromTemplate=function(t,e){return this._attach(t,e)},t.prototype.open=function(t,e,n){void 0===e&&(e="");var i=Object(D.a)({},this._defaultConfig,n);return i.data={message:t,action:e},i.announcementMessage=t,this.openFromComponent(pa,i)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new Ti(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[da,e]])),i=new xi(fa,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance},t.prototype._attach=function(t,e){var n=Object(D.a)({},new da,this._defaultConfig,e),r=this._createOverlay(n),o=this._attachSnackBarContainer(r,n),a=new ca(o,r);if(t instanceof i.TemplateRef){var s=new Ci(t,null,{$implicit:n.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var l=this._createInjector(n,a),u=(s=new xi(t,void 0,l),o.attachComponentPortal(s));a.instance=u.instance}return this._breakpointObserver.observe(Eo.Handset).pipe(ho(r.detachments().pipe(lo(1)))).subscribe(function(t){t.matches?r.overlayElement.classList.add("mat-snack-bar-handset"):r.overlayElement.classList.remove("mat-snack-bar-handset")}),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef},t.prototype._animateSnackBar=function(t,e){var n=this;t.afterDismissed().subscribe(function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null)}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)}),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new zo;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new Ti(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[ca,e],[ha,t.data]]))},t}(),va=function(){},ya=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.inject)(M.DOCUMENT)}}),ba=function(){function t(t){this.value="ltr",this.change=new i.EventEmitter,t&&(this.value=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr")}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(ya,8))},token:t,providedIn:"root"}),t}(),_a=function(){};function wa(t,e){return void 0===e&&(e=Ao),function(n){return n.lift(new xa(t,e))}}var xa=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Ca(t,this.dueTime,this.scheduler))},t}(),Ca=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return D.b(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Sa,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(P.a);function Sa(t){t.debouncedNext()}n("+umK");var ka=new i.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Ea=function(){function t(t,e){this._document=e,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t,e){var n=this;return void 0===e&&(e="polite"),this._liveElement.textContent="",this._liveElement.setAttribute("aria-live",e),new Promise(function(e){setTimeout(function(){n._liveElement.textContent=t,e()},100)})},t.prototype.ngOnDestroy=function(){this._liveElement&&this._liveElement.parentNode&&this._liveElement.parentNode.removeChild(this._liveElement)},t.prototype._createLiveElement=function(){var t=this._document.createElement("div");return t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(ka,8),Object(i.inject)(M.DOCUMENT))},token:t,providedIn:"root"}),t}(),Oa=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return O(null);if(this._elementInfo.has(t)){var i=this._elementInfo.get(t);return i.checkChildren=e,i.subject.asObservable()}var r={unlisten:function(){}
1,checkChildren:e,subject:new ni.a};this._elementInfo.set(t,r),this._incrementMonitoredElementCount();var o=function(e){return n._onFocus(e,t)},a=function(e){return n._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",o,!0),t.addEventListener("blur",a,!0)}),r.unlisten=function(){t.removeEventListener("focus",o,!0),t.removeEventListener("blur",a,!0)},r.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e){this._setOriginForCurrentEventQueue(e),"function"==typeof t.focus&&t.focus()},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},i=function(e){null!=t._touchTimeoutId&&clearTimeout(t._touchTimeoutId),t._lastTouchTarget=e.target,t._touchTimeoutId=setTimeout(function(){return t._lastTouchTarget=null},650)},r=function(){t._windowFocused=!0,t._windowFocusTimeoutId=setTimeout(function(){return t._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",i,!Wr()||{passive:!0,capture:!0}),window.addEventListener("focus",r)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",i,!Wr()||{passive:!0,capture:!0}),window.removeEventListener("focus",r),clearTimeout(t._windowFocusTimeoutId),clearTimeout(t._touchTimeoutId),clearTimeout(t._originTimeoutId)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,e._originTimeoutId=setTimeout(function(){return e._origin=null})})},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run(function(){return t.next(e)})},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(i.NgZone),Object(i.inject)(Hr))},token:t,providedIn:"root"}),t}(),Ta="accent",Aa="primary",Da=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Pa=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;o._platform=n,o._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var a=0,s=Da;a<s.length;a++){var l=s[a];o._hasHostAttributes(l)&&e.nativeElement.classList.add(l)}return o._focusMonitor.monitor(o._elementRef.nativeElement,!0),o.isRoundButton?o.color=Ta:o._hasHostAttributes("mat-flat-button")&&(o.color=Aa),o}return Object(D.b)(e,t),e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)}
1,e.prototype.focus=function(){this._getHostElement().focus()},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._hasHostAttributes=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.some(function(e){return t._getHostElement().hasAttribute(e)})},e}(Gr(qr(Kr(function(t){this._elementRef=t})))),Ia=function(){};function Ra(t){switch(t.length){case 0:return new Rr;case 1:return t[0];default:return new jr(t)}}function ja(t,e,n,i,r,o){void 0===r&&(r={}),void 0===o&&(o={});var a=[],s=[],l=-1,u=null;if(i.forEach(function(t){var n=t.offset,i=n==l,c=i&&u||{};Object.keys(t).forEach(function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),s){case Mr:s=r[n];break;case Ar:s=o[n];break;default:s=e.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function Ma(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&Fa(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&Fa(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&Fa(n,"destroy",t))})}}function Fa(t,e,n){var i=n.totalTime,r=Na(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function Na(t,e,n,i,r,o,a){return void 0===r&&(r=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Ba(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Va(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var La=function(t,e){return!1},za=function(t,e){return!1},Ha=function(t,e,n){return[]};if("undefined"!=typeof Element){if(La=function(t,e){return t.contains(e)},Element.prototype.matches)za=function(t,e){return t.matches(e)};else{var Wa=Element.prototype,Ua=Wa.matchesSelector||Wa.mozMatchesSelector||Wa.msMatchesSelector||Wa.oMatchesSelector||Wa.webkitMatchesSelector;Ua&&(za=function(t,e){return Ua.apply(t,[e])})}Ha=function(t,e,n){var i=[];if(n)i.push.apply(i,Object(D.d)(t.querySelectorAll(e)));else{var r=t.querySelector(e);r&&i.push(r)}return i}}var Ya=null,Xa=!1;function qa(t){Ya||(Ya=Ga()||{},Xa=!!Ya.style&&"WebkitAppearance"in Ya.style);var e=!0;return Ya.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in Ya.style)&&Xa&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Ya.style),e}function Ga(){return"undefined"!=typeof document?document.body:null}var Ka=za,Za=La,Qa=Ha,Ja=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return qa(t)},t.prototype.matchesElement=function(t,e){return Ka(t,e)},t.prototype.containsElement=function(t,e){return Za(t,e)},t.prototype.query=function(t,e,n){return Qa(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,i,r,o,a){return void 0===o&&(o=[]),new Rr(n,i)},t}(),$a=function(){function t(){}return t.NOOP=new Ja,t}(),ts=1e3;function es(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ns(parseFloat(e[1]),e[2])}function ns(t,e){switch(e){case"s":return t*ts;default:return t}}function is(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var i,r=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};i=ns(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(r=ns(Math.floor(parseFloat(s)),a[4]));var l=a[5];l&&(o=l)}else i=t;if(!n){var u=!1,c=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:i,delay:r,easing:o}}(t,e,n)}function rs(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function os(t,e,n){if(void 0===n&&(n={}),e)for(var i in t)n[i]=t[i];else rs(t,n);return n}function as(t,e){t.style&&Object.keys(e).forEach(function(n){var i=fs(n);t.style[i]=e[n]})}function ss(t,e){t.style&&Object.keys(e).forEach(function(e){var n=fs(e);t.style[n]=""})}function ls(t){return Array.isArray(t)?1==t.length?t[0]:Dr(t):t}var us=new RegExp("{{\\s*(.+?)\\s*}}","g");function cs(t){var e=[];
1if("string"==typeof t){for(var n=t.toString(),i=void 0;i=us.exec(n);)e.push(i[1]);us.lastIndex=0}return e}function hs(t,e,n){var i=t.toString(),r=i.replace(us,function(t,i){var r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?t:r}function ds(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var ps=/-+([a-z0-9])/g;function fs(t){return t.replace(ps,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function gs(t,e){return 0===t||0===e}function ms(t,e,n){var i=Object.keys(n);if(i.length&&e.length){var r=e[0],o=[];if(i.forEach(function(t){r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var a=function(){var n=e[s];o.forEach(function(e){n[e]=ys(t,e)})},s=1;s<e.length;s++)a()}return e}function vs(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function ys(t,e){return window.getComputedStyle(t)[e]}var bs="*",_s=new Set(["true","1"]),ws=new Set(["false","0"]);function xs(t,e){var n=_s.has(t)||ws.has(t),i=_s.has(e)||ws.has(e);return function(r,o){var a=t==bs||t==r,s=e==bs||e==o;return!a&&n&&"boolean"==typeof r&&(a=r?_s.has(t):ws.has(t)),!s&&i&&"boolean"==typeof o&&(s=o?_s.has(e):ws.has(e)),a&&s}}var Cs=new RegExp("s*:selfs*,?","g");function Ss(t,e,n){return new ks(t).build(e,n)}var ks=function(){function t(t){this._driver=t}return t.prototype.build=function(t,e){var n=new Es(e);return this._resetContextStyleTimingState(n),vs(this,ls(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,i=e.queryCount=0,r=e.depCount=0,o=[],a=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(t){s.name=t,o.push(n.visitState(s,e))}),s.name=l}else if(1==t.type){var u=n.visitTransition(t,e);i+=u.queryCount,r+=u.depCount,a.push(u)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){var r=new Set,o=i||{};if(n.styles.forEach(function(t){if(Os(t)){var e=t;Object.keys(e).forEach(function(t){cs(e[t]).forEach(function(t){o.hasOwnProperty(t)||r.add(t)})})}}),r.size){var a=ds(r.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n,i,r,o=vs(this,ls(t.animation),e);return{type:1,matchers:(n=t.expr,i=e.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(t){return function(t,e,n){if(":"==t[0]){var i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],a=r[2],s=r[3];e.push(xs(o,s)),"<"!=a[0]||o==bs&&s==bs||e.push(xs(s,o))}(t,r,i)}):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Ts(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return vs(n,t,e)}),options:Ts(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=i;var o=vs(n,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:Ts(t.options)}},t.prototype.visitAnimate=function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return As(is(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=As(0,0,"");return r.dynamic=!0,r.strValue=i,r}return As((n=n||is(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Pr({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Pr(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);
1return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Ar?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(Os(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a,s,l,u=e.collectedStyles[e.currentQuerySelector],c=u[i],h=!0;c&&(o!=r&&o>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'+i+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),h=!1),o=c.startTime),h&&(u[i]={startTime:o,endTime:r}),e.options&&(a=e.errors,s=e.options.params||{},(l=cs(t[i])).length&&l.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Os(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Os(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c<l,l=c,o.push(c),i});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&e.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,h=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(h=1/(c-1));var d=c-1,p=e.currentTime,f=e.currentAnimateTimings,g=f.duration;return u.forEach(function(t,r){var a=h>0?r==d?1:h*r:o[r],s=a*g;e.currentTime=p+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i},t.prototype.visitReference=function(t,e){return{type:8,animation:vs(this,ls(t.animation),e),options:Ts(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Ts(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ts(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=Object(D.c)(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Cs,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,Ba(e.collectedStyles,e.currentQuerySelector,{});var s=vs(this,ls(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Ts(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:is(t.timings,e.errors,!0);return{type:12,animation:vs(this,ls(t.animation),e),timings:n,options:null}},t}(),Es=function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Os(t){return!Array.isArray(t)&&"object"==typeof t}function Ts(t){var e;return t?(t=rs(t)).params&&(t.params=(e=t.params)?rs(e):null):t={},t}function As(t,e,n){return{duration:t,delay:e,easing:n}}function Ds(t,e,n,i,r,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Ps=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,Object(D.d)(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Is=new RegExp(":enter","g"),Rs=new RegExp(":leave","g");function js(t,e,n,i,r,o,a,s,l,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new Ms).buildKeyframes(t,e,n,i,r,o,a,s,l,u)}var Ms=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,i,r,o,a,s,l,u){void 0===u&&(u=[]),l=l||new Ps;var c=new Ns(t,e,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),vs(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Ds(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){}
1,t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?es(n.duration):null,o=null!=n.delay?es(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),vs(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Fs);var a=es(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return vs(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?es(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),vs(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return is(e.params?hs(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?es(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Fs);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var l=null;
1s.forEach(function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(l=s.currentTimeline),vs(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;vs(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)},t}(),Fs={},Ns=function(){function t(t,e,n,i,r,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Fs,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new Bs(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=es(i.duration)),null!=i.delay&&(r.delay=es(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=hs(o[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,i){void 0===e&&(e=null);var r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Fs,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Vs(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(Is,"."+this._enterClassName)).replace(Rs,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,Object(D.d)(s))}return r||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),Bs=function(){function t(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pe
1ndingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Ar,e._currentKeyframe[t]=Ar}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=Ar}):os(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=hs(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:Ar),r._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=os(o,!0);Object.keys(s).forEach(function(t){var i=s[t];i==Mr?e.add(t):i==Ar&&n.add(t)}),i||(s.offset=a/t.duration),r.push(s)});var o=e.size?ds(e.values()):[],a=n.size?ds(n.values()):[];if(i){var s=r[0],l=rs(s);s.offset=0,l.offset=1,r=[s,l]}return Ds(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)},t}(),Vs=function(t){function e(e,n,i,r,o,a,s){void 0===s&&(s=!1);var l=t.call(this,e,n,a.delay)||this;return l.element=n,l.keyframes=i,l.preStyleProps=r,l.postStyleProps=o,l._stretchStartingKeyframe=s,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return Object(D.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=os(t[0],!1);l.offset=0,o.push(l);var u=os(t[0],!1);u.offset=Ls(s),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=os(t[h],!1);d.offset=Ls((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",t=o}return Ds(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)},e}(Bs);function Ls(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var zs=function(){},Hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(D.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return fs(t)},e.prototype.normalizeStyleValue=function(t,e,n,i){var r="",o=n.toString().trim();if(Ws[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for "+t+":"+n)}return o+r},e}(zs),Ws=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function Us(t,e,n,i,r,o,a,s,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var Ys={},Xs=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,i){return function(t,e,n,i,r){return t.some(function(t){return t(e,n,i,r)})}(this.ast.matchers,t,e,n,i)},t.prototype.buildStyles=function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o},t.prototype.build=function(t,e,n,i,r,o,a,s,l){var u=[],c=this.ast.options&&this.ast.options.params||Ys,h=this.buildStyles(n,a&&a.params||Ys,u),d=s&&s.params||Ys,p=this.buildStyles(i,d,u),f=new Set,g=new Map,m=new Map,v="void"===i,y={params:Object(D.a)({},c,d)},b=js(t,e,this.ast.animation,r,o,h,p,y,l,u),_=0;if(b.forEach(function(t){_=Math.max(t.duration+t.delay,_)}),u.length)return Us(e,this._triggerName,n,i,v,h,p,[],[],g,m,_,u);b.forEach(function(t){var n=t.element,i=Ba(g,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=Ba(m,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&f.add(n)});var w=ds(f.values());return Us(e,this._triggerName,n,i,v,h,p,b,w,g,m,_)},t}(),qs=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},i=rs(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(i[e]=n)}
1),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=hs(o,i,e)),n[t]=o})}}),n},t}(),Gs=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new qs(t.style,t.options&&t.options.params||{})}),Ks(this.states,"true","1"),Ks(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Xs(t,e,n.states))}),this.fallbackTransition=new Xs(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Ks(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Zs=new Ps,Qs=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],i=Ss(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i},t.prototype._buildPlayer=function(t,e,n){var i=t.element,r=ja(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var r,o=[],a=this._animations[t],s=new Map;if(a?(r=js(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Zs,o)).forEach(function(t){var e=Ba(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),r=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,Ar)})});var l=Ra(r.map(function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return i.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,i){var r=Na(e,"","","");return Ma(this._getPlayer(t),n,r,i),function(){}},t.prototype.command=function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])},t}(),Js=[],$s={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},tl={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},el="__ng_removed",nl=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var i=rs(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}
1(),il=new nl("void"),rl=new nl("DELETED"),ol=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,pl(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=Ba(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var l=Ba(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(pl(t,"ng-trigger"),pl(t,"ng-trigger-"+e),l[e]=il),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,i){var r=this;void 0===i&&(i=!0);var o=this._getTrigger(e),a=new sl(this.id,e,t),s=this._engine.statesByElement.get(t);s||(pl(t,"ng-trigger"),pl(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new nl(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[e]=u,l){if(l===rl)return a}else l=il;if("void"===u.value||l.value!==u.value){var c=Ba(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(l.value,u.value,t,u.params),d=!1;if(!h){if(!i)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:u,player:a,isFallbackTransition:d}),d||(pl(t,"ng-animate-queued"),a.onStart(function(){fl(t,"ng-animate-queued")})),a.onDone(function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(l.params,u.params)){var p=[],f=o.matchStyles(l.value,l.params,p),g=o.matchStyles(u.value,u.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush(function(){ss(t,f),as(t,g)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,i){e._elementListeners.set(i,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,e,n){var i=this;void 0===n&&(n=!1),this._engine.driver.query(t,".ng-trigger",!0).forEac
1h(function(t){if(!t[el]){var n=i._engine.fetchNamespacesByElement(t);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):i.clearElementCache(t)}})},t.prototype.triggerLeaveAnimation=function(t,e,n,i){var r=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach(function(e){if(r._triggers[e]){var n=r.trigger(t,e,"void",i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Ra(a).onDone(function(){return r._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var e=this,n=this._elementListeners.get(t);if(n){var i=new Set;n.forEach(function(n){var r=n.name;if(!i.has(r)){i.add(r);var o=e._triggers[r].fallbackTransition,a=e._engine.statesByElement.get(t)[r]||il,s=new nl("void"),l=new sl(e.id,r,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:r,transition:o,fromState:a,toState:s,player:l,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e,!0),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else for(var a=t;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}this.prepareLeaveAnimationListeners(t),r?i.markElementAsRemoved(this.id,t,!1,e):(i.afterFlush(function(){return n.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}},t.prototype.insertNode=function(t,e){pl(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==i.triggerName){var n=Na(o,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Ma(i.player,e.phase,n,e.callback)}}),r.markedForDestroy?e._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e},t}(),al=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new ol(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var o=n[i[r]].namespaceId;if(o){var a=this._fetchNamespace(o);a&&e.add(a)}}return e},t.prototype.trigger=function(t,e,n,i){return!!ll(e)&&(this._fetchNamespace(t).trigger(e,n,i),!0)}
1,t.prototype.insertNode=function(t,e,n,i){if(ll(e)){var r=e[el];if(r&&r.setForRemoval&&(r.setForRemoval=!1),t){var o=this._fetchNamespace(t);o&&o.insertNode(e,n)}i&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),pl(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),fl(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(ll(e)){var i=t?this._fetchNamespace(t):null;i?i.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,i){this.collectedLeaveElements.push(e),e[el]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,i,r){return ll(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}},t.prototype._buildInstruction=function(t,e,n,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var n=this.statesByElement.get(t);n&&Object.keys(n).forEach(function(t){return n[t]=rl})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return Ra(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[el];if(n&&n.setForRemoval){if(t[el]=$s,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)pl(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(i=0;i<r.length;i++)r[i]()}}else for(i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var o=this._whenQuietFns;this._whenQuietFns=[],n.length?Ra(n).onDone(function(){o.forEach(function(t){return t()})}):o.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,i=new Ps,r=[],o=new Map,a=[],s=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(t){c.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),i=0;i<e.length;i++)c.add(e[i])});var h=Ga(),d=Array.from(this.statesByElement.keys()),p=hl(d,this.collectedEnterElements),f=new Map,g=0;p.forEach(function(t,e){var n="ng-enter"+g++;f.set(e,n),t.forEach(function(t){return pl(t,n)})});for(var m=[],v=new Set,y=new Set,b=0;b<this.collectedLeaveElements.length;b++)(N=(F=this.collectedLeaveElements[b])[el])&&N.setForRemoval&&(m.pu
1sh(F),v.add(F),N.hasAnimation?this.driver.query(F,".ng-star-inserted",!0).forEach(function(t){return v.add(t)}):y.add(F));var _=new Map,w=hl(d,Array.from(v));w.forEach(function(t,e){var n="ng-leave"+g++;_.set(e,n),t.forEach(function(t){return pl(t,n)})}),t.push(function(){p.forEach(function(t,e){var n=f.get(e);t.forEach(function(t){return fl(t,n)})}),w.forEach(function(t,e){var n=_.get(e);t.forEach(function(t){return fl(t,n)})}),m.forEach(function(t){n.processLeaveNode(t)})});for(var x=[],C=[],S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player;x.push(e);var o=t.element;if(h&&n.driver.containsElement(h,o)){var c=_.get(o),d=f.get(o),p=n._buildInstruction(t,i,d,c);if(p.errors&&p.errors.length)C.push(p);else{if(t.isFallbackTransition)return e.onStart(function(){return ss(o,p.fromStyles)}),e.onDestroy(function(){return as(o,p.toStyles)}),void r.push(e);p.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(o,p.timelines),a.push({instruction:p,player:e,element:o}),p.queriedElements.forEach(function(t){return Ba(s,t,[]).push(e)}),p.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),p.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=u.get(e);i||u.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}}else e.destroy()});if(C.length){var k=[];C.forEach(function(t){k.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return k.push("- "+t+"\n")})}),x.forEach(function(t){return t.destroy()}),this.reportError(k)}var E=new Map,O=new Map;a.forEach(function(t){var e=t.element;i.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),r.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Ba(E,e,[]).push(t),t.destroy()})});var T=m.filter(function(t){return ml(t,l,u)}),A=new Map;cl(A,this.driver,y,u,Ar).forEach(function(t){ml(t,l,u)&&T.push(t)});var P=new Map;p.forEach(function(t,e){cl(P,n.driver,new Set(t),l,Mr)}),T.forEach(function(t){var e=A.get(t),n=P.get(t);A.set(t,Object(D.a)({},e,n))});var I=[],R=[],j={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(i.has(e)){if(c.has(e))return a.onDestroy(function(){return as(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=j;if(O.size>1){for(var u=e,h=[];u=u.parentNode;){var d=O.get(u);if(d){l=d;break}h.push(u)}h.forEach(function(t){return O.set(t,l)})}var p=n._buildAnimation(a.namespaceId,s,E,o,P,A);if(a.setRealPlayer(p),l===j)I.push(a);else{var f=n.playersByElement.get(l);f&&f.length&&(a.parentPlayer=Ra(f)),r.push(a)}}else ss(e,s.fromStyles),a.onDestroy(function(){return as(e,s.toStyles)}),R.push(a),c.has(e)&&r.push(a)}),R.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=Ra(e);t.setRealPlayer(n)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var M=0;M<m.length;M++){var F,N=(F=m[M])[el];if(fl(F,"ng-leave"),!N||!N.hasAnimation){var B=[];if(s.size){var V=s.get(F);V&&V.length&&B.push.apply(B,Object(D.d)(V));for(var L=this.driver.query(F,".ng-animating",!0),z=0;z<L.length;z++){var H=s.get(L[z]);H&&H.length&&B.push.apply(B,Object(D.d)(H))}}var W=B.filter(function(t){return!t.destroyed});W.length?gl(this,F,W):this.processLeaveNode(F)}}return m.length=0,I.forEach(function(t){n.players.push(t),t.onDone(function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)}),t.play()}),I},t.prototype.elementContainsData=function(t,e){var n=!1,i=e[el];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,i,r){var o=[];if(e){var a=this.playersByQueriedElement.get(t);a&&(o=a)}else{var s=this.playersByElement.get(t);if(s){var l=!r||"void"==r;
1s.forEach(function(t){t.queued||(l||t.triggerName==i)&&o.push(t)})}}return(n||i)&&(o=o.filter(function(t){return!(n&&n!=t.namespaceId||i&&i!=t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){var i,r,o=e.element,a=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,l=function(t){var i=t.element,r=i!==o,l=Ba(n,i,[]);u._getPreviousPlayers(i,r,a,s,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})},u=this;try{for(var c=Object(D.e)(e.timelines),h=c.next();!h.done;h=c.next())l(h.value)}catch(t){i={error:t}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}ss(o,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,i,r,o){var a=this,s=e.triggerName,l=e.element,u=[],c=new Set,h=new Set,d=e.timelines.map(function(e){var d=e.element;c.add(d);var p=d[el];if(p&&p.removedBeforeQueried)return new Rr(e.duration,e.delay);var f,g,m=d!==l,v=(f=(n.get(d)||Js).map(function(t){return t.getRealPlayer()}),g=[],function t(e,n){for(var i=0;i<e.length;i++){var r=e[i];r instanceof jr?t(r.players,n):n.push(r)}}(f,g),g).filter(function(t){return!!t.element&&t.element===d}),y=r.get(d),b=o.get(d),_=ja(0,a._normalizer,0,e.keyframes,y,b),w=a._buildPlayer(e,_,v);if(e.subTimeline&&i&&h.add(d),m){var x=new sl(t,s,d);x.setRealPlayer(w),u.push(x)}return w});u.forEach(function(t){Ba(a.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,e,n){var i;if(t instanceof Map){if(i=t.get(e)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&t.delete(e)}}else(i=t[e])&&(i.length&&(r=i.indexOf(n),i.splice(r,1)),0==i.length&&delete t[e]);return i}(a.playersByQueriedElement,t.element,t)})}),c.forEach(function(t){return pl(t,"ng-animating")});var p=Ra(d);return p.onDestroy(function(){c.forEach(function(t){return fl(t,"ng-animating")}),as(l,e.toStyles)}),h.forEach(function(t){Ba(i,t,[]).push(p)}),p},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Rr(t.duration,t.delay)},t}(),sl=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Rr,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEac
1h(function(n){e._queuedCallbacks[n].forEach(function(e){return Ma(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){Ba(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function ll(t){return t&&1===t.nodeType}function ul(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function cl(t,e,n,i,r){var o=[];n.forEach(function(t){return o.push(ul(t))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i[el]=tl,a.push(i))}),t.set(i,o)});var s=0;return n.forEach(function(t){return ul(t,o[s++])}),a}function hl(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=r.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:i.has(a)?1:t(a),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var dl="$$classes";function pl(t,e){if(t.classList)t.classList.add(e);else{var n=t[dl];n||(n=t[dl]={}),n[e]=!0}}function fl(t,e){if(t.classList)t.classList.remove(e);else{var n=t[dl];n&&delete n[e]}}function gl(t,e,n){Ra(n).onDone(function(){return t.processLeaveNode(e)})}function ml(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach(function(t){return r.add(t)}):e.set(t,i),n.delete(t),!0}var vl=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new al(t,e),this._timelineEngine=new Qs(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,i,r){var o=t+"-"+i,a=this._triggerCache[o];if(!a){var s=[],l=Ss(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new Gs(t,e)}(i,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,i){if("@"==n.charAt(0)){var r=Object(D.c)(Va(n),2);this._timelineEngine.command(r[0],e,r[1],i)}else this._transitionEngine.trigger(t,e,n,i)},t.prototype.listen=function(t,e,n,i,r){if("@"==n.charAt(0)){var o=Object(D.c)(Va(n),2);return this._timelineEngine.listen(o[0],e,o[1],r)}return this._transitionEngine.listen(t,e,n,i,r)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),yl="animation",bl="animationend",_l=function(){function t(t,e,n,i,r,o,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=El(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)","===t.charAt(n)&&0}(n),e=n+", "+e),kl(t,"",e),Sl(this._element,this._eventFn,!1),this._startTime=Date.now()},t.prototype.pause=function(){wl(this._element,this._name,"paused")},t.prototype.resume=function(){wl(this._element,this._name,"running")},t.prototype.setPosition=function(t){var e=xl(this._element,this._name);this._position=t*this._duration,kl(this._element,"Delay","-"+this._position+"ms",e)},t.prototype.getPosition=function(){return this._position},t.prototype._handleCallback=function(t){var e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Sl(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Cl(n=El(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),kl(t,"",n.join(","))))},t}();function wl(t,e,n){kl(t,"PlayState",n,xl(t,e))}function xl(t,e){var n=El(t,"");return n.indexOf(",")>0?Cl(n.split(","),e):Cl([n],e)}function Cl(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Sl(t,e,n){n?t.removeEventListener(bl,e):t.addEventListener(bl,e)}function kl(t,e,n,i){var r=yl+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function El(t,e){return t.style[yl+e]}var Ol="linear",Tl=function(t){return t[t.INITIALIZED=1]="INITIALIZED",t[t.STARTED=2]="STARTED",t[t.FINISHED=3]="FINISHED",t[t.DESTROYED=4]="DESTROYED",t}({}),Al=function(){function t(t,e,n,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this.state=0,this.easing=o||Ol,this.totalTime=i+r,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this.state>=Tl.DESTROYED||(this.state=Tl.DESTROYED,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this.state>
1=Tl.FINISHED||(this.state=Tl.FINISHED,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this.state>=Tl.STARTED},t.prototype.init=function(){this.state>=Tl.INITIALIZED||(this.state=Tl.INITIALIZED,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this.state=Tl.STARTED),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new _l(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this.state>=Tl.FINISHED;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:ys(t.element,i))})}this.currentSnapshot=e},t}(),Dl=function(t){function e(e,n){var i=t.call(this)||this;return i.element=e,i._styles=n,i._startingStyles={},i.__initialized=!1,i}return Object(D.b)(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){e.element.style[t]=e._styles[t]}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style[t]=n:e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(Rr),Pl=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return qa(t)},t.prototype.matchesElement=function(t,e){return Ka(t,e)},t.prototype.containsElement=function(t,e){return Za(t,e)},t.prototype.query=function(t,e,n){return Qa(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){var i="@keyframes "+e+" {\n",r="";(n=n.map(function(t){return e=t,n={},Object.keys(e).forEach(function(t){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2");n[i]=e[t]}),n;var e,n})).forEach(function(t){r=" ";var e=parseFloat(t.offset);i+=""+r+100*e+"% {\n",r+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+e+": "+n+";\n")}}),i+=r+"}\n"}),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o},t.prototype.animate=function(t,e,n,i,r,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter(function(t){return t instanceof Al}),l={};gs(n,i)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=ms(t,e,l));if(0==n)return new Dl(t,u);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var d=new Al(t,e,c,n,i,r,u);return d.onDestroy(function(){var t;(t=h).parentNode.removeChild(t)}),d},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Il=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:ys(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),Rl=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(jl().toString()),this._cssKeyframesDriver=new Pl}return t.prototype.validateStyleProperty=function(t){return qa(t)},t.prototype.matchesElement=function(t,e){return Ka(t,e)},t.prototype.containsElement=function(t,e){return Za(t,e)},t.prototype.query=function(t,e,n){return Qa(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,i,r,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},u=o.filter(function(t){return t instanceof Il});return gs(n,i)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})}),e=ms(t,e=e.map(function(t){return os(t,!1)}),l),new Il(t,e,s)},t}();function jl(){return"undefined"!=typeof Element&&Element.prototype.animate||{}}var Ml=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}}),r}return Object(D.b)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Dr(t):t;return Bl(this._renderer,null,e,"register",[n]),new Fl(e,this._renderer)},e}(Tr),Fl=function(t){function e(e,n){var i=t.call(this)||this;return i._id=e,i._renderer=n,i}return Object(D.b)(e,t),e.prototype.create=function(t,e){return new Nl(this._id,t,e||{},this._renderer)},e}(function(){}),Nl=function(){function t(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Bl(this._renderer,this.element,this.id,t,e)}
1,t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function Bl(t,e,n,i,r){return t.setProperty(e,"@@"+n+":"+i,r)}var Vl=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Ll("",i,this.engine),this._rendererCache.set(i,r)),r}var o=e.id,a=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(a,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,a,t,e.name,e)}),new zl(this,a,i,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;this.promise.then(function(){t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var i=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(t){var e=Object(D.c)(t,2);(0,e[0])(e[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}(),Ll=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,i){this.delegate.setStyle(t,e,n,i)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),zl=function(t){function e(e,n,i,r){var o=t.call(this,n,i,r)||this;return o.factory=e,o.namespaceId=n,o}return Object(D.b)(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var i,r,o,a=this;if("@"==e.charAt(0)){var s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),l=e.substr(1),u="";return"@"!=l.charAt(0)&&(l=(i=Object(D.c)((r=l,o=r.indexOf("."),[r.substring(0,o),r.substr(o+1)]),2))[0],u=i[1]),this.engine.listen(this.namespaceId,s,l,u,function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)},e}(Ll),Hl=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(D.b)(e,t),e}(vl);function Wl(){return"function"==typeof jl()?new Rl:new Pl}function Ul(){return new Hs}function Yl(t,e,n){return new Vl(t,e,n)}var Xl=new i.InjectionToken("AnimationModuleType"),ql=function(){},Gl=i["\u0275crt"]({encapsulation:2,styles:[".mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}
1.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:1}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button[disabled]{box-shadow:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-flat-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-fab::-moz-focus-inner{border:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-fab[disabled]{box-shadow:none}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-mini-fab[disabled]{box-shadow:none}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function Kl(t){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{ripple:0}),(t()(),i["\u0275eld"](1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),i["\u0275ncd"](null,0),(t()(),i["\u0275eld"](3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),i["\u0275did"](4,212992,[[1,4]],0,oo,[i.ElementRef,i.NgZone,Hr,[2,ro],[2,Xl]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),i["\u0275eld"](5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,i["\u0275nov"](e,4).unbounded)})}var Zl=i["\u0275crt"]({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:2px;box-sizing:border-box;display:block;margin:24px;max-width:568px;min-width:288px;padding:14px 24px;transform:translateY(100%) translateY(24px)}.mat-snack-bar-container.mat-snack-bar-center{margin:0;transform:translateY(100%)}.mat-snack-bar-container.mat-snack-bar-top{transform:translateY(-100%) translateY(-24px)}.mat-snack-bar-container.mat-snack-bar-top.mat-snack-bar-center{transform:translateY(-100%)}@media screen and (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:0;max-width:inherit;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"visible-top, visible-bottom",styles:{type:6,styles:{transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"visible-top => hidden-top, visible-bottom => hidden-bottom",animation:{type:4,styles:null,timings:"195ms cubic-bezier(0.4,0.0,1,1)"},options:null},{type:1,expr:"void => visible-top, void => visible-bottom",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.0,0.0,0.2,1)"},options:null}],options:{}}]}});function Ql(t){return i["\u0275vid"](0,[(t()(),i["\u0275and"](0,null,
1null,0))],null,null)}function Jl(t){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{_portalOutlet:0}),(t()(),i["\u0275and"](16777216,null,null,1,null,Ql)),i["\u0275did"](2,212992,[[1,4]],0,Ei,[i.ComponentFactoryResolver,i.ViewContainerRef],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}var $l=i["\u0275ccf"]("snack-bar-container",fa,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"],["role","alert"]],[[40,"@state",0]],[["component","@state.done"]],function(t,e,n){var r=!0;return"component:@state.done"===e&&(r=!1!==i["\u0275nov"](t,1).onAnimationEnd(n)&&r),r},Jl,Zl)),i["\u0275did"](1,180224,null,0,fa,[i.NgZone,i.ElementRef,i.ChangeDetectorRef,da],null,null)],null,function(t,e){t(e,0,0,i["\u0275nov"](e,1)._animationState)})},{},{},[]),tu=i["\u0275crt"]({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;line-height:20px;opacity:1}.mat-simple-snackbar-action{display:flex;flex-direction:column;flex-shrink:0;justify-content:space-around;margin:-8px 0 -8px 8px}.mat-simple-snackbar-action button{flex:1;max-height:36px}[dir=rtl] .mat-simple-snackbar-action{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"contentFade",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{opacity:"0"},offset:null},{type:4,styles:null,timings:"375ms cubic-bezier(0.4,0.0,0.2,1)"}],options:null}],options:{}}]}});function eu(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,2,"button",[["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.action()&&i),i},Kl,Gl)),i["\u0275did"](2,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275ted"](3,0,["",""]))],null,function(t,e){var n=e.component;t(e,1,0,i["\u0275nov"](e,2).disabled||null,"NoopAnimations"===i["\u0275nov"](e,2)._animationMode),t(e,3,0,n.data.action)})}function nu(t){return i["\u0275vid"](2,[(t()(),i["\u0275ted"](0,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,eu)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.hasAction)},function(t,e){t(e,0,0,e.component.data.message)})}var iu=i["\u0275ccf"]("simple-snack-bar",pa,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],[[40,"@contentFade",0]],null,null,nu,tu)),i["\u0275did"](1,49152,null,0,pa,[ca,ha],null,null)],null,function(t,e){t(e,0,0,void 0)})},{},{},[]),ru=function(){function t(t,e,n){this.el=t,this.i18n=e,this.settings=n,this.subscriptions=[]}return t.prototype.ngAfterViewInit=function(){var t=this;if(this.settings.get("i18n.enable")){var e=this.i18n.localizationChange.subscribe(function(){return t.translate()});this.translate(),this.subscriptions.push(e)}},t.prototype.translate=function(){var t=this.el.nativeElement;if(t.getAttribute("placeholder")){var e=t.getAttribute("placeholder");t.setAttribute("placeholder",this.i18n.t(e))}else t.getAttribute("title")?(e=t.getAttribute("title"),t.setAttribute("title",this.i18n.t(e))):this.translateTextContent(t)},t.prototype.translateTextContent=function(t){var e=Array.from(t.childNodes);e.sort(function(t,e){return t.nodeType===Node.TEXT_NODE?-1:1});for(var n=0;n<e.length;n++){var i=e[n];if(i.nodeType===Node.TEXT_NODE)return i.nodeValue=this.i18n.t(i.textContent);if(this.translateTextContent(i))return}},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(t){t&&t.unsubscribe()}),this.subscriptions=[]},t}(),ou=function(){function t(t){this.settings=t,this.localizationChange=new i.EventEmitter,this.localization={model:new ft,lines:{}}}return t.prototype.t=function(t,e){if(void 0===e&&(e={}),!this.translationsEnabled())return t;var n=this.localization.lines[t.toLowerCase().trim()]||t;for(var i in e)n=n.replace(":"+i,e[i]);return n},t.prototype.getActive=function(){return this.localization},t.prototype.setLocalization=function(t){t&&t.lines&&this.localization.model.name!==t.model.name&&(t.lines=this.objectKeysToLowerCase(t.lines),this.localization=t,this.localizationChange.emit())},t.prototype.objectKeysToLowerCase=function(t){var e={};return Object.keys(t).forEach(function(n){e[n.toLowerCase()]=t[n]}),e},t.prototype.translationsEnabled=function(){return this.settings.get("i18n.enable")},t}
1(),au=i["\u0275crt"]({encapsulation:2,styles:[["open-sample-image-panel{display:block;padding:15px;border-radius:3px;overflow:hidden;max-width:318px;margin:0 auto}open-sample-image-panel h2{font-size:1.6rem;font-weight:400;margin:10px 0;text-align:center}open-sample-image-panel .separator{position:relative;text-align:center;height:30px;display:flex;justify-content:center;align-items:center;margin-bottom:8px}open-sample-image-panel .separator>hr{position:absolute;left:0;top:13px;width:100%;height:2px;background-color:rgba(0,0,0,.07);margin:0;border:none}open-sample-image-panel .separator>.text{display:block;background-color:#fff;position:relative;z-index:1;padding:0 10px}open-sample-image-panel .buttons{display:flex;justify-content:center;margin:20px 0;text-align:center}open-sample-image-panel .buttons>button{display:block;margin:0 10px}open-sample-image-panel .samples{display:flex;justify-content:center}open-sample-image-panel .samples>img{cursor:pointer;width:80px;height:80px;-o-object-fit:cover;object-fit:cover;transition:box-shadow .3s ease;margin:0 8px}open-sample-image-panel .samples>img:hover{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}open-sample-image-panel .new-canvas-container{margin:20px 0;padding-top:20px;border-top:2px solid rgba(0,0,0,.07)}open-sample-image-panel .new-canvas-container .form-buttons{text-align:right}"]],data:{}});function su(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,8,"div",[["class","buttons"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"button",[["color","primary"],["mat-flat-button",""],["trans",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openUploadDialog()&&i),i},Kl,Gl)),i["\u0275did"](2,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275did"](3,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{color:[0,"color"]},null),(t()(),i["\u0275ted"](-1,0,["Open Photo"])),(t()(),i["\u0275eld"](5,0,null,null,3,"button",[["color","primary"],["mat-stroked-button",""],["trans",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=0!=(t.component.newCanvasFormVisible=!0)&&i),i},Kl,Gl)),i["\u0275did"](6,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275did"](7,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{color:[0,"color"]},null),(t()(),i["\u0275ted"](-1,0,["Create New"]))],function(t,e){t(e,3,0,"primary"),t(e,7,0,"primary")},function(t,e){t(e,1,0,i["\u0275nov"](e,3).disabled||null,"NoopAnimations"===i["\u0275nov"](e,3)._animationMode),t(e,5,0,i["\u0275nov"](e,7).disabled||null,"NoopAnimations"===i["\u0275nov"](e,7)._animationMode)})}function lu(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","new-canvas-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,34,"form",[["class","many-inputs"],["ngNativeValidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0,o=t.component;return"submit"===e&&(r=!1!==i["\u0275nov"](t,2).onSubmit(n)&&r),"reset"===e&&(r=!1!==i["\u0275nov"](t,2).onReset()&&r),"ngSubmit"===e&&(r=!1!==o.createNewCanvas()&&r),r},null,null)),i["\u0275did"](2,540672,null,0,Un,[[8,null],[8,null]],{form:[0,"form"]},{ngSubmit:"ngSubmit"}),i["\u0275prd"](2048,null,je,null,[Un]),i["\u0275did"](4,16384,null,0,Tn,[[4,je]],null,null),(t()(),i["\u0275eld"](5,0,null,null,10,"div",[["class","input-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,2,"label",[["for","width"],["trans",""]],null,null,null,null,null)),i["\u0275did"](7,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Width"])),(t()(),i["\u0275eld"](9,0,null,null,6,"input",[["formControlName","width"],["id","width"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==i["\u0275nov"](t,10)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,10).onTouched()&&r),"compositionstart"===e&&(r=!1!==i["\u0275nov"](t,10)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i["\u0275nov"](t,10)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==i["\u0275nov"](t,11).onChange(n.target.value)&&r),"input"===e&&(r=!1!==i["\u0275nov"](t,11).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,11).onTouched()&&r),r}
1,null,null)),i["\u0275did"](10,16384,null,0,Ye,[i.Renderer2,i.ElementRef,[2,Ue]],null,null),i["\u0275did"](11,16384,null,0,Ge,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,He,function(t,e){return[t,e]},[Ye,Ge]),i["\u0275did"](13,671744,null,0,Gn,[[3,je],[8,null],[8,null],[6,He],[2,Hn]],{name:[0,"name"]},null),i["\u0275prd"](2048,null,Ze,null,[Gn]),i["\u0275did"](15,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](16,0,null,null,10,"div",[["class","input-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](17,0,null,null,2,"label",[["for","height"],["trans",""]],null,null,null,null,null)),i["\u0275did"](18,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Height"])),(t()(),i["\u0275eld"](20,0,null,null,6,"input",[["formControlName","height"],["id","height"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0;return"input"===e&&(r=!1!==i["\u0275nov"](t,21)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,21).onTouched()&&r),"compositionstart"===e&&(r=!1!==i["\u0275nov"](t,21)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i["\u0275nov"](t,21)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==i["\u0275nov"](t,22).onChange(n.target.value)&&r),"input"===e&&(r=!1!==i["\u0275nov"](t,22).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,22).onTouched()&&r),r},null,null)),i["\u0275did"](21,16384,null,0,Ye,[i.Renderer2,i.ElementRef,[2,Ue]],null,null),i["\u0275did"](22,16384,null,0,Ge,[i.Renderer2,i.ElementRef],null,
1null),i["\u0275prd"](1024,null,He,function(t,e){return[t,e]},[Ye,Ge]),i["\u0275did"](24,671744,null,0,Gn,[[3,je],[8,null],[8,null],[6,He],[2,Hn]],{name:[0,"name"]},null),i["\u0275prd"](2048,null,Ze,null,[Gn]),i["\u0275did"](26,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](27,0,null,null,8,"div",[["class","form-buttons"]],null,null,null,null,null)),(t()(),i["\u0275eld"](28,0,null,null,3,"button",[["mat-button",""],["trans",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=0!=(t.component.newCanvasFormVisible=!1)&&i),i},Kl,Gl)),i["\u0275did"](29,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275did"](30,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275ted"](-1,0,["Cancel"])),(t()(),i["\u0275eld"](32,0,null,null,3,"button",[["color","primary"],["mat-raised-button",""],["trans",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Kl,Gl)),i["\u0275did"](33,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275did"](34,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{color:[0,"color"]},null),(t()(),i["\u0275ted"](-1,0,["Create"]))],function(t,e){t(e,2,0,e.component.newCanvasForm),t(e,13,0,"width"),t(e,24,0,"height"),t(e,34,0,"primary")},function(t,e){t(e,1,0,i["\u0275nov"](e,4).ngClassUntouched,i["\u0275nov"](e,4).ngClassTouched,i["\u0275nov"](e,4).ngClassPristine,i["\u0275nov"](e,4).ngClassDirty,i["\u0275nov"](e,4).ngClassValid,i["\u0275nov"](e,4).ngClassInvalid,i["\u0275nov"](e,4).ngClassPending),t(e,9,0,i["\u0275nov"](e,15).ngClassUntouched,i["\u0275nov"](e,15).ngClassTouched,i["\u0275nov"](e,15).ngClassPristine,i["\u0275nov"](e,15).ngClassDirty,i["\u0275nov"](e,15).ngClassValid,i["\u0275nov"](e,15).ngClassInvalid,i["\u0275nov"](e,15).ngClassPending),t(e,20,0,i["\u0275nov"](e,26).ngClassUntouched,i["\u0275nov"](e,26).ngClassTouched,i["\u0275nov"](e,26).ngClassPristine,i["\u0275nov"](e,26).ngClassDirty,i["\u0275nov"](e,26).ngClassValid,i["\u0275nov"](e,26).ngClassInvalid,i["\u0275nov"](e,26).ngClassPending),t(e,28,0,i["\u0275nov"](e,30).disabled||null,"NoopAnimations"===i["\u0275nov"](e,30)._animationMode),t(e,32,0,i["\u0275nov"](e,34).disabled||null,"NoopAnimations"===i["\u0275nov"](e,34)._animationMode)})}function uu(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,0,"img",[],[[8,"src",4]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openSampleImage(t.context.$implicit.url)&&i),i},null,null))],null,function(t,e){t(e,0,0,e.context.$implicit.thumbnail||e.context.$implicit.url)})}function cu(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"h2",[["trans",""]],null,null,null,null,null)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Open a photo or design to get started."])),(t()(),i["\u0275and"](16777216,null,null,1,null,su)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,lu)),i["\u0275did"](6,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](7,0,null,null,4,"div",[["class","separator"]],null,null,null,null,null)),(t()(),i["\u0275eld"](8,0,null,null,0,"hr",[],null,
1null,null,null,null)),(t()(),i["\u0275eld"](9,0,null,null,2,"span",[["class","text"],["trans",""]],null,null,null,null,null)),i["\u0275did"](10,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["or use a sample"])),(t()(),i["\u0275eld"](12,0,null,null,2,"div",[["class","samples"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,uu)),i["\u0275did"](14,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,4,0,!n.newCanvasFormVisible),t(e,6,0,n.newCanvasFormVisible),t(e,14,0,n.sampleImages)},null)}var hu=i["\u0275ccf"]("open-sample-image-panel",ei,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"open-sample-image-panel",[],null,null,null,cu,au)),i["\u0275did"](1,49152,null,0,ei,[vt,b,Ai,y,ji],null,null)],null,null)},{},{},[]);function du(t){return getComputedStyle(t)}function pu(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function fu(t){var e=document.createElement("div");return e.className=t,e}var gu="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector);function mu(t,e){if(!gu)throw new Error("No element matching method supported");return gu.call(t,e)}function vu(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function yu(t,e){return Array.prototype.filter.call(t.children,function(t){return mu(t,e)})}var bu={main:"ps",element:{thumb:function(t){return"ps__thumb-"+t},rail:function(t){return"ps__rail-"+t},consuming:"ps__child--consume"},state:{focus:"ps--focus",active:function(t){return"ps--active-"+t},scrolling:function(t){return"ps--scrolling-"+t}}},_u={x:null,y:null};function wu(t,e){var n=t.element.classList,i=bu.state.scrolling(e);n.contains(i)?clearTimeout(_u[e]):n.add(i)}function xu(t,e){_u[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(bu.state.scrolling(e))},t.settings.scrollingThreshold)}var Cu=function(t){this.element=t,this.handlers={}},Su={isEmpty:{configurable:!0}};Cu.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},Cu.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter(function(i){return!(!e||i===e)||(n.element.removeEventListener(t,i,!1),!1)})},Cu.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},Su.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(Cu.prototype,Su);var ku=function(){this.eventElements=[]};function Eu(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}ku.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new Cu(t),this.eventElements.push(e)),e},ku.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},ku.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},ku.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},ku.prototype.once=function(t,e,n){var i=this.eventElement(t),r=function(t){i.unbind(e,r),n(t)};i.bind(e,r)};var Ou=function(t,e,n,i,r){var o;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===e)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,i,r){var a=o[0],s=o[1],l=o[2],u=o[3],c=o[4],h=o[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var d=t.element;t.reach[u]=null,d[l]<1&&(t.reach[u]="start"),d[l]>t[a]-t[s]-1&&(t.reach[u]="end"),e&&(d.dispatchEvent(Eu("ps-scroll-"+u)),e<0?d.dispatchEvent(Eu("ps-scroll-"+c)):e>0&&d.dispatchEvent(Eu("ps-scroll-"+h)),i&&function(t,e){wu(t,e),xu(t,e)}(t,u)),t.reach[u]&&(e||r)&&d.dispatchEvent(Eu("ps-"+u+"-reach-"+t.reach[u]))}(t,n,0,i,r)};function Tu(t){return parseInt(t,10)||0}
1var Au={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)},Du=function(t){var e=t.element;t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(yu(e,bu.element.rail("x")).forEach(function(t){return vu(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(yu(e,bu.element.rail("y")).forEach(function(t){return vu(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=Pu(t,Tu(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=Tu((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=Pu(t,Tu(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=Tu(e.scrollTop*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth};n.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-t.scrollTop:n.top=e.scrollbarXTop+t.scrollTop,pu(e.scrollbarXRail,n);var i={top:t.scrollTop,height:e.railYHeight};e.isScrollbarYUsingRight?i.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth:e.scrollbarYRight-t.scrollLeft:i.left
1=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,pu(e.scrollbarYRail,i),pu(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),pu(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(bu.state.active("x")):(e.classList.remove(bu.state.active("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(bu.state.active("y")):(e.classList.remove(bu.state.active("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)};function Pu(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function Iu(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[5],s=e[6],l=e[7],u=t.element,c=null,h=null,d=null;function p(e){u[s]=c+d*(e[r]-h),wu(t,l),Du(t),e.stopPropagation(),e.preventDefault()}function f(){xu(t,l),t.event.unbind(t.ownerDocument,"mousemove",p)}t.event.bind(t[e[4]],"mousedown",function(e){c=u[s],h=e[r],d=(t[i]-t[n])/(t[o]-t[a]),t.event.bind(t.ownerDocument,"mousemove",p),t.event.once(t.ownerDocument,"mouseup",f),e.stopPropagation(),e.preventDefault()})}var Ru={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(n>t.scrollbarYTop?1:-1)*t.containerHeight,Du(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(n>t.scrollbarXLeft?1:-1)*t.containerWidth,Du(t),e.stopPropagation()})},"drag-thumb":function(t){Iu(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x"]),Iu(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(mu(e,":hover")||mu(t.scrollbarX,":focus")||mu(t.scrollbarY,":focus"))){var i,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(mu(i=r,"input,[contenteditable]")||mu(i,"select,[contenteditable]")||mu(i,"textarea,[contenteditable]")||mu(i,"button,[contenteditable]"))return}var o=0,a=0;switch(n.which){case 37:o=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:a=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:o=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:a=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:a=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==o||t.settings.suppressScrollY&&0!==a||(e.scrollTop-=a,e.scrollLeft+=o,Du(t),function(n,i){var r=e.scrollTop;if(0===n){if(!t.scrollbarYActive)return!1;if(0===r&&i>0||r>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var o=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===o&&n<0||o>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(o,a)&&n.preventDefault())}})},wheel:function(t){var e=t.element;function n(n){var i=function(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),r=i[0],o=i[1];if(!function(t,n,i){if(!Au.isWebKit&&e.querySelector("select:focus"))return!0;
1if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(bu.element.consuming))return!0;var o=du(r);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&!(0===r.scrollTop&&i>0||r.scrollTop===a&&i<0))return!0;var s=r.scrollLeft-r.clientWidth;if(s>0&&!(0===r.scrollLeft&&n<0||r.scrollLeft===s&&n>0))return!0}r=r.parentNode}return!1}(n.target,r,o)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(o?e.scrollTop-=o*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=o*t.settings.wheelSpeed,a=!0):(e.scrollTop-=o*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),Du(t),(a=a||function(n,i){var r=0===e.scrollTop,o=e.scrollTop+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,s=e.scrollLeft+e.offsetWidth===e.offsetWidth;return!(Math.abs(i)>Math.abs(n)?r||o:a||s)||!t.settings.wheelPropagation}(r,o))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(Au.supportsTouch||Au.supportsIePointer){var e=t.element,n={},i=0,r={},o=null;Au.supportsTouch?(t.event.bind(e,"touchstart",u),t.event.bind(e,"touchmove",c),t.event.bind(e,"touchend",h)):Au.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",u),t.event.bind(e,"pointermove",c),t.event.bind(e,"pointerup",h)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",u),t.event.bind(e,"MSPointerMove",c),t.event.bind(e,"MSPointerUp",h)))}function a(n,i){e.scrollTop-=i,e.scrollLeft-=n,Du(t)}function s(t){return t.targetTouches?t.targetTouches[0]:t}function l(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function u(t){if(l(t)){var e=s(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==o&&clearInterval(o)}}function c(o){if(l(o)){var u=s(o),c={pageX:u.pageX,pageY:u.pageY},h=c.pageX-n.pageX,d=c.pageY-n.pageY;if(function(t,n,i){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(bu.element.consuming))return!0;var o=du(r);if([o.overflow,o.overflowX,o.overflowY].join("").match(/(scroll|auto)/)){var a=r.scrollHeight-r.clientHeight;if(a>0&&!(0===r.scrollTop&&i>0||r.scrollTop===a&&i<0))return!0;var s=r.scrollLeft-r.clientWidth;if(s>0&&!(0===r.scrollLeft&&n<0||r.scrollLeft===s&&n>0))return!0}r=r.parentNode}return!1}(o.target,h,d))return;a(h,d),n=c;var p=(new Date).getTime(),f=p-i;f>0&&(r.x=h/f,r.y=d/f,i=p),function(n,i){var r=e.scrollTop,o=e.scrollLeft,a=Math.abs(n),s=Math.abs(i);if(s>a){if(i<0&&r===t.contentHeight-t.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&Au.isChrome}else if(a>s&&(n<0&&o===t.contentWidth-t.containerWidth||n>0&&0===o))return!0;return!0}(h,d)&&o.preventDefault()}}function h(){t.settings.swipeEasing&&(clearInterval(o),o=setInterval(function(){t.isInitialized?clearInterval(o):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(o):(a(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(o)},10))}}},ju=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add(bu.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1},e)n.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,o,a=function(){return t.classList.add(bu.state.focus)},s=function(){return t.classList.remove(bu.state.focus)};this.isRtl="rtl"===du(t).direction,this.isNegativeScroll=(o=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=o,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new ku,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=fu(bu.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=fu(bu.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=du(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Tu(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Tu(l.borderLeftWidth)+Tu(l.borderRightWidth),pu(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Tu(l.marginLeft)+Tu(l.marginRight),pu(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=fu(bu.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=fu(bu.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var u=du(this.scrollbarYRail);this.scrollbarYRight=parseInt(u.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Tu
1(u.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=du(t);return Tu(e.width)+Tu(e.paddingLeft)+Tu(e.paddingRight)+Tu(e.borderLeftWidth)+Tu(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Tu(u.borderTopWidth)+Tu(u.borderBottomWidth),pu(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Tu(u.marginTop)+Tu(u.marginBottom),pu(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return Ru[t](n)}),this.lastScrollTop=t.scrollTop,this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return n.onScroll(t)}),Du(this)};ju.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,pu(this.scrollbarXRail,{display:"block"}),pu(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Tu(du(this.scrollbarXRail).marginLeft)+Tu(du(this.scrollbarXRail).marginRight),this.railYMarginHeight=Tu(du(this.scrollbarYRail).marginTop)+Tu(du(this.scrollbarYRail).marginBottom),pu(this.scrollbarXRail,{display:"none"}),pu(this.scrollbarYRail,{display:"none"}),Du(this),Ou(this,"top",0,!1,!0),Ou(this,"left",0,!1,!0),pu(this.scrollbarXRail,{display:""}),pu(this.scrollbarYRail,{display:""}))},ju.prototype.onScroll=function(t){this.isAlive&&(Du(this),Ou(this,"top",this.element.scrollTop-this.lastScrollTop),Ou(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=this.element.scrollTop,this.lastScrollLeft=this.element.scrollLeft)},ju.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),vu(this.scrollbarX),vu(this.scrollbarY),vu(this.scrollbarXRail),vu(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ju.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var Mu=ju,Fu=function(){function t(t,e,n,i,r,o){this.el=t,this.renderer=e,this.breakpoints=n,this.ngZone=i,this.mutationObserverFactory=r,this.config=o,this.subscriptions=[],this.minLength=100,this.suppressX=!0,this.scrollTop=0,this.native=!0,this.debouncer=new ni.a}return t.prototype.ngAfterViewInit=function(){this.renderer.addClass(this.el.nativeElement,this.suppressX?"scroll-container":"scroll-container-x"),this.shouldUseNative()||(this.scrollbar=new Mu(this.el.nativeElement,{minScrollbarLength:this.minLength,suppressScrollX:this.suppressX,useBothWheelAxes:!this.suppressX,wheelSpeed:2}),this.native=!1,this.bindToContentChange())},t.prototype.update=function(){this.native||this.scrollbar.update()},t.prototype.setScrollTop=function(t){void 0===t&&(t=0),this.el.nativeElement.scrollTop=t,this.scrollTop=this.el.nativeElement.scrollTop,this.update()},t.prototype.ngOnDestroy=function(){this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions=[],this.native||this.scrollbar.destroy(),this.debouncer.complete(),this.observer&&this.observer.disconnect()},t.prototype.shouldUseNative=function(){return!this.config.get("vebto.forceCustomScrollbar")&&!/Edge/.test(navigator.userAgent)&&this.breakpoints.isMobile},t.prototype.bindToContentChange=function(){var t=this;this.observer=this.ngZone.runOutsideAngular(function(){return t.mutationObserverFactory.create(function(e){t.debouncer.next(e)})}),this.observer.observe(this.el.nativeElement,{childList:!0,subtree:!0}),this.ngZone.runOutsideAngular(function(){t.debouncer.subscribe(function(e){return t.update()})})},t}(),Nu=function(){function t(t){var e=this;this.breakpointObserver=t,this.isMobile=!1,this.breakpointObserver.observe(Eo.Handset).subscribe(function(t){e.isMobile=t.matches})}return t.prototype.observe=function(t){return this.breakpointObserver.observe(t)},t}(),Bu=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Vu=function(){function t(t){this._mutationObserverFactory=t,this._observedElements=new Map}return t.prototype.ngOnDestroy=function(){var t=this;
1this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})},t.prototype.observe=function(t){var e=this;return C.a.create(function(n){var i=e._observeElement(t).subscribe(n);return function(){i.unsubscribe(),e._unobserveElement(t)}})},t.prototype._observeElement=function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new ni.a,n=this._mutationObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream},t.prototype._unobserveElement=function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))},t.prototype._cleanupObserver=function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}},t.ngInjectableDef=Object(i.defineInjectable)({factory:function(){return new t(Object(i.inject)(Bu))},token:t,providedIn:"root"}),t}(),Lu=function(){function t(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new i.EventEmitter,this._disabled=!1,this._currentSubscription=null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Fr(t),this._disabled?this._unsubscribe():this._subscribe()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"debounce",{get:function(){return this._debounce},set:function(t){this._debounce=Nr(t),this._subscribe()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()},t.prototype.ngOnDestroy=function(){this._unsubscribe()},t.prototype._subscribe=function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef.nativeElement);this._ngZone.runOutsideAngular(function(){t._currentSubscription=(t.debounce?e.pipe(wa(t.debounce)):e).subscribe(t.event)})},t.prototype._unsubscribe=function(){this._currentSubscription&&this._currentSubscription.unsubscribe()},t}(),zu=function(){},Hu=function(){function t(t,e){this.history=t,this.panelRef=e}return t.prototype.loadHistoryState=function(t){this.history.load(t)},t}(),Wu=i["\u0275crt"]({encapsulation:2,styles:[["history-panel{display:block;bottom:5px;right:5px}"]],data:{}});function Uu(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"div",[["class","item"]],[[2,"active",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.loadHistoryState(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,1,"svg-icon",[["class","list-icon"]],null,null,null,br,yr)),i["\u0275did"](2,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](3,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](4,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](5,null,["",""]))],function(t,e){t(e,2,0,e.context.$implicit.icon)},function(t,e){t(e,0,0,e.context.$implicit.index===e.component.history.getPointer()),t(e,5,0,e.context.$implicit.name)})}function Yu(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","header"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](2,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["History"])),(t()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","close-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.panelRef.close()&&i),i},Kl,Gl)),i["\u0275did"](5,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](6,0,null,0,1,"svg-icon",[["name","close"]],null,null,null,br,yr)),i["\u0275did"](7,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](8,0,null,null,3,"div",[["class","items-list"],["customScrollbar",""]],null,null,null,null,null)),i["\u0275did"](9,4341760,null,0,Fu,[i.ElementRef,i.Renderer2,Nu,i.NgZone,Bu,b],null,
1null),(t()(),i["\u0275and"](16777216,null,null,1,null,Uu)),i["\u0275did"](11,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,7,0,"close"),t(e,11,0,n.history.getAllItems())},function(t,e){t(e,4,0,i["\u0275nov"](e,5).disabled||null,"NoopAnimations"===i["\u0275nov"](e,5)._animationMode)})}var Xu=i["\u0275ccf"]("history-panel",Hu,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"history-panel",[],null,null,null,Yu,Wu)),i["\u0275did"](1,49152,null,0,Hu,[ji,Ai],null,null)],null,null)},{},{},[]),qu=n("U/5H"),Gu=function(){function t(t,e,n,i){this.el=t,this.objects=e,this.zone=n,this.canvasState=i}return t.prototype.ngAfterContentInit=function(){var t=this;new qu(this.el.nativeElement,{draggable:".reorder-item-wrapper",animation:250,onUpdate:function(){Array.from(t.el.nativeElement.querySelectorAll(".item")).map(function(t){return t.dataset.id}).reverse().forEach(function(e,n){return t.objects.getById(e).moveTo(n)}),t.canvasState.fabric.requestRenderAll(),t.objects.syncObjects()}})},t}(),Ku=function(){function t(t,e){this.canvas=t,this.activeObject=e,this.objects=[],this.init()}return t.prototype.getAll=function(){return this.objects},t.prototype.get=function(t){return this.objects.find(function(e){return e.name===t})},t.prototype.getById=function(t){return this.objects.find(function(e){return e.data.id===t})},t.prototype.isActive=function(t){return this.activeObject.getId()===t.data.id},t.prototype.has=function(t){return this.objects.findIndex(function(e){return e.name===t})>-1},t.prototype.select=function(t){this.canvas.state.fabric.setActiveObject(t),this.canvas.state.fabric.requestRenderAll()},t.prototype.syncObjects=function(){this.objects=this.canvas.fabric().getObjects().filter(function(t){if(t.name)return-1===t.name.indexOf("crop.")&&-1===t.name.indexOf("round.")&&-1===t.name.indexOf("frame.")}).reverse()},t.prototype.init=function(){var t=this;this.canvas.state.loaded.subscribe(function(){t.canvas.state.loaded.subscribe(function(){t.syncObjects()}),t.canvas.fabric().on("object:added",function(){t.syncObjects()}),t.canvas.fabric().on("object:removed",function(){t.syncObjects()})})},t}(),Zu=function(){function t(t,e,n,i){this.objects=t,this.panelRef=e,this.controls=n,this.activeDrawer=i}return t.prototype.getIcon=function(t){switch(t.name){case"text":return"text-box-custom";case"shape":return"polygon-custom";case"sticker":return"sticker-custom";case"drawing":return"pencil-custom";case"mainImage":case"image":return"photo-library"}},t.prototype.selectObject=function(t){this.objects.select(t),this.activeDrawer.dirty()||this.controls.openPanel("objectSettings")},t.prototype.getObjectDisplayName=function(t){var e=t.name;return e?e.replace(/([A-Z])/g," $1"):""},t}(),Qu=function(){function t(t){this.controls=t,this.drawers=[],this.bindToPanelClose()}return t.prototype.set=function(t){t&&this.drawers.push(t)},t.prototype.isOpen=function(){return this.drawers.length>0},t.prototype.close=function(){var t=this.getActive();t?t.close():this.controls.closeCurrentPanel()},t.prototype.apply=function(){this.getActive().apply()},t.prototype.dirty=function(){return this.getActive()&&this.getActive().dirty},t.prototype.getName=function(){return this.getActive()&&this.getActive().name},t.prototype.getDisplayName=function(){var t=this.getName();return t?t.replace(/([A-Z])/g," $1"):""},t.prototype.canApplyChanges=function(){return"objectSettings"!==this.getName()&&this.dirty()},t.prototype.getActive=function(){return this.drawers[this.drawers.length-1]},t.prototype.bindToPanelClose=function(){var t=this;this.controls.onClose$.subscribe(function(){t.drawers.forEach(function(e,n){t.controls.panelIsOpen(e.name)||t.drawers.splice(n,1)})})},t}(),Ju=i["\u0275crt"]({encapsulation:2,styles:[["objects-panel{display:block}objects-panel .action-button{vertical-align:middle;width:20px;height:20px;line-height:20px;margin:0 5px}objects-panel .action-button svg-icon{width:20px;height:20px}"]],data:{}});function $u(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"div",[["class","reorder-item-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,5,"div",[["class","item"]],[[2,"disabled",null],[2,"active",null],[1,"data-id",0]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.selectObject(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](2,0,null,null,1,"svg-icon",[["class","list-icon"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](4,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](5,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](6,null,["",""]))],function(t,e){t(e,3,0,e.component.getIcon(e.context.$implicit))},function(t,e){var n=e.component;t(e,1,0,!e.context.$implicit.selectable,n.objects.isActive(e.context.$implicit),e.context.$implicit.data.id),t(e,6,0,n.getObjectDisplayName(e.context.$implicit))})}function tc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","header"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,2,"div",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](2,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Objects"])),(t()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","close-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.panelRef.close()&&i),i},Kl,Gl)),i["\u0275did"](5,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](6,0,null,0,1,"svg-icon",[["name","close"]],null,null,null,br,yr)),i["\u0275did"](7,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](8,0,null,null,4,"div",[["class","items-list"],["customScrollbar",""],["reorderObjects",""]],null,null,null,null,null)),i["\u0275did"](9,4341760,null,0,Fu,[i.ElementRef,i.Renderer2,Nu,i.NgZone,Bu,b],null,null),i["\u0275did"](10,1064960,null,0,Gu,[i.ElementRef,Ku,i.NgZone,yi],null,null),(t()(),i["\u0275and"](16777216,null,null,1,null,$u)),i["\u0275did"](12,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,7,0,"close"),t(e,12,0,n.objects.getAll())},function(t,e){t(e,4,0,i["\u0275nov"](e,5).disabled||null,"NoopAnimations"===i["\u0275nov"](e,5)._animationMode)})}var ec=i["\u0275ccf"]("objects-panel",Zu,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"objects-panel",[],null,
1null,null,tc,Ju)),i["\u0275did"](1,49152,null,0,Zu,[Ku,Ai,Ri,Qu],null,null)],null,null)},{},{},[]),nc=function(){function t(t,e,n,i,r,o,a,s){this.controls=t,this.canvas=e,this.saveTool=n,this.config=i,this.mergeTool=r,this.history=o,this.editorUi=a,this.toast=s}return t.prototype.executeNavItemAction=function(t){return"merge"===t.action?this.merge():"string"==typeof t.action?this.controls.togglePanel(t.action):void("function"==typeof t.action&&t.action())},t.prototype.navItemIsDisabled=function(t){var e=!!this.canvas.getMainImage();return"merge"===t.name?!this.mergeTool.canMerge():"transform"===t.name?!e:"background"===t.name&&e},t.prototype.merge=function(){var t=this;this.mergeTool.apply().then(function(){t.history.add("objects: merged",t.controls.getIconName("merge")),t.toast.open("Objects merged.")})},t}(),ic=n("JEAp"),rc=n("RdDz"),oc=function(){function t(t,e,n,i,r,o,a){this.canvas=t,this.cropzone=e,this.history=n,this.config=i,this.http=r,this.watermark=o,this.toast=a,this.defaultName=this.config.get("pixie.tools.export.defaultName"),this.defaultFormat=this.config.get("pixie.tools.export.defaultFormat"),this.defaultQuality=this.config.get("pixie.tools.export.defaultQuality")}return t.prototype.export=function(t,e,n){t||(t=this.defaultName),e||(e=this.defaultFormat),n||(n=this.defaultQuality);var i=t+"."+e,r=this.getWaterMarkedDataUrl(e,n);r&&(this.config.has("pixie.saveUrl")?this.http.post(this.config.get("pixie.saveUrl"),{data:r,filename:i,format:e}):this.config.has("pixie.onSave")?this.config.get("pixie.onSave")(r,i,e):this.getCanvasBlob(e,r).then(function(t){Object(ic.saveAs)(t,i)}))},t.prototype.getCanvasBlob=function(t,e){return new Promise(function(n){var i;if("json"===t)i=new Blob([e],{type:"application/json"});else{"jpg"==t&&(t="jpeg");var r="image/"+t;e=e.replace("data:"+r+";base64,",""),i=rc(e,r)}n(i)})},t.prototype.getDataUrl=function(t,e){if(void 0===t&&(t=this.defaultFormat),void 0===e&&(e=this.defaultQuality),this.prepareCanvas(),"json"===t)return this.getJsonState();try{return this.canvas.fabric().toDataURL({format:t,quality:e,multiplier:this.canvas.state.original.width/this.canvas.fabric().getWidth()})}catch(t){if(-1===t.message.toLowerCase().indexOf("tainted"))return null;this.toast.open("Could not export canvas with external image.")}},t.prototype.getJsonState=function(){return JSON.stringify(this.history.getCurrentCanvasState())},t.prototype.prepareCanvas=function(){this.canvas.fabric().discardActiveObject(),this.canvas.pan.reset(),this.cropzone.remove()},t.prototype.getWaterMarkedDataUrl=function(t,e){this.config.has("pixie.watermarkText")&&this.watermark.add(this.config.get("pixie.watermarkText"));var n=this.getDataUrl(t,e);return this.watermark.remove(),n},t}(),ac=function(){function t(t,e,n,i,r){this.activeObject=t,this.canvas=e,this.saveTool=n,this.objects=i,this.activeFrame=r}return t.prototype.canMerge=function(){return this.objects.getAll().length>1},t.prototype.apply=function(){var t=this;return new Promise(function(e){return n=t,void 0,r=function(){var t;return function(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(r=i[2&o[0]?"return":o[0]?"throw":"next"])&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[0,r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,function(n){switch(n.label){case 0:return t=this.saveTool.getDataUrl(),this.clearCanvas(),[4,this.canvas.loadMainImage(t)];case 1:return n.sent(),e(),[2]}})}
1,new((i=void 0)||(i=Promise))(function(t,e){function o(t){try{s(r.next(t))}catch(t){e(t)}}function a(t){try{s(r.throw(t))}catch(t){e(t)}}function s(e){e.done?t(e.value):new i(function(t){t(e.value)}).then(o,a)}s((r=r.apply(n,[])).next())});var n,i,r})},t.prototype.clearCanvas=function(){this.activeFrame.remove(),this.canvas.fabric().clear()},t}(),sc=function(){function t(t,e,n){this.settings=t,this.i18n=e,this.snackbar=n}return t.prototype.open=function(t,e){return void 0===e&&(e={}),e.duration||0===e.duration||(e.duration=this.settings.get("toast.default_timeout",3e3)),this.snackbar.open(this.i18n.t(t),e.action,{duration:e.duration})},t}(),lc=i["\u0275crt"]({encapsulation:2,styles:[["navigation-bar{display:block;width:100%;height:100%;padding:0 12px}navigation-bar .scroll-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:relative;overflow-x:auto;overflow-y:hidden;white-space:nowrap}@media only screen and (max-width:1065px){navigation-bar .scroll-container{justify-content:flex-start}navigation-bar .scroll-container .separator{display:none}}navigation-bar .control-button{text-align:center;margin:0 12px}navigation-bar .control-button[disabled]{opacity:.4;cursor:default}navigation-bar .control-button>svg-icon{width:38px;height:38px;margin:0 auto;color:rgba(0,0,0,.75)}navigation-bar .control-button>.name{display:block;margin-top:6px;text-transform:uppercase;font-size:16px}navigation-bar .separator{height:75px;width:1px;flex:0 0 1px;background-color:rgba(0,0,0,.07);margin:0 20px}@media (min-width:960px){navigation-bar .control-button .name{font-size:14px}}@media (min-width:960px) and (max-width:1280px){navigation-bar .control-button{margin:0 6px}navigation-bar .control-button>svg-icon{width:28px;height:28px}navigation-bar .control-button .name{font-size:12px}navigation-bar .separator{margin:0 8px}}"]],data:{}});function uc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,0,"div",[["class","separator"]],null,null,null,null,null))],null,null)}function cc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"button",[["class","no-style control-button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.executeNavItemAction(t.parent.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,1,"svg-icon",[],null,null,null,br,yr)),i["\u0275did"](2,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](3,0,null,null,2,"span",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](4,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](5,null,["",""]))],function(t,e){t(e,2,0,e.parent.context.$implicit.icon)},function(t,e){t(e,0,0,e.component.navItemIsDisabled(e.parent.context.$implicit)),t(e,5,0,e.parent.context.$implicit.display_name||e.parent.context.$implicit.name)})}function hc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,uc)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,cc)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](0,null,null,0))],function(t,e){t(e,2,0,"separator"===e.context.$implicit.type),t(e,4,0,"separator"!==e.context.$implicit.type)},null)}function dc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","scroll-container"],["customScrollbar",""]],null,null,null,null,null)),i["\u0275did"](1,4341760,null,0,Fu,[i.ElementRef,i.Renderer2,Nu,i.NgZone,Bu,b],{suppressX:[0,"suppressX"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,hc)),i["\u0275did"](3,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,!1),t(e,3,0,n.editorUi.getNavItems())},null)}var pc=function(){function t(t,e){this.overlayPanel=t,this.config=e,this.compact=!1,this.selectedColor="#000",this.colors=this.config.get("pixie.ui.colorPresets")}return t.prototype.changeColor=function(t){this.selectedColor=t,this.prop
1agateChange(t)},t.prototype.openColorPicker=function(){var t=this;this.overlayPanel.open(hr,{position:"bottom",hasBackdrop:!0,origin:this.colorPickerButton}).valueChanged().subscribe(function(e){return t.changeColor(e)})},t.prototype.writeValue=function(t){this.selectedColor=t},t.prototype.registerOnChange=function(t){this.propagateChange=t},t.prototype.registerOnTouched=function(){},t}(),fc=i["\u0275crt"]({encapsulation:2,styles:[["color-widget{display:block;margin:0 25px}color-widget.compact .round-action-button{width:40px;height:40px;line-height:40px;margin-right:10px}color-widget.compact .round-action-button svg-icon{width:30px;height:30px}color-widget .round-action-button{margin-right:15px}color-widget .colors{display:flex;align-items:center;width:358px;overflow:hidden}color-widget .color{width:25px;height:25px;border:1px solid #e0e0e0;border-radius:50%;margin:0 5px;transition:box-shadow 225ms ease;position:relative;z-index:2}color-widget .color.selected{border-color:transparent;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}"]],data:{}});function gc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,0,"button",[["class","no-style color control"]],[[4,"background",null],[2,"selected",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.changeColor(t.context.$implicit)&&i),i},null,null))],null,function(t,e){t(e,0,0,e.context.$implicit,e.component.selectedColor===e.context.$implicit)})}function mc(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{colorPickerButton:0}),(t()(),i["\u0275eld"](1,0,null,null,6,"div",[["class","colors"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,[[1,0]],null,3,"button",[["class","round-action-button color-picker-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openColorPicker()&&i),i},Kl,Gl)),i["\u0275did"](3,180224,[["colorPickerButton",4]],0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](4,0,null,0,1,"svg-icon",[["name","color-wheel-custom"]],null,null,null,br,yr)),i["\u0275did"](5,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,gc)),i["\u0275did"](7,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](8,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](9,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275ncd"](null,0)],function(t,e){var n=e.component;t(e,5,0,"color-wheel-custom"),t(e,7,0,n.colors)},function(t,e){t(e,2,0,i["\u0275nov"](e,3).disabled||null,"NoopAnimations"===i["\u0275nov"](e,3)._animationMode)})}var vc=function(t){function e(e,n,r,o,a,s){var l=t.call(this,e)||this;return l._focusMonitor=n,l._changeDetectorRef=r,l._dir=o,l._animationMode=s,l._invert=!1,l._max=100,l._min=0,l._step=1,l._thumbLabel=!1,l._tickInterval=0,l._value=null,l._vertical=!1,l.change=new i.EventEmitter,l.input=new i.EventEmitter,l.onTouched=function(){},l._percent=0,l._isSliding=!1,l._isActive=!1,l._tickIntervalPercent=0,l._sliderDimensions=null,l._controlValueAccessorChangeFn=function(){},l._dirChangeSubscription=ii.a.EMPTY,l.tabIndex=parseInt(a)||0,l}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"invert",{get:function(){return this._invert},set:function(t){this._invert=Fr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(t){this._max=Nr(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(t){this._min=Nr(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step},set:function(t){this._step=Nr(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}
1),Object.defineProperty(e.prototype,"thumbLabel",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=Fr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tickInterval",{get:function(){return this._tickInterval},set:function(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?Nr(t,this._tickInterval):0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(t){t!==this._value&&(this._value=Nr(t),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Fr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this._focusHostElement()},e.prototype.blur=function(){this._blurHostElement()},Object.defineProperty(e.prototype,"percent",{get:function(){return this._clamp(this._percent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_invertAxis",{get:function(){return this.vertical?!this.invert:this.invert},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isMinValue",{get:function(){return 0===this.percent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_thumbGap",{get:function(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_trackBackgroundStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"-":"")+this._thumbGap+"px) scale"+t+"("+(1-this.percent)+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_trackFillStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"":"-")+this._thumbGap+"px) scale"+t+"("+this.percent+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ticksContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"-":"")+this._tickIntervalPercent/2*100+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ticksStyles",{get:function(){var t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?"2px "+t+"%":t+"% 2px",transform:"translateZ(0) translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"":"-")+t/2+"%)"+(this.vertical||"rtl"!=this._direction?"":" rotate(180deg)")};return this._isMinValue&&this._thumbGap&&(e["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=this._thumbGap+"px"),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_thumbContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"(-"+100*(("rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_invertMouseCoords",{get:function(){return"rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_direction",{get:function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef.nativeElement,!0).subscribe(function(e){t._isActive=!!e&&"keyboard"!==e,t._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){t._changeDetectorRef.markForCheck()}))},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement),this._dirChangeSubscription.unsubscribe()},e.prototype._onMouseenter=function(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())},e.prototype._onClick=function(t){if(!this.disabled){var e=this.value;
1this._isSliding=!1,this._focusHostElement(),this._updateValueFromPosition({x:t.clientX,y:t.clientY}),e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())}},e.prototype._onSlide=function(t){if(!this.disabled){this._isSliding||this._onSlideStart(null),t.preventDefault();var e=this.value;this._updateValueFromPosition({x:t.center.x,y:t.center.y}),e!=this.value&&this._emitInputEvent()}},e.prototype._onSlideStart=function(t){this.disabled||this._isSliding||(this._onMouseenter(),this._isSliding=!0,this._focusHostElement(),this._valueOnSlideStart=this.value,t&&(this._updateValueFromPosition({x:t.center.x,y:t.center.y}),t.preventDefault()))},e.prototype._onSlideEnd=function(){this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||this._emitChangeEvent(),this._valueOnSlideStart=null},e.prototype._onFocus=function(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()},e.prototype._onBlur=function(){this.onTouched()},e.prototype._onKeydown=function(t){if(!this.disabled){var e=this.value;switch(t.keyCode){case 33:this._increment(10);break;case 34:this._increment(-10);break;case 35:this.value=this.max;break;case 36:this.value=this.min;break;case 37:this._increment("rtl"==this._direction?1:-1);break;case 38:this._increment(1);break;case 39:this._increment("rtl"==this._direction?-1:1);break;case 40:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}},e.prototype._onKeyup=function(){this._isSliding=!1},e.prototype._increment=function(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)},e.prototype._updateValueFromPosition=function(t){if(this._sliderDimensions){var e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._invertMouseCoords&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{var n=this._calculateValue(e),i=Math.round((n-this.min)/this.step)*this.step+this.min;this._roundToDecimal&&(i=parseFloat(i.toFixed(this._roundToDecimal))),this.value=this._clamp(i,this.min,this.max)}}},e.prototype._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.value),this.change.emit(this._createChangeEvent())},e.prototype._emitInputEvent=function(){this.input.emit(this._createChangeEvent())},e.prototype._updateTickIntervalPercent=function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)},e.prototype._createChangeEvent=function(t){void 0===t&&(t=this.value);var e=new function(){};return e.source=this,e.value=t,e},e.prototype._calculatePercentage=function(t){return((t||0)-this.min)/(this.max-this.min)},e.prototype._calculateValue=function(t){return this.min+t*(this.max-this.min)},e.prototype._clamp=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.max(e,Math.min(t,n))},e.prototype._getSliderDimensions=function(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null},e.prototype._focusHostElement=function(){this._elementRef.nativeElement.focus()},e.prototype._blurHostElement=function(){this._elementRef.nativeElement.blur()},e.prototype.writeValue=function(t){this.value=t},e.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},e.prototype.registerOnTouched=function(t){this.onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t},e}(Zr(Gr(qr(function(t){this._elementRef=t}),"accent"))),yc=function(){},bc=i["\u0275crt"]({encapsulation:2,styles:[".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-ticks-container{position:absolute;
1left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.cdk-keyboard-focused .mat-slider-focus-ring,.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label{cursor:-webkit-grab;cursor:grab}.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label:active,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb:active{cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-sliding .mat-slider-thumb-container,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-track-fill{transition-duration:0s}.mat-slider-has-ticks .mat-slider-wrapper::after{content:'';position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}@media screen and (-ms-high-contrast:active){.mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}@media screen and (-ms-high-contrast:active){.mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-track-fill{transition:none}"],data:{}});function _c(t){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{_sliderWrapper:0}),(t()(),i["\u0275eld"](1,0,[[1,0],["sliderWrapper",1]],null,16,"div",[["class","mat-slider-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,4,"div",[["class","mat-slider-track-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](3,0,null,null,1,"div",[["class","mat-slider-track-background"]],null,null,null,null,null)),i["\u0275did"](4,278528,null,0,M.NgStyle,[i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngStyle:[0,"ngStyle"]},null),(t()(),i["\u0275eld"](5,0,null,null,1,"div",[["class","mat-slider-track-fill"]],null,null,null,null,null)),i["\u0275did"](6,278528,null,0,M.NgStyle,[i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngStyle:[0,"ngStyle"]},null),(t()(),i["\u0275eld"](7,0,null,null,3,"div",[["class","mat-slider-ticks-container"]],null,null,null,null,null)),i["\u0275did"](8,278528,null,0,M.NgStyle,[i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngStyle:[0,"ngStyle"]},null),(t()(),i["\u0275eld"](9,0,null,null,1,"div",[["class","mat-slider-ticks"]],null,null,null,null,null)),i["\u0275did"](10,278528,null,0,M.NgStyle,[i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngStyle:[0,"ngStyle"]}
1,null),(t()(),i["\u0275eld"](11,0,null,null,6,"div",[["class","mat-slider-thumb-container"]],null,null,null,null,null)),i["\u0275did"](12,278528,null,0,M.NgStyle,[i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngStyle:[0,"ngStyle"]},null),(t()(),i["\u0275eld"](13,0,null,null,0,"div",[["class","mat-slider-focus-ring"]],null,null,null,null,null)),(t()(),i["\u0275eld"](14,0,null,null,0,"div",[["class","mat-slider-thumb"]],null,null,null,null,null)),(t()(),i["\u0275eld"](15,0,null,null,2,"div",[["class","mat-slider-thumb-label"]],null,null,null,null,null)),(t()(),i["\u0275eld"](16,0,null,null,1,"span",[["class","mat-slider-thumb-label-text"]],null,null,null,null,null)),(t()(),i["\u0275ted"](17,null,["",""]))],function(t,e){var n=e.component;t(e,4,0,n._trackBackgroundStyles),t(e,6,0,n._trackFillStyles),t(e,8,0,n._ticksContainerStyles),t(e,10,0,n._ticksStyles),t(e,12,0,n._thumbContainerStyles)},function(t,e){t(e,17,0,e.component.displayValue)})}var wc=function(){function t(t,e,n,i,r){this.activeObject=t,this.history=e,this.controls=n,this.overlayPanel=i,this.filterTool=r,this.name="filterOptions",this.colorFormControl=new Rn}return t.prototype.applyFilterValue=function(t,e){this.filterTool.applyValue(this.selectedFilter,t,e)},t}(),xc=function(){function t(t){this.canvasState=t,this.defaults={fill:"#eee",opacity:1,backgroundColor:"#000",stroke:{width:.1,color:"#000"},shadow:{color:"#000",blur:0,offsetX:3,offsetY:3},text:{align:"initial",underline:!1,linethrough:!1,fontStyle:"normal",fontFamily:"Times New Roman",fontWeight:400}},this.model=new jn({fill:new Rn("#eee"),opacity:new Rn(1),backgroundColor:new Rn("#000"),stroke:new jn({width:new Rn(.1),color:new Rn("#000")}),shadow:new jn({color:new Rn("#000"),blur:new Rn(0),offsetX:new Rn(3),offsetY:new Rn(3)}),text:new jn({align:new Rn("initial"),underline:new Rn(!1),linethrough:new Rn(!1),fontStyle:new Rn("normal"),fontFamily:new Rn("Times New Roman"),fontWeight:new Rn(400)})}),window.activeObject=this}return t.prototype.getControl=function(t){return this.model.get(t)},t.prototype.isText=function(){var t=this.get();return t&&"i-text"===t.type},t.prototype.isEditing=function(){return this.isText()&&this.get().isEditing},t.prototype.setValue=function(t,e){this.getControl(t).setValue(e)},t.prototype.getValue=function(t){return this.getControl(t).value},t.prototype.get=function(){var t=this.canvasState.fabric.getActiveObject();return t&&t.name?t.name.indexOf("crop.")>-1||t.name.indexOf("round.")>-1?null:t:null},t.prototype.move=function(t,e){var n=this.get();n&&(n.set(t,n[t]+e),this.canvasState.fabric.requestRenderAll())},t.prototype.bringToFront=function(){var t=this.get();t&&(t.bringToFront(),this.canvasState.fabric.requestRenderAll())},t.prototype.sendToBack=function(){var t=this.get();t&&(t.sendToBack(),this.canvasState.fabric.requestRenderAll())},t.prototype.flipHorizontal=function(){var t=this.get();t&&(t.flipX=!t.flipX,this.canvasState.fabric.requestRenderAll())},t.prototype.getId=function(){var t=this.get();return t&&t.data?t.data.id:null},t.prototype.init=function(){this.bindToObjectSelected(),this.bindToModelChange(),this.bindToObjectDeselected()},t.prototype.bindToObjectDeselected=function(){var t=this;this.canvasState.fabric.on("selection:cleared",function(e){t.model.patchValue(t.defaults,{emitEvent:!1})})},t.prototype.bindToObjectSelected=function(){var t=this;this.canvasState.fabric.on("selection:created",function(e){var n=e.target,i=n.shadow||{},r={fill:n.fill,opacity:n.opacity,backgroundColor:n.backgroundColor,stroke:{color:n.stroke,width:n.strokeWidth},shadow:{color:i.color||t.getControl("shadow.color").value,blur:i.blur||t.getControl("shadow.blur").value,offsetX:i.offsetX||t.getControl("shadow.offsetX").value,offsetY:i.offsetY||t.getControl("shadow.offsetY").value},text:{}};"i-text"===n.type&&(r.text={align:n.textAlign,underline:n.underline,linethrough:n.strikeThrough,fontStyle:n.fontStyle,fontFamily:n.fontFamily,fontWeight:n.fontWeight}),t.model.patchValue(r,{emitEvent:!1})})},t.prototype.bindToModelChange=function(){var t=this;this.getControl("fill").valueChanges.subscribe(function(e){var n=t.get();
1n&&"sticker"===n.name&&n.forEachObject(function(t){return t.set("fill",e)})}),this.model.valueChanges.subscribe(function(e){var n=t.get();if(n){var i={strokeWidth:e.stroke.width,stroke:e.stroke.color,fill:e.fill,opacity:e.opacity,backgroundColor:e.backgroundColor};t.isText()&&(i.textAlign=e.text.align,i.underline=e.text.underline,i.linethrough=e.text.linethrough,i.fontStyle=e.text.fontStyle,i.fontFamily=e.text.fontFamily),n.set(i),t.applyShadow(n),t.canvasState.fabric.requestRenderAll()}})},t.prototype.applyShadow=function(t){var e=this.model.get("shadow").value,n=t.shadow;e.blur&&e.color&&(n?(n.blur=e.blur,n.color=e.color,n.offsetX=e.offsetX,n.offsetY=e.offsetY):t.setShadow(new g.fabric.Shadow(e)))},t.prototype.delete=function(){var t=this.get();t&&(this.canvasState.fabric.remove(t),this.canvasState.fabric.requestRenderAll())},t.prototype.deselect=function(){this.canvasState.fabric.discardActiveObject(),this.canvasState.fabric.requestRenderAll()},t}(),Cc=[{name:"grayscale"},{name:"blackWhite",displayName:"Black & White"},{name:"sharpen",uses:"Convolute",matrix:[0,-1,0,-1,5,-1,0,-1,0]},{name:"invert"},{name:"vintage"},{name:"polaroid"},{name:"kodachrome"},{name:"technicolor"},{name:"brownie"},{name:"sepia"},{name:"removeColor",displayName:"Remove Color",options:{distance:{type:"slider",current:.1,min:0,max:1,step:.01},color:{current:"#fff",type:"colorPicker"}}},{name:"brightness",options:{brightness:{type:"slider",current:.1,min:-1,max:1,step:.1}}},{name:"gamma",options:{red:{type:"slider",current:.1,min:.2,max:2.2,step:.003921},green:{type:"slider",current:.1,min:.2,max:2.2,step:.003921},blue:{type:"slider",current:.1,min:.2,max:2.2,step:.003921}},apply:function(t,e,n){t.gamma=[t.red,t.green,t.blue]}},{name:"noise",options:{noise:{type:"slider",current:40,max:600}}},{name:"pixelate",options:{blocksize:{type:"slider",min:1,max:40,current:6}}},{name:"blur",uses:"Convolute",matrix:[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9]},{name:"emboss",uses:"Convolute",matrix:[1,1,1,1,.7,-1,-1,-1,-1]},{name:"blendColor",displayName:"blend",options:{mode:{current:"add",type:"select",available:["add","multiply","subtract","diff","screen","lighten","darken"]},alpha:{type:"slider",current:.5,min:.1,max:1,step:.1},color:{type:"colorPicker",current:"#FF4081"}}}],Sc=function(){function t(t){this.canvas=t,this.filtersList=Cc}return t.prototype.apply=function(t){if(this.applied(t.name))return this.remove(t);var e=this.create(t);
1this.getImages().forEach(function(t){t.filters.push(e),t.applyFilters()}),this.canvas.render()},t.prototype.remove=function(t){var e=this;this.canvas.state.loading=!0,this.getImages().forEach(function(n){var i=e.findFilterIndex(t.name,n.filters);n.filters.splice(i,1),n.applyFilters()}),this.canvas.render(),this.canvas.state.loading=!1},t.prototype.getAll=function(){return this.filtersList},t.prototype.getByName=function(t){return this.filtersList.find(function(e){return e.name===t})},t.prototype.applied=function(t){var e=this.canvas.getMainImage();if(e)return this.findFilterIndex(t,e.filters)>-1},t.prototype.findFilterIndex=function(t,e){var n=this;if(e.length){var i=this.getByName(t);return e.findIndex(function(e){var r=e.type.toLowerCase();return r===t.toLowerCase()||"convolute"===r&&n.matrixAreEqual(i.matrix,e.matrix)})}},t.prototype.matrixAreEqual=function(t,e){if(!t||!e||t.length!==e.length)return!1;for(var n=t.length;n--;)if(t[n]!==e[n])return!1;return!0},t.prototype.applyValue=function(t,e,n){this.canvas.state.loading=!0,this.getImages().forEac
1h(function(i){var r=i.filters.find(function(e){return e.type.toLowerCase()===t.name.toLowerCase()});r[e]=n,t.apply&&t.apply(r,e,n),i.applyFilters()}),this.canvas.render()},t.prototype.create=function(t){var e;if(t.uses)e=new(g.fabric.Image.filters[m.ucFirst(t.uses)])({matrix:t.matrix});else{var n={};for(var i in t.options)n[i]=t.options[i].current;e=new(g.fabric.Image.filters[m.ucFirst(t.name)])(n)}return e},t.prototype.addCustom=function(t,e,n){g.fabric.Image.filters[t]=g.fabric.util.createClass(g.fabric.Image.filters.BaseFilter,e),g.fabric.Image.filters[t].fromObject=g.fabric.Image.filters.BaseFilter.fromObject,Cc.push({name:t,options:n})},t.prototype.getImages=function(){return this.canvas.fabric().getObjects("image")},t}(),kc=i["\u0275crt"]({encapsulation:2,styles:[["filter-controls-drawer{display:block}filter-controls-drawer .content{flex-direction:column}filter-controls-drawer .content.blendColor .input-container{display:none}@media only screen and (max-width:768px){filter-controls-drawer .content{justify-content:flex-start}}"]],data:{}});function Ec(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,null,null,null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,5,"color-widget",[],[[2,"compact",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0;return"ngModelChange"===e&&(i=!1!==t.component.applyFilterValue("color",n)&&i),i},mc,fc)),i["\u0275did"](2,49152,null,0,pc,[Pi,b],{compact:[0,"compact"]},null),i["\u0275prd"](1024,null,He,function(t){return[t]},[pc]),i["\u0275did"](4,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](6,16384,null,0,On,[[4,Ze]],null,null)],function(t,e){var n=e.component;t(e,2,0,!0),t(e,4,0,n.colorFormControl)},function(t,e){t(e,1,0,i["\u0275nov"](e,2).compact,i["\u0275nov"](e,6).ngClassUntouched,i["\u0275nov"](e,6).ngClassTouched,i["\u0275nov"](e,6).ngClassPristine,i["\u0275nov"](e,6).ngClassDirty,i["\u0275nov"](e,6).ngClassValid,i["\u0275nov"](e,6).ngClassInvalid,i["\u0275nov"](e,6).ngClassPending)})}function Oc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,4,"o
1ption",[["trans",""]],null,null,null,null,null)),i["\u0275did"](1,147456,null,0,sn,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,cn,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](3,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](4,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,4,0,e.context.$implicit)})}function Tc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"div",[["class","input-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,2,"label",[["trans",""]],[[8,"htmlFor",0]],null,null,null,null)),i["\u0275did"](2,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](3,null,["",""])),(t()(),i["\u0275eld"](4,0,null,null,2,"select",[],[[8,"id",0]],[[null,"change"]],function(t,e,n){var i=!0;return"change"===e&&(i=!1!==t.component.applyFilterValue(t.parent.context.$implicit.key,n.target.value)&&i),i},null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Oc)),i["\u0275did"](6,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,6,0,e.parent.context.$implicit.value.available)},function(t,e){t(e,1,0,e.parent.context.$implicit.key),t(e,3,0,e.parent.context.$implicit.key),t(e,4,0,e.parent.context.$implicit.key)})}function Ac(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](2,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](3,null,["",""])),(t()(),i["\u0275eld"](4,0,null,null,2,"mat-slider",[["class","mat-slider"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,6)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,6)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,6)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,6)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,6)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,6)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,6)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,6)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,6)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.applyFilterValue(t.parent.context.$implicit.key,n.value)&&r),r},_c,bc)),i["\u0275prd"](5120,null,He,function(t){return[t]},[vc]),i["\u0275did"](6,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"],step:[2,"step"],value:[3,"value"]},{input:"input"})],function(t,e){t(e,6,0,e.parent.context.$implicit.value.max||100,e.parent.context.$implicit.value.min||0,e.parent.context.$implicit.value.step||1,e.parent.context.$implicit.value.current)},function(t,e){t(e,3,0,e.parent.context.$implicit.key),t(e,4,1,[i["\u0275nov"](e,6).tabIndex,i["\u0275nov"](e,6).disabled,i["\u0275nov"](e,6).max,i["\u0275nov"](e,6).min,i["\u0275nov"](e,6).value,i["\u0275nov"](e,6).vertical?"vertical":"horizontal",i["\u0275nov"](e,6).disabled,i["\u0275nov"](e,6).tickInterval,!i["\u0275nov"](e,6).vertical,i["\u0275nov"](e,6)._invertAxis,i["\u0275nov"](e,6)._isSliding,i["\u0275nov"](e,6).thumbLabel,i["\u0275nov"](e,6).vertical,i["\u0275nov"](e,6)._isMinValue,i["\u0275nov"](e,6).disabled||i["\u0275nov"](e,6)._isMinValue&&i["\u0275nov"](e,6)._thumbGap&&i["\u0275nov"](e,6)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,6)._animationMode])})}function Dc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,null,null,null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Ec)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Tc)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Ac)),i["\u0275did"](6,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]}
1,null),(t()(),i["\u0275and"](0,null,null,0))],function(t,e){t(e,2,0,"colorPicker"===e.context.$implicit.value.type),t(e,4,0,"select"===e.context.$implicit.value.type),t(e,6,0,"slider"===e.context.$implicit.value.type)},null)}function Pc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,null,null,null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,4,"div",[["class","content"]],null,null,null,null,null)),i["\u0275did"](2,278528,null,0,M.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),i["\u0275and"](16777216,null,null,2,null,Dc)),i["\u0275did"](4,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275ppd"](5,1)],function(t,e){var n=e.component;t(e,2,0,"content",n.selectedFilter.name),t(e,4,0,i["\u0275unv"](e,4,0,t(e,5,0,i["\u0275nov"](e.parent,0),n.selectedFilter.options)))},null)}function Ic(t){return i["\u0275vid"](0,[i["\u0275pid"](0,mr,[]),(t()(),i["\u0275and"](16777216,null,null,1,null,Pc)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.selectedFilter)},null)}var Rc=function(){function t(t,e){this.history=t,this.controls=e,this.dirty=!1}return t.prototype.close=function(){this.controls.closeCurrentPanel(),this.dirty&&(this.history.reload(),this.dirty=!1)},t.prototype.apply=function(){this.controls.closeCurrentPanel(),this.saveChanges()},t.prototype.saveChanges=function(){this.dirty&&(this.addChangesToHistory(),this.dirty=!1)},t.prototype.addChangesToHistory=function(){var t=this.name.replace(/([A-Z])/g," $1");this.history.add("applied: "+t,this.controls.getIconName(this.name))},t}(),jc=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Mc=function(t){function e(e,n,i,r){var o=t.call(this,i,r)||this;return o.settings=e,o.filterTool=n,o.history=i,o.controls=r,o.name="filter",o}return jc(e,t),e.prototype.apply=function(){this.controls.closeAllPanels(),t.prototype.apply.call(this)},e.prototype.toggleFilter=function(t){this.dirty=!0,this.filterTool.apply(t)},e.prototype.filterApplied=function(t){return this.filterTool.applied(t)},e.prototype.getFilterImage=function(t){return this.settings.getAssetUrl("images/filters/square/"+t.name.replace(" ","-")+".jpg")},e.prototype.removeFilter=function(t){this.dirty=!0,this.filterTool.remove(t)},e.prototype.showFilterConfig=function(t){this.dirty=!0,this.selectedFilter=t,this.controls.openPanel("filterControls")},e}(Rc),Fc=i["\u0275crt"]({encapsulation:2,styles:[["filter-drawer{display:block;width:100%}filter-drawer.controls-drawer>.content{justify-content:flex-start}filter-drawer .button-with-image{position:relative}filter-drawer .button-with-image img{border-radius:4px;width:65px;height:65px}filter-drawer .button-with-image .bottom-label{margin-top:3px;font-size:1.1rem}"]],data:{}});function Nc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(t.component.showFilterConfig(t.parent.parent.context.$implicit),i=!1!==n.stopPropagation()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","settings"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,3,0,"settings")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Bc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"div",[["class","overlay"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(t.component.removeFilter(t.parent.context.$implicit),i=!1!==n.stopPropagation()&&i),i},Kl,Gl)),i["\u0275did"](2,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](3,0,null,0,1,"svg-icon",[["name","cancel"]],null,null,null,br,yr)),i["\u0275did"](4,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Nc)),i["\u0275did"](6,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,4,0,"cancel"),t(e,6,0,e.parent.context.$implicit.options)},function(t,e){t(e,1,0,i["\u0275nov"](e,2).disabled||null,"NoopAnimations"===i["\u0275nov"](e,2)._animationMode)})}function Vc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.toggleFilter(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"div",[["class","image-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,0,"img",[["alt","Filter preview"]],[[8,"src",4]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Bc)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](5,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](6,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](7,null,["",""]))],function(t,e){t(e,4,0,e.component.filterApplied(e.context.$implicit.name))},function(t,e){t(e,2,0,e.component.getFilterImage(e.context.$implicit)),t(e,7,0,e.context.$implicit.displayName||e.context.$implicit.name)})}function Lc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Vc)),i["\u0275did"](2,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275and"](0,null,null,0))],function(t,e){t(e,2,0,e.component.filterTool.getAll())},null)}function zc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"filter-controls-drawer",[["class","controls-drawer"]],null,null,null,Ic,kc)),i["\u0275did"](1,49152,null,0,wc,[xc,ji,Ri,Pi,Sc],{selectedFilter:[0,"selectedFilter"]},null)],function(t,e){t(e,1,0,e.component.selectedFilter)},null)}function Hc(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Lc)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,zc)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,!n.controls.panelIsVisible("filterControls")),t(e,4,0,n.controls.panelIsVisible("filterControls"))},null)}var Wc=new i.InjectionToken("mat-checkbox-click-action"),Uc=0,Yc=function(){var t={Init:0,Checked:1,Unchecked:2,Indeterminate:3};return t[t.Init]="Init",t[t.Checked]="Checked",t[t.Unchecked]="Unchecked",t[t.Indeterminate]="Indeterminate",t}(),Xc=function(t){function e(e,n,r,o,a,s){var l=t.call(this,e)||this;return l._changeDetectorRef=n,l._focusMonitor=r,l._clickAction=a,l._animationMode=s,l.ariaLabel="",l.ariaLabelledby=null,l._uniqueId="mat-checkbox-"+ ++Uc,l.id=l._uniqueId,l.labelPosition="after",l.name=null,l.change=new i.EventEmitter,l.indeterminateChange=new i.EventEmitter,l._onTouched=function(){},l._currentAnimationClass="",l._currentCheckState=Yc.Init,l._controlValueAccessorChangeFn=function(){},l._checked=!1,l._disabled=!1,l._indeterminate=!1,l.tabIndex=parseInt(o)||0,l}return Object(D.b)(e,t),Object.defineProperty(e.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Fr(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var t=this;this._focusMonitor.monitor(this._inputElement.nativeElement).subscribe(function(e){return t._onInputFocusChange(e)})},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement)},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){t!=this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=t,e&&(this._transitionCheckState(this._indeterminate?Yc.Indeterminate:this.checked?Yc.Checked:Yc.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},e.prototype.writeValue=function(t){this.checked=!!t},e.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t},e.prototype._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"},e.prototype._transitionCheckState=function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0&&n.classList.add(this._currentAnimationClass))},e.prototype._emitChangeEvent=function(){var t=new function(){};t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},e.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null),this._onTouched()):this._focusRipple=this.ripple.launch(0,0,{persistent:!0})},e.prototype.toggle=function(){this.checked=!this.checked},e.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?Yc.Checked:Yc.Unchecked),this._emitChangeEvent())}
1,e.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},e.prototype._onInteractionEvent=function(t){t.stopPropagation()},e.prototype._getAnimationClassForCheckStateTransition=function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case Yc.Init:if(e===Yc.Checked)n="unchecked-checked";else{if(e!=Yc.Indeterminate)return"";n="unchecked-indeterminate"}break;case Yc.Unchecked:n=e===Yc.Checked?"unchecked-checked":"unchecked-indeterminate";break;case Yc.Checked:n=e===Yc.Unchecked?"checked-unchecked":"checked-indeterminate";break;case Yc.Indeterminate:n=e===Yc.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},e}(Zr(Gr(Kr(qr(function(t){this._elementRef=t})),"accent"))),qc=function(){},Gc=i["\u0275crt"]({encapsulation:2,styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-checkmark,.mat-checkbox-mixedmark{width:calc(100% - 4px)}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox-layout{cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-inner-container{display:inline-block;height:20px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:20px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.66667px}.mat-checkbox-mixedmark{height:2px;opacity:0;transform:scaleX(0) rotate(0)}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}
1.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-ripple{position:absolute;left:calc(50% - 25px);top:calc(50% - 25px);height:50px;width:50px;z-index:1;pointer-events:none}"],data:{}});function Kc(t){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{_inputElement:0}),i["\u0275qud"](402653184,2,{ripple:0}),(t()(),i["\u0275eld"](2,0,[["label",1]],null,15,"label",[["class","mat-checkbox-layout"]],[[1,"for",0]],null,null,null,null)),(t()(),i["\u0275eld"](3,0,null,null,9,"div",[["class","mat-checkbox-inner-container"]],[[2,"mat-checkbox-inner-container-no-side-margin",null]],null,null,null,null)),(t()(),i["\u0275eld"](4,0,[[1,0],["input",1]],null,0,"input",[["class","mat-checkbox-input cdk-visually-hidden"],["type","checkbox"]],[[8,"id",0],[8,"required",0],[8,"checked",0],[1,"value",0],[8,"disabled",0],[1,"name",0],[8,"tabIndex",0],[8,"indeterminate",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-checked",0]],[[null,"change"],[null,"click"]],function(t,e,n){var i=!0,r=t.component;return"change"===e&&(i=!1!==r._onInteractionEvent(n)&&i),"click"===e&&(i=!1!==r._onInputClick(n)&&i),i},null,null)),(t()(),i["\u0275eld"](5,0,null,null,2,"div",[["class","mat-checkbox-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),i["\u0275did"](6,212992,[[2,4]],0,oo,[i.ElementRef,i.NgZone,Hr,[2,ro],[2,Xl]],{centered:[0,"centered"],radius:[1,"radius"],animation:[2,"animation"],disabled:[3,"disabled"],trigger:[4,"trigger"]},null),i["\u0275pod"](7,{enterDuration:0}),(t()(),i["\u0275eld"](8,0,null,null,0,"div",[["class","mat-checkbox-frame"]],null,null,null,null,null)),(t()(),i["\u0275eld"](9,0,null,null,3,"div",[["class","mat-checkbox-background"]],null,null,null,null,null)),(t()(),i["\u0275eld"](10,0,null,null,1,":svg:svg",[[":xml:space","preserve"],["class","mat-checkbox-checkmark"],["focusable","false"],["version","1.1"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),i["\u0275eld"](11,0,null,null,0,":svg:path",[["class","mat-checkbox-checkmark-path"],["d","M4.1,12.7 9,17.6 20.3,6.3"],["fill","none"],["stroke","white"]],null,null,null,null,null)),(t()(),i["\u0275eld"](12,0,null,null,0,"div",[["class","mat-checkbox-mixedmark"]
1],null,null,null,null,null)),(t()(),i["\u0275eld"](13,0,[["checkboxLabel",1]],null,4,"span",[["class","mat-checkbox-label"]],null,[[null,"cdkObserveContent"]],function(t,e,n){var i=!0;return"cdkObserveContent"===e&&(i=!1!==t.component._onLabelTextChange()&&i),i},null,null)),i["\u0275did"](14,1196032,null,0,Lu,[Vu,i.ElementRef,i.NgZone],null,{event:"cdkObserveContent"}),(t()(),i["\u0275eld"](15,0,null,null,1,"span",[["style","display:none"]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["\xa0"])),i["\u0275ncd"](null,0)],function(t,e){var n=e.component;t(e,6,0,!0,25,t(e,7,0,150),n._isRippleDisabled(),i["\u0275nov"](e,2))},function(t,e){var n=e.component;t(e,2,0,n.inputId),t(e,3,0,!i["\u0275nov"](e,13).textContent||!i["\u0275nov"](e,13).textContent.trim()),t(e,4,1,[n.inputId,n.required,n.checked,n.value,n.disabled,n.name,n.tabIndex,n.indeterminate,n.ariaLabel||null,n.ariaLabelledby,n._getAriaChecked()]),t(e,5,0,i["\u0275nov"](e,6).unbounded)})}var Zc=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Qc=function(t){function e(e,n,i,r,o){var a=t.call(this,n,r)||this;return a.canvas=e,a.history=n,a.resizeTool=i,a.controls=r,a.toast=o,a.name="resize",a.usePercentages=!1,a.maintainAspectRatio=!0,a.dirty=!0,a}return Zc(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=Math.floor(t),this.aspectToHeight(this._width)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=Math.floor(t),this.aspectToWidth(this._height)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.width=this.usePercentages?100:this.canvas.state.original.width,this.height=this.usePercentages?100:this.canvas.state.original.height},e.prototype.apply=function(){this.resizeTool.apply(this.width,this.height,this.usePercentages),t.prototype.apply.call(this),this.toast.open("Photo resized.")},e.prototype.togglePercentages=function(){this.usePercentages?(this.width=100,this.height=100):(this.width=this.canvas.state.original.width,this.height=this.canvas.state.original.height)},e.prototype.aspectToWidth=function(t){if(this.maintainAspectRatio)if(this.usePercentages)this._width=t;else{var e=parseFloat((this.canvas.state.original.height/t).toPrecision(3));this._width=Math.floor(this.canvas.state.original.width/e)}},e.prototype.aspectToHeight=function(t){if(this.maintainAspectRatio)if(this.usePercentages)this._height=t;else{var e=parseFloat((this.canvas.state.original.width/t).toPrecision(3));this._height=Math.floor(this.canvas.state.original.height/e)}},e}(Rc),Jc=function(){function t(t){this.canvas=t}return t.prototype.apply=function(t,e,n){void 0===n&&(n=!1);var i,r,o=Math.ceil(this.canvas.state.original.width),a=Math.ceil(this.canvas.state.original.height),s=Math.ceil(t),l=Math.ceil(e);n?(i=t/100,r=e/100):(i=t/this.canvas.state.original.width,r=e/this.canvas.state.original.height),o===s&&a===l||this.resize(i,r)},t.prototype.resize=function(t,e){this.canvas.zoom.set(1,!1);var n=Math.round(this.canvas.state.original.height*e),i=Math.round(this.canvas.state.original.width*t);this.canvas.fabric().setHeight(n),this.canvas.fabric().setWidth(i),this.canvas.state.original.width=i,this.canvas.state.original.height=n,this.canvas.fabric().getObjects().forEach(function(n){var i=n.scaleY*e,r=n.left*t,o=n.top*e;n.scaleX=n.scaleX*t,n.scaleY=i,n.left=r,n.top=o,n.setCoords()}),this.canvas.zoom.fitToScreen(),this.canvas.render()},t}(),$c=i["\u0275crt"]({encapsulation:2,styles:[["resize-drawer{display:block}resize-drawer .input-container{display:inline-block;width:auto;margin:0 15px;text-align:center}resize-drawer .input-container.checkbox-container{text-align:left}resize-drawer .input-container>input{width:95px;height:45px;border-radius:3px}resize-drawer .input-container>label{padding:0}resize-drawer .input-container>.mat-checkbox{display:block}resize-drawer .input-container>.mat-checkbox:first-of-type{margin-bottom:8px}resize-drawer form{margin:0}@media only screen and (max-width:768px){resize-drawer .content{flex-direction:column;height:100%}resize-drawer .input-container>input{height:40px}resize-drawer .input-container>label{font-size:16px}resize-drawer .input-container>.percentages-checkbox{display:none}resize-drawer .input-container>.aspect-ratio-checkbox{margin:8px}resize-drawer .input-container>.aspect-ratio-checkbox label{padding:0}}"]],data:{}});function th(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,48,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,30,"form",[["ngNativeValidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngSubmit"],[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0,o=t.component;return"submit"===e&&(r=!1!==i["\u0275nov"](t,2).onSubmit(n)&&r),"reset"===e&&(r=!1!==i["\u0275nov"](t,2).onReset()&&r),"ngSubmit"===e&&(r=!1!==o.apply()&&r),r}
1,null,null)),i["\u0275did"](2,4210688,null,0,Nn,[[8,null],[8,null]],null,{ngSubmit:"ngSubmit"}),i["\u0275prd"](2048,null,je,null,[Nn]),i["\u0275did"](4,16384,null,0,Tn,[[4,je]],null,null),(t()(),i["\u0275eld"](5,0,null,null,12,"div",[["class","input-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,2,"label",[["for","width"],["trans",""]],null,null,null,null,null)),i["\u0275did"](7,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Width"])),(t()(),i["\u0275eld"](9,0,null,null,8,"input",[["id","width"],["name","width"],["required",""],["type","number"]],[[8,"min",0],[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,10)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,10).onTouched()&&r),"compositionstart"===e&&(r=!1!==i["\u0275nov"](t,10)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i["\u0275nov"](t,10)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==i["\u0275nov"](t,11).onChange(n.target.value)&&r),"input"===e&&(r=!1!==i["\u0275nov"](t,11).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,11).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(o.width=n)&&r),r},null,null)),i["\u0275did"](10,16384,null,0,Ye,[i.Renderer2,i.ElementRef,[2,Ue]],null,null),i["\u0275did"](11,16384,null,0,Ge,[i.Renderer2,i.ElementRef],null,
1null),i["\u0275did"](12,16384,null,0,Kn,[],{required:[0,"required"]},null),i["\u0275prd"](1024,null,Fe,function(t){return[t]},[Kn]),i["\u0275prd"](1024,null,He,function(t,e){return[t,e]},[Ye,Ge]),i["\u0275did"](15,671744,null,0,zn,[[2,je],[6,Fe],[8,null],[6,He]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](17,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](18,0,null,null,12,"div",[["class","input-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](19,0,null,null,2,"label",[["for","height"],["trans",""]],null,null,null,null,null)),i["\u0275did"](20,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Height"])),(t()(),i["\u0275eld"](22,0,null,null,8,"input",[["id","height"],["name","height"],["required",""],["type","number"]],[[8,"min",0],[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,23)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,23).onTouched()&&r),"compositionstart"===e&&(r=!1!==i["\u0275nov"](t,23)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i["\u0275nov"](t,23)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==i["\u0275nov"](t,24).onChange(n.target.value)&&r),"input"===e&&(r=!1!==i["\u0275nov"](t,24).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,24).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(o.height=n)&&r),r},null,null)),i["\u0275did"](23,16384,null,0,Ye,[i.Renderer2,i.ElementRef,[2,Ue]],null,null),i["\u0275did"](24,16384,null,0,Ge,[i.Renderer2,i.ElementRef],null,
1null),i["\u0275did"](25,16384,null,0,Kn,[],{required:[0,"required"]},null),i["\u0275prd"](1024,null,Fe,function(t){return[t]},[Kn]),i["\u0275prd"](1024,null,He,function(t,e){return[t,e]},[Ye,Ge]),i["\u0275did"](28,671744,null,0,zn,[[2,je],[6,Fe],[8,null],[6,He]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](30,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](31,0,null,null,0,"button",[["class","hidden"],["type","submit"]],null,null,null,null,null)),(t()(),i["\u0275eld"](32,0,null,null,16,"div",[["class","input-container checkbox-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](33,0,null,null,7,"mat-checkbox",[["class","aspect-ratio-checkbox mat-checkbox"],["trans",""]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0;return"ngModelChange"===e&&(i=!1!==(t.component.maintainAspectRatio=n)&&i),i},Kc,Gc)),i["\u0275did"](34,4374528,null,0,Xc,[i.ElementRef,i.ChangeDetectorRef,Oa,[8,null],[2,Wc],[2,Xl]],null,null),i["\u0275prd"](1024,null,He,function(t){return[t]},[Xc]),i["\u0275did"](36,671744,null,0,zn,[[8,null],[8,null],[8,null],[6,He]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](38,16384,null,0,On,[[4,Ze]],null,null),i["\u0275did"](39,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,0,["Maintain Aspect Ratio"])),(t()(),i["\u0275eld"](41,0,null,null,7,"mat-checkbox",[["class","percentages-checkbox mat-checkbox"],["trans",""]],[[8,"id",0],[2,"mat-checkbox-indeterminate",null],[2,"mat-checkbox-checked",null],[2,"mat-checkbox-disabled",null],[2,"mat-checkbox-label-before",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0,r=t.component;return"ngModelChange"===e&&(i=!1!==(r.usePercentages=n)&&i),"ngModelChange"===e&&(i=!1!==r.togglePercentages()&&i),i},Kc,Gc)),i["\u0275did"](42,4374528,null,0,Xc,[i.ElementRef,i.ChangeDetectorRef,Oa,[8,null],[2,Wc],[2,Xl]],null,null),i["\u0275prd"](1024,null,He,function(t){return[t]},[Xc]),i["\u0275did"](44,671744,null,0,zn,[[8,null],[8,null],[8,null],[6,He]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](46,16384,null,0,On,[[4,Ze]],null,null),i["\u0275did"](47,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,0,["Use Percentages"]))],function(t,e){var n=e.component;t(e,12,0,""),t(e,15,0,"width",n.width),t(e,25,0,""),t(e,28,0,"height",n.height),t(e,36,0,n.maintainAspectRatio),t(e,44,0,n.usePercentages)},function(t,e){t(e,1,0,i["\u0275nov"](e,4).ngClassUntouched,i["\u0275nov"](e,4).ngClassTouched,i["\u0275nov"](e,4).ngClassPristine,i["\u0275nov"](e,4).ngClassDirty,i["\u0275nov"](e,4).ngClassValid,i["\u0275nov"](e,4).ngClassInvalid,i["\u0275nov"](e,4).ngClassPending),t(e,9,0,1,i["\u0275nov"](e,12).required?"":null,i["\u0275nov"](e,17).ngClassUntouched,i["\u0275nov"](e,17).ngClassTouched,i["\u0275nov"](e,17).ngClassPristine,i["\u0275nov"](e,17).ngClassDirty,i["\u0275nov"](e,17).ngClassValid,i["\u0275nov"](e,17).ngClassInvalid,i["\u0275nov"](e,17).ngClassPending),t(e,22,0,1,i["\u0275nov"](e,25).required?"":null,i["\u0275nov"](e,30).ngClassUntouched,i["\u0275nov"](e,30).ngClassTouched,i["\u0275nov"](e,30).ngClassPristine,i["\u0275nov"](e,30).ngClassDirty,i["\u0275nov"](e,30).ngClassValid,i["\u0275nov"](e,30).ngClassInvalid,i["\u0275nov"](e,30).ngClassPending),t(e,33,1,[i["\u0275nov"](e,34).id,i["\u0275nov"](e,34).indeterminate,i["\u0275nov"](e,34).checked,i["\u0275nov"](e,34).disabled,"before"==i["\u0275nov"](e,34).labelPosition,"NoopAnimations"===i["\u0275nov"](e,34)._animationMode,i["\u0275nov"](e,38).ngClassUntouched,i["\u0275nov"](e,38).ngClassTouched,i["\u0275nov"](e,38).ngClassPristine,i["\u0275nov"](e,38).ngClassDirty,i["\u0275nov"](e,38).ngClassValid,i["\u0275nov"](e,38).ngClassInvalid,i["\u0275nov"](e,38).ngClassPending]),t(e,41,1,[i["\u0275nov"](e,42).id,i["\u0275nov"](e,42).indeterminate,i["\u0275nov"](e,42).checked,i["\u0275nov"](e,42).disabled,"before"==i["\u0275nov"](e,42).labelPosition,"NoopAnimations"===i["\u0275nov"](e,42)._animationMode,i["\u0275nov"](e,46).ngClassUntouched,i["\u0275nov"](e,46).ngClassTouched,i["\u0275nov"](e,46).ngClassPristine,i["\u0275nov"](e,46).ngClassDirty,i["\u0275nov"](e,46).ngClassValid,i["\u0275nov"](e,46).ngClassInvalid,i["\u0275nov"](e,46).ngClassPending])})}var eh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),nh=function(t){function e(e,n,i){var r=t.call(this,e,i)||this;return r.history=e,r.transformTool=n,r.controls=i,r.name="transform",r}return eh(e,t),e.prototype.rotateLeft=function(){this.transformTool.rotate("basic",-90),this.dirty=!0},e.prototype.rotateRight=function(){this.transformTool.rotate("basic",90),this.dirty=!0},e.prototype.skew=function(t){this.transformTool.rotate("skew",t.value),this.dirty=!0},e.prototype.flipHorizontal=function(){this.transformTool.flip("horizontal"),this.dirty=!0},e.prototype.flipVertical=function(){this.transformTool.flip("vertical"),this.dirty=!0},e}(Rc),ih=function(){function t(t){this.canvas=t}return t.prototype.rotate=function(t,e,n){"basic"===t?this.rotateFixed(e):this.rotateFree(e,n)},t.prototype.flip=function(t){var e="horizontal"===t?"flipY":"flipX";
1this.canvas.fabric().forEachObject(function(t){t[e]=!t[e]}),this.canvas.render()},t.prototype.rotateFixed=function(t){this.canvas.zoom.set(1);var e=(this.canvas.getMainImage().angle+t)%360,n=Math.abs(this.canvas.getMainImage().width*Math.sin(e*Math.PI/180))+Math.abs(this.canvas.getMainImage().height*Math.cos(e*Math.PI/180)),i=Math.abs(this.canvas.getMainImage().height*Math.sin(e*Math.PI/180))+Math.abs(this.canvas.getMainImage().width*Math.cos(e*Math.PI/180));this.canvas.resize(i,n),this.canvas.getMainImage().viewportCenter(),this.canvas.fabric().forEachObject(function(e){e.rotate((e.angle+t)%360),e.setCoords()}),this.canvas.render(),this.canvas.zoom.fitToScreen()},t.prototype.rotateFree=function(t,e){var n=this;if(!(t>360||t<0)){var i=!1;this.canvas.fabric().forEachObject(function(r){e&&"left"===e?t=r.angle-90:e&&"right"===e&&(t=r.angle+90),"center"===r.originX&&"center"===r.originY||!r.centeredRotation||(n.setOriginToCenter(r),i=!0),r.angle=t=t>360?90:t<0?270:t,r.setCoords(),i&&n.setCenterToOrigin(r)}),this.canvas.render()}},t.prototype.setOriginToCenter=function(t){t._originalOriginX=t.originX,t._originalOriginY=t.originY;var e=t.getCenterPoint();t.set({originX:"center",originY:"center",left:e.x,top:e.y})},t.prototype.setCenterToOrigin=function(t){var e=t.translateToOriginPoint(t.getCenterPoint(),t._originalOriginX,t._originalOriginY);t.set({originX:t._originalOriginX,originY:t._originalOriginY,left:e.x,top:e.y})},t}(),rh=i["\u0275crt"]({encapsulation:2,styles:[["transform-drawer{display:block}transform-drawer .content{flex-wrap:wrap}transform-drawer .buttons-container{margin:0 25px}transform-drawer .button-with-image.small{width:55px;height:55px}transform-drawer .button-with-image.small img,transform-drawer .button-with-image.small svg-icon{width:30px;height:30px}@media only screen and (max-width:768px){transform-drawer .buttons-container{margin:0}transform-drawer .mat-slider{display:none}}"]],data:{}});function oh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,17,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,6,"div",[["class","buttons-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,2,"button",[["class","rotate-button button-with-image small"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.rotateLeft()&&i),i},null,null)),(t()(),i["\u0275eld"](3,0,null,null,1,"svg-icon",[["name","rotate-left"]],null,null,null,br,yr)),i["\u0275did"](4,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](5,0,null,null,2,"button",[["class","rotate-button button-with-image small"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.rotateRight()&&i),i},null,null)),(t()(),i["\u0275eld"](6,0,null,null,1,"svg-icon",[["name","rotate-right"]],null,null,null,br,yr)),i["\u0275did"](7,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](8,0,null,null,6,"div",[["class","buttons-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](9,0,null,null,2,"button",[["class","rotate-button button-with-image small"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.flipVertical()&&i),i},null,null)),(t()(),i["\u0275eld"](10,0,null,null,1,"svg-icon",[["name","flip-vertical-custom"]],null,null,null,br,yr)),i["\u0275did"](11,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](12,0,null,null,2,"button",[["class","rotate-button button-with-image small"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.flipHorizontal()&&i),i},null,null)),(t()(),i["\u0275eld"](13,0,null,null,1,"svg-icon",[["name","flip-horizontal-custom"]],null,null,null,br,yr)),i["\u0275did"](14,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](15,0,null,null,2,"mat-slider",[["class","mat-slider"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null]],[[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,17)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,17)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,17)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,17)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,17)._onKeyup()&&r),"mouseenter"
1===e&&(r=!1!==i["\u0275nov"](t,17)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,17)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,17)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,17)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.skew(n)&&r),r},_c,bc)),i["\u0275prd"](5120,null,He,function(t){return[t]},[vc]),i["\u0275did"](17,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"]},{input:"input"})],function(t,e){t(e,4,0,"rotate-left"),t(e,7,0,"rotate-right"),t(e,11,0,"flip-vertical-custom"),t(e,14,0,"flip-horizontal-custom"),t(e,17,0,360,0)},function(t,e){t(e,15,1,[i["\u0275nov"](e,17).tabIndex,i["\u0275nov"](e,17).disabled,i["\u0275nov"](e,17).max,i["\u0275nov"](e,17).min,i["\u0275nov"](e,17).value,i["\u0275nov"](e,17).vertical?"vertical":"horizontal",i["\u0275nov"](e,17).disabled,i["\u0275nov"](e,17).tickInterval,!i["\u0275nov"](e,17).vertical,i["\u0275nov"](e,17)._invertAxis,i["\u0275nov"](e,17)._isSliding,i["\u0275nov"](e,17).thumbLabel,i["\u0275nov"](e,17).vertical,i["\u0275nov"](e,17)._isMinValue,i["\u0275nov"](e,17).disabled||i["\u0275nov"](e,17)._isMinValue&&i["\u0275nov"](e,17)._thumbGap&&i["\u0275nov"](e,17)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,17)._animationMode])})}var ah=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),sh=function(t){function e(e,n,i,r,o){var a=t.call(this,i,r)||this;return a.cropZone=e,a.cropTool=n,a.history=i,a.controls=r,a.config=o,a.name="crop",a.aspectRatios=a.config.get("pixie.tools.crop.items"),a.dirty=!0,a}return ah(e,t),e.prototype.ngAfterViewInit=function(){var t=this;this.ratioPreviews.forEach(function(e){var n=t.cropZone.getAdjustedSize(e.nativeElement.dataset.ratio,40,30);e.nativeElement.style.width=n.width+"px",e.nativeElement.style.height=n.height+"px"})},e.prototype.ngOnInit=function(){var t=this;this.cropZone.draw(),this.updateZoneSize(),this.cropZone.resize$.subscribe(function(){return t.updateZoneSize()})},e.prototype.ngOnDestroy=function(){this.cropZone.remove()},e.prototype.apply=function(){this.cropZone.remove(),this.cropTool.apply(this.cropZone.getSize()),this.dirty=!0,t.prototype.apply.call(this)},e.prototype.applyAspectRatio=function(t){this.cropZone.changeAspectRatio(t),this.updateZoneSize()},e.prototype.updateZoneSize=function(){var t=this.cropZone.getSize();this.cropzoneHeight=Math.floor(t.height),this.cropzoneWidth=Math.floor(t.width)},e.prototype.resizeCropzone=function(){this.cropZone.resize(this.cropzoneWidth,this.cropzoneHeight)},e}(Rc),lh=function(){function t(t,e){this.canvas=t,this.canvasState=e,this.initiated=!1,this.gridColor="rgba(244,244,244,.4)",this.aspectRatio="16:9",this.resize$=new ni.a}return t.prototype.draw=function(){this.drawMainZone(),this.drawOverlay(),this.drawGrid(),this.attachEvents(),this.canvas.render(),this.initiated=!0},t.prototype.remove=function(){this.initiated&&(this.rect.off(),this.canvas.fabric().discardActiveObject(),this.canvas.fabric().remove(this.rect,this.grid,this.overlay),this.canvas.render(),this.initiated=!1)},t.prototype.constrainWithinCanvas=function(t){var e=t.left,n=t.top,i=t.getScaledWidth(),r=t.getScaledHeight(),o=this.canvasState.original.width-i,a=this.canvasState.original.height-r;e<0&&(t.left=0),n<0&&(t.top=0),e>o&&(t.left=o),n>a&&(t.top=a)},t.prototype.constrainWithinCanvasOnScaling=function(t){var e=Math.floor(t.left),n=Math.floor(t.top),i=e+t.getScaledWidth()-1,r=n+t.getScaledHeight()-1;(e<0||i>this.canvasState.original.width)&&(t.scaleX=this.lastScaleX||1),e<0&&(t.left=0),(n<0||r>this.canvasState.original.height)&&(t.scaleY=this.lastScaleY||1),n<0&&(t.top=0),this.lastScaleX=t.scaleX,this.lastScaleY=t.scaleY},t.prototype.attachEvents=function(){var t=this;this.rect.on("moving",function(){t.constrainWithinCanvas(t.rect),t.drawOverlay(),t.drawGrid(),t.resize$.next()}),this.rect.on("scaling",function(){t.constrainWithinCanvasOnScaling(t.re
1ct),t.drawOverlay(),t.drawGrid(),t.resize$.next()})},t.prototype.gcd=function(t,e){return 0==e?t:this.gcd(e,t%e)},t.prototype.getAdjustedSize=function(t,e,n){void 0===t&&(t="16:9");var i=e,r=n,o=t.split(":"),a=parseInt(o[0])/parseInt(o[1]);return n*a>e?r=e/a:i=n*a,{width:i,height:r}},t.prototype.drawMainZone=function(t){var e=this;this.initiated||(this.rect=new g.fabric.Rect({fill:"transparent",borderColor:this.gridColor,borderScaleFactor:2,hasRotatingPoint:!1,name:"crop.zone",lockScalingFlip:!0,minScaleLimit:0}),this.rect.on("deselected",function(){e.canvas.fabric().setActiveObject(e.rect)}),this.canvas.fabric().add(this.rect),this.rect.moveTo(3),this.canvas.fabric().setActiveObject(this.rect));var n=this.getAdjustedSize(t,this.canvasState.original.width,this.canvasState.original.height);this.rect.set({width:n.width,height:n.height,lockUniScaling:!!t}),this.rect.viewportCenter(),this.rect.setCoords()},t.prototype.drawGrid=function(){if(!this.initiated){var t={stroke:this.gridColor,strokeWidth:4,selectable:!1,evented:!1},e=[new g.fabric.Line([],t),new g.fabric.Line([],t),new g.fabric.Line([],t),new g.fabric.Line([],t)];this.grid=new g.fabric.Group(e,{name:"crop.grid",selectable:!1,evented:!1}),this.canvas.fabric().add(this.grid),this.grid.moveTo(10)}this.grid.width=this.rect.getScaledWidth(),this.grid.height=this.rect.getScaledHeight(),this.grid.left=this.rect.left,this.grid.top=this.rect.top;var n=this.grid.width/2,i=this.grid.width/3,r=this.grid.height/2,o=this.grid.height/3,a=this.grid.getObjects();a[0].set({x1:-(n-i),y1:-r,x2:-(n-i),y2:r}),a[1].set({x1:n-i,y1:-r,x2:n-i,y2:r}),a[2].set({x1:-n,y1:-(r-o),x2:n,y2:-(r-o)}),a[3].set({x1:-n,y1:r-o,x2:n,y2:r-o})},t.prototype.drawOverlay=function(){if(!this.initiated){var t=new g.fabric.Rect({fill:"rgba(0,0,0,0.6)",selectable:!0,evented:!1}),e=new g.fabric.Rect({fill:"rgba(0,0,0,0.6)",selectable:!0,evented:!1}),n=new g.fabric.Rect({fill:"rgba(0,0,0,0.6)",selectable:!0,evented:!1}),i=new g.fabric.Rect({fill:"rgba(0,0,0,0.6)",selectable:!0,evented:!1});this.overlay=new g.fabric.Group([t,e,n,i],{width:this.canvasState.original.width,height:this.canvasState.original.height,selectable:!1,evented:!1,name:"crop.overlay"}),this.canvas.fabric().add(this.overlay),this.overlay.moveTo(1)}var r=-this.overlay.width/2,o=-this.overlay.height/2,a=this.overlay.getObjects();a[0].set({left:r,top:o,width:this.overlay.width,height:this.rect.getScaledHeight()<0?this.rect.top-Math.abs(this.rect.getScaledHeight()):this.rect.top}),a[1].set({left:(this.rect.getScaledWidth()<0?this.rect.left:this.rect.left+this.rect.getScaledWidth())+r,top:this.rect.top+o,width:this.rect.getScaledWidth()<0?this.canvasState.original.width-(this.rect.left+this.rect.getScaledWidth())-Math.abs(this.rect.getScaledWidth()):this.canvasState.original.width-(this.rect.left+this.rect.getScaledWidth()),height:this.rect.getScaledHeight()}),a[2].set({left:r,top:(this.rect.getScaledHeight()<0?this.rect.top:this.rect.top+this.rect.getScaledHeight())+o,width:this.canvasState.original.width,height:this.rect.getScaledHeight()<0?this.canvasState.original.height-this.rect.top:this.canvasState.original.height-(this.rect.top+this.rect.getScaledHeight())}),a[3].set({left:r,top:this.rect.top+o,width:this.rect.getScaledWidth()>0?this.rect.left:this.rect.left-Math.abs(this.rect.getScaledWidth()),height:this.rect.getScaledHeight()})},t.prototype.changeAspectRatio=function(t){this.aspectRatio=t,this.drawMainZone(t),this.drawOverlay(),this.drawGrid(),this.canvas.render()},t.prototype.getSize=function(){return{width:this.rect.getScaledWidth(),height:this.rect.getScaledHeight(),left:this.rect.left,top:this.rect.top}},t.prototype.resize=function(t,e){this.aspectRatio=null,this.rect.width=t,this.rect.height=e,this.rect.lockUniScaling=!1,this.rect.setCoords(),this.drawOverlay(),this.drawGrid(),this.canvas.render()},t}(),uh=function(){function t(t,e){this.canvas=t,this.mergeTool=e}return t.prototype.apply=function(t){var e=this;this.mergeTool.apply().then(function(){e.canvas.resize(t.width,t.height);var n=e.canvas.getMainImage();n.cropX=t.left,n.cropY=t.top,n.width=t.width,n.height=t.height,e.canvas.render()})},t}(),ch=i["\u0275crt"]({encapsulation:2,styles:[["crop-drawer{display:block}crop-drawer .custom-ratio-container{padding-right:10px;border-right:1px solid #e0e0e0}crop-drawer .custom-ratio-container .input-container{display:inline-block;width:auto;margin:0 15px;text-align:center}crop-drawer .custom-ratio-container .input-container.checkbox-container{text-align:left}crop-drawer .custom-ratio-container .input-container>input{width:95px;height:45px;border-radius:3px}crop-drawer .custom-ratio-container .input-container>label{padding:0}crop-drawer .custom-ratio-container .input-container>.mat-checkbox{display:block}crop-drawer .custom-ratio-container .input-container>.mat-checkbox:first-of-type{margin-bottom:8px}
1crop-drawer .aspect-ratios{display:flex;align-items:flex-end}crop-drawer .aspect-ratios>.aspect-ratio{cursor:pointer;padding:0 20px}crop-drawer .aspect-ratios>.aspect-ratio.selected,crop-drawer .aspect-ratios>.aspect-ratio:hover .name{color:#009688}crop-drawer .aspect-ratios>.aspect-ratio>.preview{width:40px;height:30px;border:3px solid currentColor}crop-drawer .aspect-ratios>.aspect-ratio>.name{font-size:1.5rem;text-align:center;margin-top:6px}@media only screen and (max-width:768px){crop-drawer.controls-drawer .content{justify-content:flex-start}crop-drawer .custom-ratio-container{display:none}}"]],data:{}});function hh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","aspect-ratio"]],[[2,"selected",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.applyAspectRatio(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,[[1,0],["ratioPreview",1]],null,0,"div",[["class","preview"]],[[1,"data-ratio",0]],null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,1,"div",[["class","name"]],null,null,null,null,null)),(t()(),i["\u0275ted"](3,null,["",""]))],null,function(t,e){t(e,0,0,e.component.cropZone.aspectRatio===e.context.$implicit),t(e,1,0,e.context.$implicit),t(e,3,0,e.context.$implicit)})}function dh(t){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{ratioPreviews:1}),(t()(),i["\u0275eld"](1,0,null,null,27,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,26,"div",[["class","aspect-ratios"]],null,null,null,null,null)),(t()(),i["\u0275eld"](3,0,null,null,23,"div",[["class","custom-ratio-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](4,0,null,null,22,"div",[["class","inputs"]],null,null,null,null,null)),(t()(),i["\u0275eld"](5,0,null,null,10,"div",[["class","input-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,2,"label",[["for","width"],["trans",""]],null,null,null,null,null)),i["\u0275did"](7,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Width"])),(t()(),i["\u0275eld"](9,0,null,null,6,"input",[["id","width"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,10)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,10).onTouched()&&r),"compositionstart"===e&&(r=!1!==i["\u0275nov"](t,10)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i["\u0275nov"](t,10)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==i["\u0275nov"](t,11).onChange(n.target.value)&&r),"input"===e&&(r=!1!==i["\u0275nov"](t,11).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,11).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(o.cropzoneWidth=n)&&r),"ngModelChange"===e&&(r=!1!==o.resizeCropzone()&&r),r},null,null)),i["\u0275did"](10,16384,null,0,Ye,[i.Renderer2,i.ElementRef,[2,Ue]],null,null),i["\u0275did"](11,16384,null,0,Ge,[i.Renderer2,i.ElementRef],null,
1null),i["\u0275prd"](1024,null,He,function(t,e){return[t,e]},[Ye,Ge]),i["\u0275did"](13,671744,null,0,zn,[[8,null],[8,null],[8,null],[6,He]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](15,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](16,0,null,null,10,"div",[["class","input-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](17,0,null,null,2,"label",[["for","height"],["trans",""]],null,null,null,null,null)),i["\u0275did"](18,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Height"])),(t()(),i["\u0275eld"](20,0,null,null,6,"input",[["id","height"],["min","1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==i["\u0275nov"](t,21)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,21).onTouched()&&r),"compositionstart"===e&&(r=!1!==i["\u0275nov"](t,21)._compositionStart()&&r),"compositionend"===e&&(r=!1!==i["\u0275nov"](t,21)._compositionEnd(n.target.value)&&r),"change"===e&&(r=!1!==i["\u0275nov"](t,22).onChange(n.target.value)&&r),"input"===e&&(r=!1!==i["\u0275nov"](t,22).onChange(n.target.value)&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,22).onTouched()&&r),"ngModelChange"===e&&(r=!1!==(o.cropzoneHeight=n)&&r),"ngModelChange"===e&&(r=!1!==o.resizeCropzone()&&r),r},null,null)),i["\u0275did"](21,16384,null,0,Ye,[i.Renderer2,i.ElementRef,[2,Ue]],null,null),i["\u0275did"](22,16384,null,0,Ge,[i.Renderer2,i.ElementRef],null,
1null),i["\u0275prd"](1024,null,He,function(t,e){return[t,e]},[Ye,Ge]),i["\u0275did"](24,671744,null,0,zn,[[8,null],[8,null],[8,null],[6,He]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](26,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275and"](16777216,null,null,1,null,hh)),i["\u0275did"](28,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,13,0,n.cropzoneWidth),t(e,24,0,n.cropzoneHeight),t(e,28,0,n.aspectRatios)},function(t,e){t(e,9,0,i["\u0275nov"](e,15).ngClassUntouched,i["\u0275nov"](e,15).ngClassTouched,i["\u0275nov"](e,15).ngClassPristine,i["\u0275nov"](e,15).ngClassDirty,i["\u0275nov"](e,15).ngClassValid,i["\u0275nov"](e,15).ngClassInvalid,i["\u0275nov"](e,15).ngClassPending),t(e,20,0,i["\u0275nov"](e,26).ngClassUntouched,i["\u0275nov"](e,26).ngClassTouched,i["\u0275nov"](e,26).ngClassPristine,i["\u0275nov"](e,26).ngClassDirty,i["\u0275nov"](e,26).ngClassValid,i["\u0275nov"](e,26).ngClassInvalid,i["\u0275nov"](e,26).ngClassPending)})}var ph=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),fh=function(t){function e(e,n,i,r,o,a){var s=t.call(this,i,r)||this;return s.drawTool=e,s.settings=n,s.history=i,s.editorControls=r,s.canvas=o,s.config=a,s.name="draw",s.brushSizes=s.config.get("pixie.tools.draw.brushSizes"),s.brushTypes=s.config.get("pixie.tools.draw.brushTypes"),s}return ph(e,t),e.prototype.ngOnInit=function(){this.drawTool.enable(),this.canvas.fabric().on("object:added",this.maybeMarkAsDirty.bind(this))},e.prototype.ngOnDestroy=function(){this.drawTool.disable(),this.canvas.fabric().off("object:added",this.maybeMarkAsDirty.bind(this))},e.prototype.getBrushPreviewUrl=function(t){var e=t.replace("Brush","").toLowerCase();return this.settings.getAssetUrl("images/brushes/"+e+"-square.png")},e.prototype.setBrushType=function(t){this.drawTool.setBrushType(t),this.editorControls.closePanel("draw.brushTypes")},e.prototype.maybeMarkAsDirty=function(){var t=this.canvas.fabric().getObjects().find(function(t){return"drawing"===t.name});t&&(this.dirty=!0,t.set({selectable:!1,evented:!1}),this.canvas.render())},e}(Rc),gh=function(t){var e=new g.fabric.PatternBrush(t);return e.getPatternSrc=function(){var t=document.createElement("canvas");t.width=t.height=10;var e=t.getContext("2d");return e.strokeStyle=this.color,e.lineWidth=5,e.beginPath(),e.moveTo(0,5),e.lineTo(10,5),e.closePath(),e.stroke(),t},e},mh=function(t){var e=new g.fabric.PatternBrush(t);return e.getPatternSrc=function(){var t=document.createElement("canvas");t.width=t.height=10;var e=t.getContext("2d");return e.strokeStyle=this.color,e.lineWidth=5,e.beginPath(),e.moveTo(5,0),e.lineTo(5,10),e.closePath(),e.stroke(),t},e},vh=function(t){var e=new g.fabric.PatternBrush(t);return e.getPatternSrc=function(){var t=document.createElement("canvas");t.width=t.height=12;var e=t.getContext("2d");return e.fillStyle=this.color,e.fillRect(0,0,10,10),t},e},yh=function(){function t(t){this.canvasState=t,this.enabled=!1,this.customBrushes={VLineBrush:gh(this.canvasState.fabric),HLineBrush:mh(this.canvasState.fabric),SquareBrush:vh(this.canvasState.fabric)},this.currentBrush={type:"PencilBrush",color:"#000",width:r[1]}}return t.prototype.enable=function(){this.canvasState.fabric.isDrawingMode=!0,this.setBrushType(this.currentBrush.type),this.enabled=!0,this.canvasState.fabric.on("object:added",this.onDrawingAdded)},t.prototype.disable=function(){this.canvasState.fabric.isDrawingMode=!1,this.enabled=!1,this.canvasState.fabric.off("object:added",this.onDrawingAdded)},t.prototype.getBrushType=function(){return this.currentBrush.type},t.prototype.setBrushType=function(t){this.currentBrush.type=t;var e=g.fabric[t]?new g.fabric[t](this.canvasState.fabric):this.customBrushes[t];this.canvasState.fabric.freeDrawingBrush=e,this.applyBrushStyles()},t.prototype.applyBrushStyles=function(){var t=this;
1Object.keys(this.currentBrush).forEach(function(e){t.canvasState.fabric.freeDrawingBrush[e]=t.currentBrush[e]})},t.prototype.setBrushSize=function(t){this.currentBrush.width=t,this.applyBrushStyles()},t.prototype.getBrushSize=function(){return this.currentBrush.width},t.prototype.setBrushColor=function(t){this.currentBrush.color=t,this.applyBrushStyles()},t.prototype.getBrushColor=function(){return this.currentBrush.color},t.prototype.onDrawingAdded=function(t){"path"===t.target.type&&(t.target.name="drawing")},t}(),bh=i["\u0275crt"]({encapsulation:2,styles:[["draw-drawer{display:block}draw-drawer .brush-sizes{margin-left:25px}draw-drawer .brush-sizes .sizes{display:flex;align-items:center;margin-top:16px}draw-drawer .brush-sizes .sizes .size{width:10px;height:10px;max-width:30px;max-height:30px;border:3px solid currentColor;margin:0 8px;border-radius:50%}draw-drawer .brush-sizes .sizes .size.selected{border-color:#009688}draw-drawer .brush-sizes .bottom-label{margin-top:17px}draw-drawer .brush-type-button-wrapper{margin:0 15px}@media only screen and (max-width:768px){draw-drawer .main-content{flex-direction:column}draw-drawer .bottom-label{display:none}draw-drawer .brush-type-button-wrapper{position:absolute;left:15px;bottom:10px}draw-drawer .brush-sizes .sizes{margin-top:10px}draw-drawer.controls-drawer .brush-types-content{justify-content:flex-start}}"]],data:{}});function _h(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"button",[["class","no-style size control"]],[[2,"selected",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.drawTool.setBrushSize(t.context.$implicit)&&i),i},null,null)),i["\u0275did"](1,278528,null,0,M.NgStyle,[i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngStyle:[0,"ngStyle"]},null),i["\u0275pod"](2,{width:0,height:1})],function(t,e){t(e,1,0,t(e,2,0,e.context.$implicit+"px",e.context.$implicit+"px"))},function(t,e){t(e,0,0,e.component.drawTool.getBrushSize()===e.context.$implicit)})}function wh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,23,null,null,null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,7,"color-widget",[["trans",""]],[[2,"compact",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0,r=t.component;return"ngModelChange"===e&&(i=!1!==(r.drawTool.currentBrush.color=n)&&i),"ngModelChange"===e&&(i=!1!==r.drawTool.setBrushColor(n)&&i),i},mc,fc)),i["\u0275did"](2,49152,null,0,pc,[Pi,b],null,null),i["\u0275prd"](1024,null,He,function(t){return[t]},[pc]),i["\u0275did"](4,671744,null,0,zn,[[8,null],[8,null],[8,null],[6,He]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](6,16384,null,0,On,[[4,Ze]],null,null),i["\u0275did"](7,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,0,["Brush Color"])),(t()(),i["\u0275eld"](9,0,null,null,7,"div",[["class","brush-type-button-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](10,0,null,null,3,"button",[["class","round-action-button"],["mat-icon-button",""]],[[4,"color",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("draw.brushTypes")&&i),i},Kl,Gl)),i["\u0275did"](11,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](12,0,null,0,1,"svg-icon",[["name","pencil-custom"]],null,null,null,br,yr)),i["\u0275did"](13,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](14,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](15,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Brush Type"])),(t()(),i["\u0275eld"](17,0,null,null,6,"div",[["class","brush-sizes brush-controls"]],null,null,null,null,null)),(t()(),i["\u0275eld"](18,0,null,null,2,"div",[["class","sizes controls"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,_h)),i["\u0275did"](20,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](21,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](22,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](-1,null,["Brush Size"]))],function(t,e){var n=e.component;t(e,4,0,n.drawTool.currentBrush.color),t(e,13,0,"pencil-custom"),t(e,20,0,n.brushSizes)},function(t,e){var n=e.component;t(e,1,0,i["\u0275nov"](e,2).compact,i["\u0275nov"](e,6).ngClassUntouched,i["\u0275nov"](e,6).ngClassTouched,i["\u0275nov"](e,6).ngClassPristine,i["\u0275nov"](e,6).ngClassDirty,i["\u0275nov"](e,6).ngClassValid,i["\u0275nov"](e,6).ngClassInvalid,i["\u0275nov"](e,6).ngClassPending),t(e,10,0,n.drawTool.getBrushColor(),i["\u0275nov"](e,11).disabled||null,"NoopAnimations"===i["\u0275nov"](e,11)._animationMode)})}function xh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","content main-content"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,wh)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.component.controls.panelIsVisible("draw"))},null)}function Ch(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","no-style button-with-image"]],[[2,"selected",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.setBrushType(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"img",[],[[8,"src",4],[8,"alt",0]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,n.drawTool.getBrushType()==e.context.$implicit),t(e,1,0,n.getBrushPreviewUrl(e.context.$implicit),i["\u0275inlineInterpolate"](1,"",e.context.$implicit," brush preview"))})}function Sh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","content brush-types-content"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Ch)),i["\u0275did"](2,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.brushTypes)},null)}function kh(t){return i["\u0275vid"](0,[(t()(),i["\u0275and"](16777216,null,null,1,null,xh)),i["\u0275did"](1,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Sh)),i["\u0275did"](3,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,!n.controls.panelIsVisible("draw.brushTypes")),t(e,3,0,n.controls.panelIsVisible("draw.brushTypes"))},null)}var Eh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Oh=function(t){function e(e,n,i,r,o){var a=t.call(this,i,r)||this;return a.textTool=e,a.overlayPanel=n,a.history=i,a.controls=r,a.activeObject=o,a.name="text",a}return Eh(e,t),e.prototype.addText=function(){this.dirty=!0,this.textTool.add()},e.prototype.openGoogleFontsPanel=function(t){var e=this;this.overlayPanel.open(_r,{position:"bottom",origin:new i.ElementRef(t)}).valueChanged().subscribe(function(t){e.textTool.setFont(t)})},e}(Rc),Th=function(){function t(t,e,n){this.canvas=t,this.activeObject=e,this.objects=n,this.minWidth=250}return t.prototype.getStyle=function(t){return this.activeObject.getValue("text."+t)},t.prototype.add=function(t){void 0===t&&(t="Double click here");var e=Object.assign({fill:"rgb(30, 139, 195)"},{name:"text",lockUniScaling:!0}),n=new g.fabric.IText(t,e);this.canvas.fabric().add(n),this.autoPositionText(n),this.canvas.fabric().setActiveObject(n),this.canvas.render()},t.prototype.autoPositionText=function(t){var e=this,n=this.canvas.fabric().getWidth(),i=this.canvas.fabric().getHeight(),r=Math.min(this.canvas.fabric().getWidth(),this.minWidth);t.scaleToWidth(Math.max(n/3,r)),t.getScaledHeight()>i&&t.scaleToHeight(i-t.getScaledHeight()-20),t.viewportCenter(),this.canvas.fabric().getObjects("i-text").forEach(function(n){if(n!==t&&n.intersectsWithObject(t)){var i=n.top-t.top+n.getScaledHeight(),r=t.top+i;r>e.canvas.state.original.height-n.getScaledHeight()&&(r=0),t.set("top",r),t.setCoords()}})},t.prototype.setFont=function(t){this.activeObject.isText()&&(this.activeObject.get().data.font=t,this.activeObject.setValue("text.fontFamily",t.family))},t.prototype.getUsedFonts=function(){var t=[];return this.objects.getAll().filter(function(t){return"i-text"===t.type}
1).forEach(function(e){e.data.font&&"regular"!==e.data.font.type&&t.push(e.data.font)}),t},t}(),Ah=i["\u0275crt"]({encapsulation:2,styles:[["text-drawer{display:block}text-drawer .select-font-wrapper{margin-left:25px}text-drawer .select-font-wrapper .select-font-button{position:relative;font-size:1.6rem;font-weight:500;margin-top:12px;border:1px solid #e0e0e0;padding:0 30px 0 10px;width:170px;height:35px;line-height:35px;overflow:hidden;text-overflow:ellipsis}text-drawer .select-font-wrapper .select-font-button svg-icon{position:absolute;top:6px;right:4px}text-drawer .select-font-wrapper .bottom-label{margin-top:12px}text-drawer .add-text-button-wrapper{margin:0 25px}@media only screen and (max-width:768px){text-drawer.controls-drawer color-widget{width:100%;margin-bottom:5px}text-drawer.controls-drawer .content{flex-wrap:wrap}text-drawer.controls-drawer .bottom-label{display:none}text-drawer.controls-drawer .select-font-button{margin:0 0 0 10px}text-drawer.controls-drawer .add-text-button{background-color:#009688;color:#fff;border:none;box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);margin-bottom:3px}text-drawer.controls-drawer .select-font-wrapper{margin-left:0}}"]],data:{}});function Dh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,24,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,7,"color-widget",[["trans",""]],[[2,"compact",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,mc,fc)),i["\u0275did"](2,49152,null,0,pc,[Pi,b],null,null),i["\u0275prd"](1024,null,He,function(t){return[t]},[pc]),i["\u0275did"](4,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](6,16384,null,0,On,[[4,Ze]],null,null),i["\u0275did"](7,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,0,["Color Picker"])),(t()(),i["\u0275eld"](9,0,null,null,6,"div",[["class","add-text-button-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](10,0,null,null,2,"div",[["class","round-action-button add-text-button"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.addText()&&i),i},null,null)),(t()(),i["\u0275eld"](11,0,null,null,1,"svg-icon",[["name","add"]],null,null,null,br,yr)),i["\u0275did"](12,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](13,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](14,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Add Text"])),(t()(),i["\u0275eld"](16,0,null,null,8,"section",[["class","select-font-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](17,0,[["fontsButton",1]],null,4,"button",[["class","select-font-button no-style"]],[[4,"fontFamily",null]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.openGoogleFontsPanel(i["\u0275nov"](t,17))&&r),r},null,null)),(t()(),i["\u0275eld"](18,0,null,null,1,"span",[["class","text"]],null,null,null,null,null)),(t()(),i["\u0275ted"](19,null,["",""])),(t()(),i["\u0275eld"](20,0,null,null,1,"svg-icon",[["name","keyboard-arrow-down"]],null,null,null,br,yr)),i["\u0275did"](21,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](22,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](23,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Font"]))],function(t,e){t(e,4,0,e.component.activeObject.getControl("fill")),t(e,12,0,"add"),t(e,21,0,"keyboard-arrow-down")},function(t,e){var n=e.component;t(e,1,0,i["\u0275nov"](e,2).compact,i["\u0275nov"](e,6).ngClassUntouched,i["\u0275nov"](e,6).ngClassTouched,i["\u0275nov"](e,6).ngClassPristine,i["\u0275nov"](e,6).ngClassDirty,i["\u0275nov"](e,6).ngClassValid,i["\u0275nov"](e,6).ngClassInvalid,i["\u0275nov"](e,6).ngClassPending),t(e,17,0,n.textTool.getStyle("fontFamily")),t(e,19,0,n.textTool.getStyle("fontFamily"))})}var Ph=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ih=function(t){function e(e,n,i,r){var o=t.call(this,n,i)||this;return o.shapesTool=e,o.history=n,o.editorControls=i,o.config=r,o.name="shapes",o.shapes=o.config.get("pixie.tools.shapes.items"),o}return Ph(e,t),e.prototype.addShape=function(t){this.shapesTool.addBasicShape(t),this.dirty=!0},e.prototype.close=function(){this.editorControls.closeAllPanels(),t.prototype.close.call(this)},e}(Rc),Rh=function(){function t(t,e){this.canvas=t,this.config=e}return t.prototype.getShapeByName=function(t){return this.config.get("pixie.tools.shapes.items").find(function(e){return e.name===t})},t.prototype.addBasicShape=function(t){"string"==typeof t&&(t=this.getShapeByName(t));var e,n=t,i=this.canvas.fabric().getWidth(),r=n.options||{},o=i/2;"circle"===n.name?r.radius=o:"ellipse"===n.name?(r.rx=o,r.ry=o/2):(r.width=o,r.height=o
1),e="Path"===n.type?new g.fabric[n.type](r.path,r):new g.fabric[n.type](r),this.addAndPositionSticker(e)},t.prototype.addSticker=function(t,e){var n=this;return new Promise(function(i){n.addStickerResolve=i,"svg"===t.type?n.addSvgSticker(t,e):n.addRegularSticker(t,e)})},t.prototype.addRegularSticker=function(t,e){var n=this;g.fabric.util.loadImage(this.getStickerUrl(t,e),function(t){var e=new g.fabric.Image(t);n.addAndPositionSticker(e,"sticker")})},t.prototype.addAndPositionSticker=function(t,e){void 0===e&&(e="shape"),t.name=e,this.canvas.fabric().add(t),this.canvas.fabric().setActiveObject(t),t.scaleToWidth(this.canvas.fabric().getWidth()/4),t.viewportCenter(),t.setCoords(),this.canvas.render(),this.addStickerResolve&&this.addStickerResolve()},t.prototype.getStickerUrl=function(t,e){return this.config.getAssetUrl("images/stickers/"+t.name+"/"+e+"."+t.type)},t.prototype.getStickerCategoryUrl=function(t){return t.thumbnailUrl?this.config.getAssetUrl(t.thumbnailUrl):this.getStickerUrl(t,1)},t.prototype.addSvgSticker=function(t,e){var n=this;g.fabric.loadSVGFromURL(this.getStickerUrl(t,e),function(t,e){var i=g.fabric.util.groupSVGElements(t,e);n.addAndPositionSticker(i,"sticker")})},t}(),jh=i["\u0275crt"]({encapsulation:2,styles:[["shapes-drawer{display:block}shapes-drawer .content.stickers-visible{justify-content:flex-start}shapes-drawer .button-with-image>svg path{fill:transparent;stroke:currentColor;stroke-width:25}shapes-drawer .basic-shape{margin:0 10px;cursor:pointer}shapes-drawer .basic-shape .preview{background-color:#009688;height:50px}shapes-drawer .basic-shape .rectangle{width:50px}shapes-drawer .basic-shape .circle{width:50px;border-radius:50%}shapes-drawer .basic-shape .triangle{width:50px;background-color:transparent;border-left:18px solid transparent;border-right:18px solid transparent;border-bottom:33px solid #009688}shapes-drawer .basic-shape .ellipse{width:80px;height:50px;border-radius:50%}shapes-drawer .stickers-drawer .content-wrapper>.shapes{justify-content:initial}shapes-drawer .shape:first-of-type{margin-left:0}@media only screen and (max-width:768px){shapes-drawer.controls-drawer .content{justify-content:flex-start}}"]],data:{}});function Mh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,":svg:svg",[["viewBox","0 -100 512 700"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,":svg:path",[],[[1,"d",0],[1,"stroke-width",0]],null,null,null,null))],null,function(t,e){t(e,1,0,e.parent.context.$implicit.options.path,e.parent.context.$implicit.options.strokeWidth||10)})}function Fh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"svg-icon",[],null,null,null,br,yr)),i["\u0275did"](1,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,1,0,e.parent.context.$implicit.name+"-custom")},null)}function Nh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,[["button",1]],null,7,"button",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(t.component.addShape(t.context.$implicit),r=!1!==i["\u0275nov"](t,0).blur()&&r),r},null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Mh)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Fh)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](5,0,null,null,2,"span",[["class","name bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](6,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](7,null,["",""]))],function(t,e){t(e,2,0,"Path"===e.context.$implicit.type),t(e,4,0,"Path"!==e.context.$implicit.type)},function(t,e){t(e,7,0,e.context.$implicit.name)})}function Bh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Nh)),i["\u0275did"](2,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.shapes)},null)}var Vh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Lh=function(t){function e(e,n,i,r){var o=t.call(this,n,i)||this;return o.shapesTool=e,o.history=n,o.editorControls=i,o.config=r,o.name="stickers",o.categories=o.config.get("pixie.tools.stickers.items"),o}return Vh(e,t),e.prototype.addSticker=function(t,e){var n=this;this.shapesTool.addSticker(t,e).then(function(){n.dirty=!0})},e.prototype.openStickersCategory=function(t){this.activeCategory=t,this.editorControls.openPanel
1("shapes.stickers."+t.name)},e.prototype.getStickersIterable=function(t){return t.list?t.list:Array.from(Array(t.items).keys())},e}(Rc),zh=i["\u0275crt"]({encapsulation:2,styles:[["stickers-drawer{display:block}stickers-drawer .button-with-image.dark-bg{background-color:rgba(0,0,0,.12)}stickers-drawer .stickers-list{display:flex;align-items:center;justify-content:flex-start;width:100%}@media only screen and (max-width:768px){stickers-drawer.controls-drawer .content{justify-content:flex-start}}"]],data:{}});function Hh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","category button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openStickersCategory(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"img",[["alt","Sticker category preview image"]],[[8,"src",4]],null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](3,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](4,null,["",""]))],null,function(t,e){t(e,1,0,e.component.shapesTool.getStickerCategoryUrl(e.context.$implicit)),t(e,4,0,e.context.$implicit.name)})}function Wh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Hh)),i["\u0275did"](2,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275and"](0,null,null,0))],function(t,e){t(e,2,0,e.component.categories)},null)}function Uh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"span",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](2,null,["",""]))],null,function(t,e){t(e,2,0,e.parent.context.$implicit)})}function Yh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,[["button",1]],null,3,"button",[["class","sticker button-with-image"]],[[2,"no-label",null],[2,"dark-bg",null]],[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(o.addSticker(o.activeCategory,t.context.$implicit),r=!1!==i["\u0275nov"](t,0).blur()&&r),r},null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"img",[["alt","Sticker preview image"]],[[8,"src",4]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Uh)),i["\u0275did"](3,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.component.activeCategory.list)},function(t,e){var n=e.component;t(e,0,0,!n.activeCategory.list,n.activeCategory.darkBg),t(e,1,0,n.shapesTool.getStickerUrl(n.activeCategory,e.context.$implicit))})}function Xh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","stickers-list"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Yh)),i["\u0275did"](2,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.getStickersIterable(n.activeCategory))},null)}function qh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Wh)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Xh)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,!n.activeCategory||n.controls.panelIsVisible("stickers")),t(e,4,0,n.activeCategory&&!n.controls.panelIsVisible("stickers"))},null)}var Gh=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Kh=function(t){function e(e,n,i,r){var o=t.call(this,n,i)||this;return o.activeObject=e,o.history=n,o.controls=i,o.roundTool=r,o.name="corners",o.radius=50,o}return Gh(e,t),e.prototype.ngOnInit=function(){this.roundTool.showPreview(),this.dirty=!0},e.prototype.ngOnDestroy=function(){this.roundTool.hidePreview()},e.prototype.apply=function(){var e=this;this.roundTool.apply(this.roundTool.getPreviewRadius()).then(function(){t.prototype.apply.call(e)})},e}(Rc),Zh=function(){function t(t,e,n,i){this.activeObject=t,this.canvas=e,this.state=n,this.saveTool=i}return t.prototype.apply=function(t){var e=this;this.updatePreview(t),this.state.fabric.remove(this.previewRect),this.state.fabric.clipTo=function(t){var n=e.state.fabric.getRetinaScaling();e.previewRect.set({width:e.previewRect.width/n,height:e.previewRect.height/n,rx:e.previewRect.rx/n,ry:e.previewRect.ry/n,stroke:null}),e.previewRect.render(t),e.state.fabric.clipTo=null};var n=this.saveTool.getDataUrl();return this.state.fabric.clear(),this.hidePreview(),this.canvas.loadMainImage(n)},t.prototype.getPreviewRadius=function(){return this.previewRect.rx},t.prototype.updatePreview=function(t){this.previewRect.set({rx:t,ry:t}),this.canvas.render()}
1,t.prototype.showPreview=function(){this.previewRect=new g.fabric.Rect({width:this.state.original.width,height:this.state.original.height,rx:50,ry:50,objectCaching:!1,fill:"transparent",name:"round.rect",stroke:"rgba(255,255,255,0.8)",strokeWidth:3,strokeDashArray:[4,4],selectable:!1,evented:!1}),this.state.fabric.add(this.previewRect),this.previewRect.moveTo(99),this.previewRect.viewportCenter(),this.canvas.render()},t.prototype.hidePreview=function(){this.previewRect&&(this.state.fabric.remove(this.previewRect),this.canvas.render(),this.previewRect=null)},t}(),Qh=i["\u0275crt"]({encapsulation:2,styles:[["texture-controls-drawer{display:flex;justify-content:flex-start;align-items:center}texture-controls-drawer>.texture{margin:0 5px}texture-controls-drawer>.texture:first-of-type{margin-left:0}"]],data:{}});function Jh(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,10,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,9,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](3,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Radius"])),(t()(),i["\u0275eld"](5,0,null,null,5,"mat-slider",[["class","mat-slider"],["max","300"],["min","1"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"ngModelChange"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,6)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,6)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,6)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,6)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,6)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,6)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,6)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,6)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,6)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.roundTool.updatePreview(n.value)&&r),"ngModelChange"===e&&(r=!1!==(o.radius=n)&&r),r},_c,bc)),i["\u0275did"](6,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"]},{input:"input"}),i["\u0275prd"](1024,null,He,function(t){return[t]},[vc]),i["\u0275did"](8,671744,null,0,zn,[[8,null],[8,null],[8,null],[6,He]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](10,16384,null,0,On,[[4,Ze]],null,null)],function(t,e){var n=e.component;t(e,6,0,"300","1"),t(e,8,0,n.radius)},function(t,e){t(e,5,1,[i["\u0275nov"](e,6).tabIndex,i["\u0275nov"](e,6).disabled,i["\u0275nov"](e,6).max,i["\u0275nov"](e,6).min,i["\u0275nov"](e,6).value,i["\u0275nov"](e,6).vertical?"vertical":"horizontal",i["\u0275nov"](e,6).disabled,i["\u0275nov"](e,6).tickInterval,!i["\u0275nov"](e,6).vertical,i["\u0275nov"](e,6)._invertAxis,i["\u0275nov"](e,6)._isSliding,i["\u0275nov"](e,6).thumbLabel,i["\u0275nov"](e,6).vertical,i["\u0275nov"](e,6)._isMinValue,i["\u0275nov"](e,6).disabled||i["\u0275nov"](e,6)._isMinValue&&i["\u0275nov"](e,6)._thumbGap&&i["\u0275nov"](e,6)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,6)._animationMode,i["\u0275nov"](e,10).ngClassUntouched,i["\u0275nov"](e,10).ngClassTouched,i["\u0275nov"](e,10).ngClassPristine,i["\u0275nov"](e,10).ngClassDirty,i["\u0275nov"](e,10).ngClassValid,i["\u0275nov"](e,10).ngClassInvalid,i["\u0275nov"](e,10).ngClassPending])})}var $h=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),td=function(t){function e(e,n,i,r){var o=t.call(this,r,n)||this;return o.frameTool=e,o.controls=n,o.activeFrame=i,o.history=r,o.name="frame",o.
1colorControl=new Rn,o}return $h(e,t),e.prototype.ngOnInit=function(){var t=this;this.colorControl.valueChanges.subscribe(function(e){t.frameTool.changeColor(e)})},e.prototype.getFrameThumbUrl=function(t){return this.frameTool.patterns.getBaseUrl(t)+"/thumbnail.png"},e.prototype.selectFrame=function(t){this.dirty=!0,this.frameTool.add(t.name)},e.prototype.scaleFrame=function(t){this.frameTool.resize(t)},e.prototype.frameIsActive=function(t){return this.activeFrame.is(t)},e.prototype.removeFrame=function(){this.activeFrame.remove()},e.prototype.showFrameConfig=function(t){this.sizeModel=t.size.default,this.controls.openPanel("frameControls")},e}(Rc),ed=function(){function t(t,e,n,i,r){var o=this;this.config=t,this.canvas=e,this.patterns=n,this.activeFrame=i,this.frameBuilder=r,this.frames=[],this.frames=this.config.get("pixie.tools.frame.items"),this.canvas.state.loaded.subscribe(function(){o.canvas.fabric().on("object:added",function(){o.activeFrame.group&&o.activeFrame.group.moveTo(98)})})}return t.prototype.add=function(t){var e=this.getByName(t);if(!this.activeFrame.is(e)){this.activeFrame.exists()&&this.activeFrame.remove();var n=this.calcFrameSize(e.size.default);this.frameBuilder.build(e,n)}},t.prototype.resize=function(t){var e=this.calcFrameSize(t);this.frameBuilder.resize(e),this.patterns.scale(e),this.canvas.render()},t.prototype.changeColor=function(t){this.activeFrame.changeColor(t)},t.prototype.remove=function(){this.activeFrame.remove()},t.prototype.getByName=function(t){return this.frames.find(function(e){return e.name===t})},t.prototype.getActive=function(){return this.activeFrame.config},t.prototype.getAll=function(){return this.frames},t.prototype.calcFrameSize=function(t){return t/100*Math.min(this.canvas.state.original.width,this.canvas.state.original.height)},t}(),nd=function(){function t(t){this.canvas=t,this.corners=["topLeft","topRight","bottomLeft","bottomRight"],this.sides=["top","right","bottom","left"]}return t.prototype.getPartNames=function(){return this.corners.concat(this.sides)},t.prototype.exists=function(){return null!=this.config},t.prototype.remove=function(){var t=this;this.exists()&&(this.canvas.fabric().remove(this.group),this.group.off(),this.group=null,this.config=null,this.getPartNames().forEach(function(e){t[e]=null}))},t.prototype.is=function(t){return!!this.config&&this.config.name===t.name},t.prototype.changeColor=function(t){var e=this;"basic"===this.config.mode&&(this.getPartNames().forEach(function(n){e[n].set("fill",t)}),this.canvas.render())},t.prototype.isBasic=function(){return this.config&&"basic"===this.config.mode},t.prototype.getMinSize=function(){if(this.exists())return this.config.size.min||1},t.prototype.getMaxSize=function(){if(this.exists())return this.config.size.max||35},t.prototype.getDefaultSize=function(){if(this.exists())return this.config.size.default||15},t}(),id=i["\u0275crt"]({encapsulation:2,styles:[["frame-drawer{display:block}frame-drawer .frame-controls{flex-direction:column}frame-drawer .button-with-image{position:relative}frame-drawer .button-with-image img{border-radius:4px;width:65px;height:65px}frame-drawer .button-with-image .bottom-label{margin-top:3px;font-size:1.1rem}@media only screen and (max-width:768px){frame-drawer.controls-drawer .main-content{justify-content:flex-start}frame-drawer .frame-controls{padding:0 15px}}"]],data:{}});function rd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,8,"div",[["class","overlay"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(t.component.removeFrame(),i=!1!==n.stopPropagation()&&i),i},Kl,Gl)),i["\u0275did"](2,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](3,0,null,0,1,"svg-icon",[["name","cancel"]],null,null,null,br,yr)),i["\u0275did"](4,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](5,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(t.component.showFrameConfig(t.parent.context.$implicit),i=!1!==n.stopPropagation()&&i),i},Kl,Gl)),i["\u0275did"](6,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](7,0,null,0,1,"svg-icon",[["name","settings"]],null,null,null,br,yr)),i["\u0275did"](8,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,4,0,"cancel"),t(e,8,0,"settings")},function(t,e){t(e,1,0,i["\u0275nov"](e,2).disabled||null,"NoopAnimations"===i["\u0275nov"](e,2)._animationMode),t(e,5,0,i["\u0275nov"](e,6).disabled||null,"NoopAnimations"===i["\u0275nov"](e,6)._animationMode)})}function od(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.selectFrame(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"div",[["class","image-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,rd)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](5,0,null,null,2,"span",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](6,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](7,null,["",""]))],function(t,e){t(e,4,0,e.component.frameIsActive(e.context.$implicit))},function(t,e){t(e,2,0,e.component.getFrameThumbUrl(e.context.$implicit)),t(e,7,0,e.context.$implicit.display_name||e.context.$implicit.name)})}function ad(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"color-widget",[],[[2,"compact",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,mc,fc)),i["\u0275did"](1,49152,null,0,pc,[Pi,b],{compact:[0,"compact"]},null),i["\u0275prd"](1024,null,He,function(t){return[t]},[pc]),i["\u0275did"](3,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](5,16384,null,0,On,[[4,Ze]],null,null)],function(t,e){var n=e.component;t(e,1,0,!0),t(e,3,0,n.colorControl)},function(t,e){t(e,0,0,i["\u0275nov"](e,1).compact,i["\u0275nov"](e,5).ngClassUntouched,i["\u0275nov"](e,5).ngClassTouched,i["\u0275nov"](e,5).ngClassPristine,i["\u0275nov"](e,5).ngClassDirty,i["\u0275nov"](e,5).ngClassValid,i["\u0275nov"](e,5).ngClassInvalid,i["\u0275nov"](e,5).ngClassPending)})}function sd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"section",[["class","content main-content"]],[[2,"hidden",null]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,od)),i["\u0275did"](2,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](3,0,null,null,12,"section",[["class","content frame-controls"]],[[2,"hidden",null]],null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,ad)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](6,0,null,null,9,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](7,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](8,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Size"])),(t()(),i["\u0275eld"](10,0,null,null,5,"mat-slider",[["class","mat-slider"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,11)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,11)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,11)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,11)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,11)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,11)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,11)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,11)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,11)._onSlideStart(n)&&r),"ngModelChange"===e&&(r=!1!==(o.sizeModel=n)&&r),"input"===e&&(r=!1!==o.scaleFrame(n.value)&&r),r},_c,bc)),i["\u0275did"](11,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"]},{input:"input"}),i["\u0275prd"](1024,null,He,function(t){return[t]},[vc]),i["\u0275did"](13,671744,null,0,zn,[[8,null],[8,null],[8,null],[6,He]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[zn]),i["\u0275did"](15,16384,null,0,O
1n,[[4,Ze]],null,null)],function(t,e){var n=e.component;t(e,2,0,n.frameTool.getAll()),t(e,5,0,n.activeFrame.isBasic()),t(e,11,0,n.activeFrame.getMaxSize(),n.activeFrame.getMinSize()),t(e,13,0,n.sizeModel)},function(t,e){var n=e.component;t(e,0,0,!n.controls.panelIsVisible("frame")),t(e,3,0,!n.controls.panelIsVisible("frameControls")),t(e,10,1,[i["\u0275nov"](e,11).tabIndex,i["\u0275nov"](e,11).disabled,i["\u0275nov"](e,11).max,i["\u0275nov"](e,11).min,i["\u0275nov"](e,11).value,i["\u0275nov"](e,11).vertical?"vertical":"horizontal",i["\u0275nov"](e,11).disabled,i["\u0275nov"](e,11).tickInterval,!i["\u0275nov"](e,11).vertical,i["\u0275nov"](e,11)._invertAxis,i["\u0275nov"](e,11)._isSliding,i["\u0275nov"](e,11).thumbLabel,i["\u0275nov"](e,11).vertical,i["\u0275nov"](e,11)._isMinValue,i["\u0275nov"](e,11).disabled||i["\u0275nov"](e,11)._isMinValue&&i["\u0275nov"](e,11)._thumbGap&&i["\u0275nov"](e,11)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,11)._animationMode,i["\u0275nov"](e,15).ngClassUntouched,i["\u0275nov"](e,15).ngClassTouched,i["\u0275nov"](e,15).ngClassPristine,i["\u0275nov"](e,15).ngClassDirty,i["\u0275nov"](e,15).ngClassValid,i["\u0275nov"](e,15).ngClassInvalid,i["\u0275nov"](e,15).ngClassPending])})}var ld=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ud=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.history=e,r.controls=n,r.canvas=i,r.name="background",r.formControl=new Rn,r}return ld(e,t),e.prototype.ngOnInit=function(){var t=this;this.formControl.valueChanges.subscribe(function(e){e&&(t.dirty=!0,t.canvas.fabric().setBackgroundColor(e),t.canvas.render())})},e}(Rc),cd=i["\u0275crt"]({encapsulation:2,styles:[["canvas-background-drawer{display:block}"]],data:{}});function hd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,8,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,7,"color-widget",[["trans",""]],[[2,"compact",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,mc,fc)),i["\u0275did"](2,49152,null,0,pc,[Pi,b],null,null),i["\u0275prd"](1024,null,He,function(t){return[t]},[pc]),i["\u0275did"](4,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](6,16384,null,0,On,[[4,Ze]],null,null),i["\u0275did"](7,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,0,["Canvas Background"]))],function(t,e){t(e,4,0,e.component.formControl)},function(t,e){t(e,1,0,i["\u0275nov"](e,2).compact,i["\u0275nov"](e,6).ngClassUntouched,i["\u0275nov"](e,6).ngClassTouched,i["\u0275nov"](e,6).ngClassPristine,i["\u0275nov"](e,6).ngClassDirty,i["\u0275nov"](e,6).ngClassValid,i["\u0275nov"](e,6).ngClassInvalid,i["\u0275nov"](e,6).ngClassPending)})}var dd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),pd=function(t){function e(e,n,i,r){var o=t.call(this,i,r)||this;return o.overlayPanel=e,o.activeObject=n,o.history=i,o.controls=r,o.name="shadow",o}return dd(e,t),e.prototype.setValue=function(t,e){this.dirty=!0,this.activeObject.setValue(t,e)},e.prototype.openColorPicker=function(){var t=this;this.overlayPanel.open(hr,{position:"bottom",origin:this.colorPickerButton}).valueChanged().subscribe(function(e){t.setValue("shadow.color",e)})},e}(Rc),fd=i["\u0275crt"]({encapsulation:2,styles:[["shadow-controls-drawer{display:flex;justify-content:center;align-items:center;width:100%;padding:0 20px}@media only screen and (max-width:768px){shadow-controls-drawer{justify-content:flex-start;padding:0 5px}shadow-controls-drawer .slider-container{margin:0 5px}}"]],data:{}});function gd(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{colorPickerButton:0}),(t()(),i["\u0275eld"](1,0,[[1,0]],null,3,"button",[["class","round-action-button color-picker-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openColorPicker()&&i),i},Kl,Gl)),i["\u0275did"](2,180224,[["colorPickerButton",4]],0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](3,0,null,0,1,"svg-icon",[["name","color-wheel-custom"]],null,null,null,br,yr)),i["\u0275did"](4,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](5,0,null,null,9,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](7,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](-1,null,["Blur"])),(t()(),i["\u0275eld"](9,0,null,null,5,"mat-slider",[["class","mat-slider"],["max","20"],["min","1"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,10)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,10)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,10)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,10)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,10)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,10)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,10)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,10)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,10)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.setValue("shadow.blur",n.value)&&r),r},_c,bc)),i["\u0275did"](10,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"]},{input:"input"}),i["\u0275prd"](1024,null,He,function(t){return[t]},[vc]),i["\u0275did"](12,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](14,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](15,0,null,null,9,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](16,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](17,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Offset X"])),(t()(),i["\u0275eld"](19,0,null,null,5,"mat-slider",[["class","mat-slider"],["max","20"],["min","1"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,20)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,20)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,20)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,20)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,20)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,20)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,20)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,20)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,20)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.setValue("shadow.offsetX",n.value)&&r),r},_c,bc)),i["\u0275did"](20,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"]},{input:"input"}),i["\u0275prd"](1024,null,He,function(t){return[t]}
1,[vc]),i["\u0275did"](22,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](24,16384,null,0,On,[[4,Ze]],null,null),(t()(),i["\u0275eld"](25,0,null,null,9,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](26,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](27,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Offset Y"])),(t()(),i["\u0275eld"](29,0,null,null,5,"mat-slider",[["class","mat-slider"],["max","20"],["min","1"],["role","slider"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,30)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,30)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,30)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,30)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,30)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,30)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,30)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,30)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,30)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.setValue("shadow.offsetY",n.value)&&r),r},_c,bc)),i["\u0275did"](30,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"]},{input:"input"}),i["\u0275prd"](1024,null,He,function(t){return[t]},[vc]),i["\u0275did"](32,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](34,16384,null,0,On,[[4,Ze]],null,null)],function(t,e){var n=e.component;t(e,4,0,"color-wheel-custom"),t(e,10,0,"20","1"),t(e,12,0,n.activeObject.getControl("shadow.blur")),t(e,20,0,"20","1"),t(e,22,0,n.activeObject.getControl("shadow.offsetX")),t(e,30,0,"20","1"),t(e,32,0,n.activeObject.getControl("shadow.offsetY"))},function(t,e){t(e,1,0,i["\u0275nov"](e,2).disabled||null,"NoopAnimations"===i["\u0275nov"](e,2)._animationMode),t(e,9,1,[i["\u0275nov"](e,10).tabIndex,i["\u0275nov"](e,10).disabled,i["\u0275nov"](e,10).max,i["\u0275nov"](e,10).min,i["\u0275nov"](e,10).value,i["\u0275nov"](e,10).vertical?"vertical":"horizontal",i["\u0275nov"](e,10).disabled,i["\u0275nov"](e,10).tickInterval,!i["\u0275nov"](e,10).vertical,i["\u0275nov"](e,10)._invertAxis,i["\u0275nov"](e,10)._isSliding,i["\u0275nov"](e,10).thumbLabel,i["\u0275nov"](e,10).vertical,i["\u0275nov"](e,10)._isMinValue,i["\u0275nov"](e,10).disabled||i["\u0275nov"](e,10)._isMinValue&&i["\u0275nov"](e,10)._thumbGap&&i["\u0275nov"](e,10)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,10)._animationMode,i["\u0275nov"](e,14).ngClassUntouched,i["\u0275nov"](e,14).ngClassTouched,i["\u0275nov"](e,14).ngClassPristine,i["\u0275nov"](e,14).ngClassDirty,i["\u0275nov"](e,14).ngClassValid,i["\u0275nov"](e,14).ngClassInvalid,i["\u0275nov"](e,14).ngClassPending]),t(e,19,1,[i["\u0275nov"](e,20).tabIndex,i["\u0275nov"](e,20).disabled,i["\u0275nov"](e,20).max,i["\u0275nov"](e,20).min,i["\u0275nov"](e,20).value,i["\u0275nov"](e,20).vertical?"vertical":"horizontal",i["\u0275nov"](e,20).disabled,i["\u0275nov"](e,20).tickInterval,!i["\u0275nov"](e,20).vertical,i["\u0275nov"](e,20)._invertAxis,i["\u0275nov"](e,20)._isSli
1ding,i["\u0275nov"](e,20).thumbLabel,i["\u0275nov"](e,20).vertical,i["\u0275nov"](e,20)._isMinValue,i["\u0275nov"](e,20).disabled||i["\u0275nov"](e,20)._isMinValue&&i["\u0275nov"](e,20)._thumbGap&&i["\u0275nov"](e,20)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,20)._animationMode,i["\u0275nov"](e,24).ngClassUntouched,i["\u0275nov"](e,24).ngClassTouched,i["\u0275nov"](e,24).ngClassPristine,i["\u0275nov"](e,24).ngClassDirty,i["\u0275nov"](e,24).ngClassValid,i["\u0275nov"](e,24).ngClassInvalid,i["\u0275nov"](e,24).ngClassPending]),t(e,29,1,[i["\u0275nov"](e,30).tabIndex,i["\u0275nov"](e,30).disabled,i["\u0275nov"](e,30).max,i["\u0275nov"](e,30).min,i["\u0275nov"](e,30).value,i["\u0275nov"](e,30).vertical?"vertical":"horizontal",i["\u0275nov"](e,30).disabled,i["\u0275nov"](e,30).tickInterval,!i["\u0275nov"](e,30).vertical,i["\u0275nov"](e,30)._invertAxis,i["\u0275nov"](e,30)._isSliding,i["\u0275nov"](e,30).thumbLabel,i["\u0275nov"](e,30).vertical,i["\u0275nov"](e,30)._isMinValue,i["\u0275nov"](e,30).disabled||i["\u0275nov"](e,30)._isMinValue&&i["\u0275nov"](e,30)._thumbGap&&i["\u0275nov"](e,30)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,30)._animationMode,i["\u0275nov"](e,34).ngClassUntouched,i["\u0275nov"](e,34).ngClassTouched,i["\u0275nov"](e,34).ngClassPristine,i["\u0275nov"](e,34).ngClassDirty,i["\u0275nov"](e,34).ngClassValid,i["\u0275nov"](e,34).ngClassInvalid,i["\u0275nov"](e,34).ngClassPending])})}var md=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vd=function(t){function e(e,n,i){var r=t.call(this,n,i)||this;return r.activeObject=e,r.history=n,r.controls=i,r.name="color",r}return md(e,t),e}(Rc),yd=i["\u0275crt"]({encapsulation:2,styles:[["color-controls-drawer{display:block}color-controls-drawer color-widget{margin:0 auto}"]],data:{}});function bd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,6,"color-widget",[],[[2,"compact",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,e,n){var i=!0;return"ngModelChange"===e&&(i=0!=(t.component.dirty=!0)&&i),i},mc,fc)),i["\u0275did"](2,49152,null,0,pc,[Pi,b],null,null),i["\u0275prd"](1024,null,He,function(t){return[t]},[pc]),i["\u0275did"](4,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](6,16384,null,0,On,[[4,Ze]],null,null),i["\u0275ncd"](0,0)],function(t,e){var n=e.component;t(e,4,0,n.activeObject.getControl(n.controlName))},function(t,e){t(e,1,0,i["\u0275nov"](e,2).compact,i["\u0275nov"](e,6).ngClassUntouched,i["\u0275nov"](e,6).ngClassTouched,i["\u0275nov"](e,6).ngClassPristine,i["\u0275nov"](e,6).ngClassDirty,i["\u0275nov"](e,6).ngClassValid,i["\u0275nov"](e,6).ngClassInvalid,i["\u0275nov"](e,6).ngClassPending)})}var _d=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),wd=function(t){function e(e,n,i){var r=t.call(this,n,i)||this;return r.activeObject=e,r.history=n,r.controls=i,r.name="outline",r}return _d(e,t),e.prototype.setValue=function(t,e){this.dirty=!0,this.activeObject.setValue(t,e)},e}(Rc),xd=i["\u0275crt"]({encapsulation:2,styles:[["outline-controls-drawer{display:block}outline-controls-drawer .slider-container{margin:0}outline-controls-drawer .content{flex-direction:column}"]],data:{}});function Cd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,16,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,5,"color-widget",[],[[2,"compact",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,mc,fc)),i["\u0275did"](2,49152,null,0,pc,[Pi,b],{compact:[0,"compact"]},null),i["\u0275prd"](1024,null,He,function(t){return[t]},[pc]),i["\u0275did"](4,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](6,16384,null,0,O
1n,[[4,Ze]],null,null),(t()(),i["\u0275eld"](7,0,null,null,9,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](8,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](9,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Outline Width"])),(t()(),i["\u0275eld"](11,0,null,null,5,"mat-slider",[["class","mat-slider"],["max","20"],["min","0"],["role","slider"],["step","1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,12)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,12)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,12)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,12)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,12)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,12)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,12)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,12)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,12)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.setValue("stroke.width",n.value)&&r),r},_c,bc)),i["\u0275did"](12,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"],step:[2,"step"]},{input:"input"}),i["\u0275prd"](1024,null,He,function(t){return[t]},[vc]),i["\u0275did"](14,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](16,16384,null,0,On,[[4,Ze]],null,null)],function(t,e){var n=e.component;t(e,2,0,!0),t(e,4,0,n.activeObject.getControl(n.controlName)),t(e,12,0,"20","0","1"),t(e,14,0,n.activeObject.getControl("stroke.width"))},function(t,e){t(e,1,0,i["\u0275nov"](e,2).compact,i["\u0275nov"](e,6).ngClassUntouched,i["\u0275nov"](e,6).ngClassTouched,i["\u0275nov"](e,6).ngClassPristine,i["\u0275nov"](e,6).ngClassDirty,i["\u0275nov"](e,6).ngClassValid,i["\u0275nov"](e,6).ngClassInvalid,i["\u0275nov"](e,6).ngClassPending),t(e,11,1,[i["\u0275nov"](e,12).tabIndex,i["\u0275nov"](e,12).disabled,i["\u0275nov"](e,12).max,i["\u0275nov"](e,12).min,i["\u0275nov"](e,12).value,i["\u0275nov"](e,12).vertical?"vertical":"horizontal",i["\u0275nov"](e,12).disabled,i["\u0275nov"](e,12).tickInterval,!i["\u0275nov"](e,12).vertical,i["\u0275nov"](e,12)._invertAxis,i["\u0275nov"](e,12)._isSliding,i["\u0275nov"](e,12).thumbLabel,i["\u0275nov"](e,12).vertical,i["\u0275nov"](e,12)._isMinValue,i["\u0275nov"](e,12).disabled||i["\u0275nov"](e,12)._isMinValue&&i["\u0275nov"](e,12)._thumbGap&&i["\u0275nov"](e,12)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,12)._animationMode,i["\u0275nov"](e,16).ngClassUntouched,i["\u0275nov"](e,16).ngClassTouched,i["\u0275nov"](e,16).ngClassPristine,i["\u0275nov"](e,16).ngClassDirty,i["\u0275nov"](e,16).ngClassValid,i["\u0275nov"](e,16).ngClassInvalid,i["\u0275nov"](e,16).ngClassPending])})}var Sd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),kd=function(t){function e(e,n,i,r,o,a,s){var l=t.call(this,n,i)||this;return l.activeObject=e,l.history=n,l.controls=i,l.settings=r,l.
1sanitizer=o,l.fillTool=a,l.importTool=s,l.name="texture",l.defaultTextures=Array.from(Array(28).keys()),l}return Sd(e,t),e.prototype.getTextureBgStyle=function(t){return this.sanitizer.bypassSecurityTrustStyle("url("+this.getTextureUrl(t)+")")},e.prototype.getTextureUrl=function(t){return this.settings.getAssetUrl("images/textures/"+t+".png")},e.prototype.fillWithPattern=function(t){this.dirty=!0,this.fillTool.withPattern(this.getTextureUrl(t))},e.prototype.openUploadDialog=function(){var t=this;this.importTool.importAndGetData().then(function(e){t.dirty=!0,t.fillTool.withPattern(e)})},e}(Rc),Ed=[{type:"linear",x1:-80,y1:0,x2:80,y2:0,colorStops:{0:"#ffe47b",1:"rgb(111,154,211)"}},{type:"linear",x1:0,y1:-120,x2:0,y2:120,colorStops:{0:"#ff4040",1:"#e6399b"}},{type:"linear",x1:-90,y1:-90,x2:90,y2:90,colorStops:{0:"rgb(166,111,213)",.5:"rgba(106, 72, 215, 0.5)",1:"#200772"}},{type:"radial",r1:100,r2:10,x1:0,y1:0,x2:0,y2:0,colorStops:{0:"#FF4F4F",1:"rgb(255, 239, 64)"}},{type:"radial",r1:100,r2:10,x1:0,y1:0,x2:20,y2:20,colorStops:{0:"#ffe47b",.5:"rgb(111,154,211)",1:"rgb(166,111,213)"}},{type:"radial",r1:50,r2:80,x1:45,y1:45,x2:52,y2:50,colorStops:{0:"rgb(155, 237, 0)",1:"rgba(0, 164, 128,0.4)"}},{type:"linear",x1:-90,y1:-90,x2:90,y2:90,colorStops:{0:"#9ecb2d",.5:"#72aa00",1:"#bfd255"}},{type:"radial",r1:100,r2:50,x1:30,y1:0,x2:0,y2:0,colorStops:{0:"#aebcbf",1:"#0a0809"}},{type:"linear",x1:-80,y1:0,x2:80,y2:0,colorStops:{0:"#ffffff",1:"#f6f6f6"}},{type:"linear",x1:0,y1:-120,x2:0,y2:120,colorStops:{0:"#fefcea",1:"#f1da36"}},{type:"linear",x1:-90,y1:-90,x2:90,y2:90,colorStops:{0:"rgb(166,111,213)",.5:"rgba(106, 72, 215, 0.5)",1:"#ff1a00"}},{type:"linear",x1:0,y1:-120,x2:0,y2:120,colorStops:{0:"#b7deed",1:"#21b4e2"}},{type:"linear",x1:-80,y1:100,x2:80,y2:-100,colorStops:{0:"#ffe47b",1:"rgb(111,154,211)"}}],Od=function(){function t(t,e){this.activeObject=t,this.canvas=e}return t.prototype.withPattern=function(t){var e=this;g.fabric.util.loadImage(t,function(t){var n=new g.fabric.Pattern({source:t,repeat:"repeat"});e.activeObject.setValue("fill",n)})},t.prototype.withGradient=function(t,e){void 0===e&&(e="fill");var n=this.activeObject.get();n&&(n.setGradient(e,Ed[t]),this.canvas.render())},t}(),Td=i["\u0275crt"]({encapsulation:2,styles:[["texture-controls-drawer{display:flex;justify-content:flex-start;align-items:center}texture-controls-drawer>.texture{margin:0 5px}texture-controls-drawer>.texture:first-of-type{margin-left:0}"]],data:{}});function Ad(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","texture button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.fillWithPattern(t.context.$implicit)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"div",[["class","bg-image"]],[[4,"background-image",null]],null,null,null,null))],null,function(t,e){t(e,1,0,e.component.getTextureBgStyle(e.context.$implicit))})}function Dd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openUploadDialog()&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,1,"svg-icon",[["name","add-image-custom"]],null,null,null,br,yr)),i["\u0275did"](2,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](3,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](4,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Upload"])),(t()(),i["\u0275and"](16777216,null,null,1,null,Ad)),i["\u0275did"](7,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,"add-image-custom"),t(e,7,0,n.defaultTextures)},null)}var Pd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Id=function(t){function e(e,n,i,r,o,a){var s=t.call(this,n,i)||this;return s.activeObject=e,s.history=n,s.controls=i,s.settings=r,s.sanitizer=o,s.fillTool=a,s.name="gradient",s.defaultGradients=Ed,s}return Pd(e,t),e.prototype.getGradientBgStyle=function(t){return this.sanitizer.bypassSecurityTrustStyle("url
1("+this.getGradientUrl(t)+")")},e.prototype.getGradientUrl=function(t){return this.settings.getAssetUrl("images/gradients/"+t+".png")},e.prototype.fillWithGradient=function(t){this.dirty=!0,this.fillTool.withGradient(t)},e}(Rc),Rd=i["\u0275crt"]({encapsulation:2,styles:[["gradient-controls-drawer{display:flex;justify-content:center;align-items:center}@media only screen and (max-width:768px){gradient-controls-drawer{justify-content:flex-start}}"]],data:{}});function jd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","gradient button-with-image no-label"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.fillWithGradient(t.context.index)&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"div",[["class","bg-image"]],[[4,"background-image",null]],null,null,null,null))],null,function(t,e){t(e,1,0,e.component.getGradientBgStyle(e.context.index+1))})}function Md(t){return i["\u0275vid"](0,[(t()(),i["\u0275and"](16777216,null,null,1,null,jd)),i["\u0275did"](1,802816,null,0,M.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,1,0,e.component.defaultGradients)},null)}var Fd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Nd=function(t){function e(e,n,i){var r=t.call(this,n,i)||this;return r.activeObject=e,r.history=n,r.controls=i,r.name="opacity",r}return Fd(e,t),e.prototype.setValue=function(t,e){this.dirty=!0,this.activeObject.setValue(t,e)},e}(Rc),Bd=i["\u0275crt"]({encapsulation:2,styles:[["opacity-controls-drawer{display:block}"]],data:{}});function Vd(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{colorPickerButton:0}),(t()(),i["\u0275eld"](1,0,null,null,10,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,9,"div",[["class","slider-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](3,0,null,null,2,"div",[["class","slider-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](4,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Opacity"])),(t()(),i["\u0275eld"](6,0,null,null,5,"mat-slider",[["class","mat-slider"],["max","1"],["min","0.1"],["role","slider"],["step","0.1"]],[[8,"tabIndex",0],[1,"aria-disabled",0],[1,"aria-valuemax",0],[1,"aria-valuemin",0],[1,"aria-valuenow",0],[1,"aria-orientation",0],[2,"mat-slider-disabled",null],[2,"mat-slider-has-ticks",null],[2,"mat-slider-horizontal",null],[2,"mat-slider-axis-inverted",null],[2,"mat-slider-sliding",null],[2,"mat-slider-thumb-label-showing",null],[2,"mat-slider-vertical",null],[2,"mat-slider-min-value",null],[2,"mat-slider-hide-last-tick",null],[2,"_mat-animation-noopable",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"focus"],[null,"blur"],[null,"click"],[null,"keydown"],[null,"keyup"],[null,"mouseenter"],[null,"slide"],[null,"slideend"],[null,"slidestart"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==i["\u0275nov"](t,7)._onFocus()&&r),"blur"===e&&(r=!1!==i["\u0275nov"](t,7)._onBlur()&&r),"click"===e&&(r=!1!==i["\u0275nov"](t,7)._onClick(n)&&r),"keydown"===e&&(r=!1!==i["\u0275nov"](t,7)._onKeydown(n)&&r),"keyup"===e&&(r=!1!==i["\u0275nov"](t,7)._onKeyup()&&r),"mouseenter"===e&&(r=!1!==i["\u0275nov"](t,7)._onMouseenter()&&r),"slide"===e&&(r=!1!==i["\u0275nov"](t,7)._onSlide(n)&&r),"slideend"===e&&(r=!1!==i["\u0275nov"](t,7)._onSlideEnd()&&r),"slidestart"===e&&(r=!1!==i["\u0275nov"](t,7)._onSlideStart(n)&&r),"input"===e&&(r=!1!==o.setValue("opacity",n.value)&&r),r},_c,bc)),i["\u0275did"](7,245760,null,0,vc,[i.ElementRef,Oa,i.ChangeDetectorRef,[2,ba],[8,null],[2,Xl]],{max:[0,"max"],min:[1,"min"],step:[2,"step"]},{input:"input"}),i["\u0275prd"](1024,null,He,function(t){return[t]},[vc]),i["\u0275did"](9,540672,null,0,Wn,[[8,null],[8,null],[6,He],[2,Hn]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,Ze,null,[Wn]),i["\u0275did"](11,16384,null,0,O
1n,[[4,Ze]],null,null)],function(t,e){var n=e.component;t(e,7,0,"1","0.1","0.1"),t(e,9,0,n.activeObject.getControl("opacity"))},function(t,e){t(e,6,1,[i["\u0275nov"](e,7).tabIndex,i["\u0275nov"](e,7).disabled,i["\u0275nov"](e,7).max,i["\u0275nov"](e,7).min,i["\u0275nov"](e,7).value,i["\u0275nov"](e,7).vertical?"vertical":"horizontal",i["\u0275nov"](e,7).disabled,i["\u0275nov"](e,7).tickInterval,!i["\u0275nov"](e,7).vertical,i["\u0275nov"](e,7)._invertAxis,i["\u0275nov"](e,7)._isSliding,i["\u0275nov"](e,7).thumbLabel,i["\u0275nov"](e,7).vertical,i["\u0275nov"](e,7)._isMinValue,i["\u0275nov"](e,7).disabled||i["\u0275nov"](e,7)._isMinValue&&i["\u0275nov"](e,7)._thumbGap&&i["\u0275nov"](e,7)._invertAxis,"NoopAnimations"===i["\u0275nov"](e,7)._animationMode,i["\u0275nov"](e,11).ngClassUntouched,i["\u0275nov"](e,11).ngClassTouched,i["\u0275nov"](e,11).ngClassPristine,i["\u0275nov"](e,11).ngClassDirty,i["\u0275nov"](e,11).ngClassValid,i["\u0275nov"](e,11).ngClassInvalid,i["\u0275nov"](e,11).ngClassPending])})}var Ld=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),zd=function(t){function e(e,n,i){var r=t.call(this,n,i)||this;return r.activeObject=e,r.history=n,r.editorControls=i,r.name="textOptions",r}return Ld(e,t),e.prototype.toggleValue=function(t){this.dirty=!0;var e=this.activeObject.getControl(t);e.setValue(!e.value)},e.prototype.toggleItalicStyle=function(){this.dirty=!0;var t=this.activeObject.getControl("text.fontStyle");t.setValue("italic"===t.value?"normal":"italic")},e}(Rc),Hd=i["\u0275crt"]({encapsulation:2,styles:[["text-controls-drawer{display:block;height:100%}text-controls-drawer form{height:100%;display:flex;align-items:center;justify-content:center}text-controls-drawer .selected{color:#009688}"]],data:{}});function Wd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,38,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0;return"submit"===e&&(r=!1!==i["\u0275nov"](t,2).onSubmit(n)&&r),"reset"===e&&(r=!1!==i["\u0275nov"](t,2).onReset()&&r),r},null,null)),i["\u0275did"](1,16384,null,0,Qn,[],null,null),i["\u0275did"](2,540672,null,0,Un,[[8,null],[8,null]],{form:[0,"form"]},null),i["\u0275prd"](2048,null,je,null,[Un]),i["\u0275did"](4,16384,null,0,Tn,[[4,je]],null,null),(t()(),i["\u0275eld"](5,0,null,null,16,"div",[["class","button-group"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,12,"div",[["class","buttons"]],null,null,null,null,null)),(t()(),i["\u0275eld"](7,0,null,null,3,"button",[["mat-icon-button",""]],[[2,"selected",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeObject.setValue("text.align","left")&&i),i},Kl,Gl)),i["\u0275did"](8,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](9,0,null,0,1,"svg-icon",[["name","format-align-left"]],null,null,null,br,yr)),i["\u0275did"](10,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](11,0,null,null,3,"button",[["mat-icon-button",""]],[[2,"selected",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeObject.setValue("text.align","center")&&i),i},Kl,Gl)),i["\u0275did"](12,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](13,0,null,0,1,"svg-icon",[["name","format-align-center"]],null,null,null,br,yr)),i["\u0275did"](14,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](15,0,null,null,3,"button",[["mat-icon-button",""]],[[2,"selected",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeObject.setValue("text.align","right")&&i),i},Kl,Gl)),i["\u0275did"](16,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](17,0,null,0,1,"svg-icon",[["name","format-align-right"]],null,null,null,br,yr)),i["\u0275did"](18,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](19,0,null,null,2,"div",[["class","name bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](20,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](-1,null,["Align Text"])),(t()(),i["\u0275eld"](22,0,null,null,16,"div",[["class","button-group"]],null,null,null,null,null)),(t()(),i["\u0275eld"](23,0,null,null,12,"div",[["class","buttons"]],null,null,null,null,null)),(t()(),i["\u0275eld"](24,0,null,null,3,"button",[["mat-icon-button",""]],[[2,"selected",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.toggleValue("text.underline")&&i),i},Kl,Gl)),i["\u0275did"](25,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](26,0,null,0,1,"svg-icon",[["name","format-underlined"]],null,null,null,br,yr)),i["\u0275did"](27,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](28,0,null,null,3,"button",[["mat-icon-button",""]],[[2,"selected",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.toggleValue("text.linethrough")&&i),i},Kl,Gl)),i["\u0275did"](29,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](30,0,null,0,1,"svg-icon",[["name","format-strikethrough"]],null,null,null,br,yr)),i["\u0275did"](31,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](32,0,null,null,3,"button",[["mat-icon-button",""]],[[2,"selected",null],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.toggleItalicStyle()&&i),i},Kl,Gl)),i["\u0275did"](33,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](34,0,null,0,1,"svg-icon",[["name","format-italic"]],null,null,null,br,yr)),i["\u0275did"](35,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](36,0,null,null,2,"div",[["class","name bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](37,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Format Text"]))],function(t,e){t(e,2,0,e.component.activeObject.model),t(e,10,0,"format-align-left"),t(e,14,0,"format-align-center"),t(e,18,0,"format-align-right"),t(e,27,0,"format-underlined"),t(e,31,0,"format-strikethrough"),t(e,35,0,"format-italic")},function(t,e){var n=e.component;t(e,0,0,i["\u0275nov"](e,4).ngClassUntouched,i["\u0275nov"](e,4).ngClassTouched,i["\u0275nov"](e,4).ngClassPristine,i["\u0275nov"](e,4).ngClassDirty,i["\u0275nov"](e,4).ngClassValid,i["\u0275nov"](e,4).ngClassInvalid,i["\u0275nov"](e,4).ngClassPending),t(e,7,0,"left"===n.activeObject.getValue("text.align"),i["\u0275nov"](e,8).disabled||null,"NoopAnimations"===i["\u0275nov"](e,8)._animationMode),t(e,11,0,"center"===n.activeObject.getValue("text.align"),i["\u0275nov"](e,12).disabled||null,"NoopAnimations"===i["\u0275nov"](e,12)._animationMode),t(e,15,0,"right"===n.activeObject.getValue("text.align"),i["\u0275nov"](e,16).disabled||null,"NoopAnimations"===i["\u0275nov"](e,16)._animationMode),t(e,24,0,n.activeObject.getValue("text.underline"),i["\u0275nov"](e,25).disabled||null,"NoopAnimations"===i["\u0275nov"](e,25)._animationMode),t(e,28,0,n.activeObject.getValue("text.linethrough"),i["\u0275nov"](e,29).disabled||null,"NoopAnimations"===i["\u0275nov"](e,29)._animationMode),t(e,32,0,"italic"===n.activeObject.getValue("text.fontStyle"),i["\u0275nov"](e,33).disabled||null,"NoopAnimations"===i["\u0275nov"](e,33)._animationMode)})}function Ud(t,e){void 0===e&&(e=Ao);var n,i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new Yd(i,e))}}var Yd=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Xd(t,this.delay,this.scheduler))},t}(),Xd=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return D.b(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dis
1patch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new qd(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(hi.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(hi.createComplete())},e}(P.a),qd=function(t,e){this.time=t,this.notification=e},Gd=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Kd=function(t){function e(e,n,i,r){var o=t.call(this,n,i)||this;return o.activeObject=e,o.history=n,o.editorControls=i,o.activeDrawer=r,o.name="objectSettings",o}return Gd(e,t),e.prototype.ngAfterViewInit=function(){var t=this;this.drawers.changes.pipe(Ud(0)).subscribe(function(){t.activeDrawer.set(t.drawers.last||t.drawers.first)})},e.prototype.apply=function(){this.activeObject.deselect(),this.controls.closeAllPanels()},e.prototype.close=function(){this.activeObject.deselect(),this.controls.closeAllPanels()},e}(Rc),Zd=i["\u0275crt"]({encapsulation:2,styles:[["object-settings-drawer{display:block}object-settings-drawer .button-with-image svg-icon{margin-top:8px;vertical-align:middle}@media only screen and (max-width:768px){object-settings-drawer.controls-drawer .content{justify-content:flex-start!important}}"]],data:{}});function Qd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("textControls")&&i),i},null,null)),(t()(),i["\u0275eld"](1,0,null,null,1,"svg-icon",[["name","text-options-custom"]],null,null,null,br,yr)),i["\u0275did"](2,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](3,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](4,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Text Style"]))],function(t,e){t(e,2,0,"text-options-custom")},null)}function Jd(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,44,null,null,null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("shadowControls")&&i),i},null,null)),(t()(),i["\u0275eld"](2,0,null,null,1,"svg-icon",[["name","shadow-custom"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](4,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](5,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Shadow"])),(t()(),i["\u0275eld"](7,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("colorControls")&&i),i},null,null)),(t()(),i["\u0275eld"](8,0,null,null,1,"svg-icon",[["name","color-custom"]],null,null,null,br,yr)),i["\u0275did"](9,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](10,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](11,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Color"])),(t()(),i["\u0275eld"](13,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("outlineControls")&&i),i},null,null)),(t()(),i["\u0275eld"](14,0,null,null,1,"svg-icon",[["name","outline-custom"]],null,null,null,br,yr)),i["\u0275did"](15,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](16,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](17,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](-1,null,["Outline"])),(t()(),i["\u0275eld"](19,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("backgroundControls")&&i),i},null,null)),(t()(),i["\u0275eld"](20,0,null,null,1,"svg-icon",[["name","background-custom"]],null,null,null,br,yr)),i["\u0275did"](21,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](22,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](23,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Background"])),(t()(),i["\u0275eld"](25,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("textureControls")&&i),i},null,null)),(t()(),i["\u0275eld"](26,0,null,null,1,"svg-icon",[["name","texture-custom"]],null,null,null,br,yr)),i["\u0275did"](27,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](28,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](29,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Texture"])),(t()(),i["\u0275eld"](31,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("gradientControls")&&i),i},null,null)),(t()(),i["\u0275eld"](32,0,null,null,1,"svg-icon",[["name","gradient-custom"]],null,null,null,br,yr)),i["\u0275did"](33,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](34,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](35,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Gradient"])),(t()(),i["\u0275eld"](37,0,null,null,5,"div",[["class","button-with-image"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("opacityControls")&&i),i},null,null)),(t()(),i["\u0275eld"](38,0,null,null,1,"svg-icon",[["name","opacity-custom"]],null,null,null,br,yr)),i["\u0275did"](39,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](40,0,null,null,2,"div",[["class","bottom-label"],["trans",""]],null,null,null,null,null)),i["\u0275did"](41,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Opacity"])),(t()(),i["\u0275and"](16777216,null,null,1,null,Qd)),i["\u0275did"](44,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](0,null,null,0))],function(t,e){var n=e.component;t(e,3,0,"shadow-custom"),t(e,9,0,"color-custom"),t(e,15,0,"outline-custom"),t(e,21,0,"background-custom"),t(e,27,0,"texture-custom"),t(e,33,0,"gradient-custom"),t(e,39,0,"opacity-custom"),t(e,44,0,n.activeObject.isText())},null)}function $d(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"shadow-controls-drawer",[["class","controls-drawer"]],null,null,null,gd,fd)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,pd,[Pi,xc,ji,Ri],null,null)],null,null)}function tp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"color-controls-drawer",[["class","controls-drawer"],["controlName","fill"],["name","colorControls"],["trans",""]],null,null,null,bd,yd)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275did"](2,49152,[[1,4],["controlsDrawer",4]],0,vd,[xc,ji,Ri],{name:[0,"name"],controlName:[1,"controlName"]},null),(t()(),i["\u0275ted"](-1,0,["Color"]))],function(t,e){t(e,2,0,"colorControls","fill")},null)}function ep(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"outline-controls-drawer",[["class","controls-drawer"],["controlName","stroke.color"]],null,null,null,Cd,xd)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,wd,[xc,ji,Ri],{controlName:[0,"controlName"]},null)],function(t,e){t(e,1,0,"stroke.color")},null)}function np(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"color-control
1s-drawer",[["class","controls-drawer"],["controlName","backgroundColor"],["name","background"],["trans",""]],null,null,null,bd,yd)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275did"](2,49152,[[1,4],["controlsDrawer",4]],0,vd,[xc,ji,Ri],{name:[0,"name"],controlName:[1,"controlName"]},null),(t()(),i["\u0275ted"](-1,0,["Background Color"]))],function(t,e){t(e,2,0,"background","backgroundColor")},null)}function ip(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"texture-controls-drawer",[["class","controls-drawer"]],null,null,null,Dd,Td)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,kd,[xc,ji,Ri,b,xe,Od,vt],null,null)],null,null)}function rp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"gradient-controls-drawer",[["class","controls-drawer"]],null,null,null,Md,Rd)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,Id,[xc,ji,Ri,b,xe,Od],null,null)],null,null)}function op(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"opacity-controls-drawer",[["class","controls-drawer"]],null,null,null,Vd,Bd)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,Nd,[xc,ji,Ri],null,null)],null,null)}function ap(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"text-controls-drawer",[["class","controls-drawer"]],null,null,null,Wd,Hd)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,zd,[xc,ji,Ri],null,null)],null,null)}function sp(t){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{drawers:1}),(t()(),i["\u0275eld"](1,0,null,null,18,"div",[["class","content"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Jd)),i["\u0275did"](3,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,$d)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,tp)),i["\u0275did"](7,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,ep)),i["\u0275did"](9,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,np)),i["\u0275did"](11,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,ip)),i["\u0275did"](13,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,rp)),i["\u0275did"](15,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,op)),i["\u0275did"](17,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,ap)),i["\u0275did"](19,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.controls.panelIsVisible("objectSettings")),t(e,5,0,n.controls.panelIsVisible("shadowControls")),t(e,7,0,n.controls.panelIsVisible("colorControls")),t(e,9,0,n.controls.panelIsVisible("outlineControls")),t(e,11,0,n.controls.panelIsVisible("backgroundControls")),t(e,13,0,n.controls.panelIsVisible("textureControls")),t(e,15,0,n.controls.panelIsVisible("gradientControls")),t(e,17,0,n.controls.panelIsVisible("opacityControls")),t(e,19,0,n.controls.panelIsVisible("textControls"))},null)}var lp=function(){function t(t,e,n,i,r,o){this.history=t,this.activeObject=e,this.controls=n,this.activeDrawer=i,this.breakpoints=r,this.objects=o}return t.prototype.deleteObject=function(){var t=this.activeObject.get();t&&(this.activeObject.delete(),this.history.add("deleted: "+t.name,"delete-custom"))},t.prototype.openObjectDrawer=function(){var t=this.activeObject.get();switch(this.controls.closeAllPanels(),t.name){case"shape":this.controls.openPanel("shapes");break;case"sticker":this.controls.openPanel("stickers");break;case"text":this.controls.openPanel("text")}},t.prototype.shouldShowSettingsIcon=function(){return!this.activeDrawer.dirty()&&!this.controls.panelIsVisible("objectSettings")},t.prototype.bringActiveObjectToFront=function(){this.activeObject.bringToFront(),this.objects.syncObjects()},t}(),up=i["\u0275crt"]({encapsulation:2,styles:[["mobile-secondary-controls{display:flex;position:absolute;bottom:-60px;height:50px;left:10px;right:10px;padding:5px;max-width:210px;background-color:#fff;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);border-radius:2px}mobile-secondary-controls>.left{flex:1 1 auto;text-align:left}mobile-secondary-controls .right{flex:0 0 100px;width:100%;text-align:right}@media only screen and (max-width:768px){mobile-secondary-controls{top:-50px;height:40px;bottom:0;background-color:transparent;box-shadow:none;padding:0;max-width:none}mobile-secondary-controls .mat-icon-button{background-color:#fff;border-radius:3px;margin:0 3px;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}mobile-secondary-controls .mat-icon-button .mat-button-ripple{border-radius:3px}}"]],data:{}});function cp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,20,null,null,null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openObjectDrawer()&&i),i},Kl,Gl)),i["\u0275did"](2,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](3,0,null,0,1,"svg-icon",[["name","add-circle-outline"]],null,null,null,br,yr)),i["\u0275did"](4,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](5,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.deleteObject()&&i),i},Kl,Gl)),i["\u0275did"](6,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](7,0,null,0,1,"svg-icon",[["name","delete-custom"]],null,null,null,br,yr)),i["\u0275did"](8,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](9,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeObject.flipHorizontal()&&i),i},Kl,Gl)),i["\u0275did"](10,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](11,
10,null,0,1,"svg-icon",[["name","flip"]],null,null,null,br,yr)),i["\u0275did"](12,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](13,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.bringActiveObjectToFront()&&i),i},Kl,Gl)),i["\u0275did"](14,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](15,0,null,0,1,"svg-icon",[["name","flip-to-front"]],null,null,null,br,yr)),i["\u0275did"](16,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](17,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.controls.openPanel("objectSettings")&&i),i},Kl,Gl)),i["\u0275did"](18,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{disabled:[0,"disabled"]},null),(t()(),i["\u0275eld"](19,0,null,0,1,"svg-icon",[["name","settings-custom"]],null,null,null,br,yr)),i["\u0275did"](20,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){var n=e.component;t(e,4,0,"add-circle-outline"),t(e,8,0,"delete-custom"),t(e,12,0,"flip"),t(e,16,0,"flip-to-front"),t(e,18,0,!n.shouldShowSettingsIcon()),t(e,20,0,"settings-custom")},function(t,e){t(e,1,0,i["\u0275nov"](e,2).disabled||null,"NoopAnimations"===i["\u0275nov"](e,2)._animationMode),t(e,5,0,i["\u0275nov"](e,6).disabled||null,"NoopAnimations"===i["\u0275nov"](e,6)._animationMode),t(e,9,0,i["\u0275nov"](e,10).disabled||null,"NoopAnimations"===i["\u0275nov"](e,10)._animationMode),t(e,13,0,i["\u0275nov"](e,14).disabled||null,"NoopAnimations"===i["\u0275nov"](e,14)._animationMode),t(e,17,0,i["\u0275nov"](e,18).disabled||null,"NoopAnimations"===i["\u0275nov"](e,18)._animationMode)})}function hp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,8,"div",[["class","right"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.history.undo()&&i),i},Kl,Gl)),i["\u0275did"](2,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{disabled:[0,"disabled"]},null),(t()(),i["\u0275eld"](3,0,null,0,1,"svg-icon",[["name","undo"]],null,null,null,br,yr)),i["\u0275did"](4,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](5,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.history.redo()&&i),i},Kl,Gl)),i["\u0275did"](6,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{disabled:[0,"disabled"]},null),(t()(),i["\u0275eld"](7,0,null,0,1,"svg-icon",[["name","redo"]],null,null,null,br,yr)),i["\u0275did"](8,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){var n=e.component;t(e,2,0,!n.history.canUndo()),t(e,4,0,"undo"),t(e,6,0,!n.history.canRedo()),t(e,8,0,"redo")},function(t,e){t(e,1,0,i["\u0275nov"](e,2).disabled||null,"NoopAnimations"===i["\u0275nov"](e,2)._animationMode),t(e,5,0,i["\u0275nov"](e,6).disabled||null,"NoopAnimations"===i["\u0275nov"](e,6)._animationMode)})}function dp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"div",[["class","left"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,cp)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,hp)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.activeObject.getId()),t(e,4,0,n.breakpoints.isMobile)},null)}var pp=function(){function t(t,e){this.breakpoints=t,this.activeDrawer=e}return t.prototype.ngAfterContentInit=function(){var t=this;this.drawers.changes.pipe(Ud(0)).subscribe(function(){t.activeDrawer.set(t.drawers.last||t.drawers.first)})},t}(),fp=i["\u0275crt"]({encapsulation:2,styles:[["drawer-wrapper{display:flex;position:absolute;top:0;left:0;height:115px;width:100%;overflow:hidden;align-items:center;padding:0 30px}drawer-wrapper .scroll-container{position:relative;width:100%;height:100%;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;padding:8px 0;margin:0 15px}@media only screen and (max-width:768px){drawer-wrapper{padding:0}drawer-wrapper .scroll-container{margin:0 8px}}drawer-wrapper .controls-drawer{width:100%;height:100%}drawer-wrapper .controls-drawer>.content{display:flex;justify-content:center;align-items:center;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}drawer-wrapper .apply-button,drawer-wrapper .back-button{display:block;height:36px}"]],data:{}});function gp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,
1null),(t()(),i["\u0275ted"](-1,null,["Cancel"]))],null,null)}function mp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Close"]))],null,null)}function vp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"button",[["class","back-button"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeDrawer.close()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275and"](16777216,null,0,1,null,gp)),i["\u0275did"](3,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,mp)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.activeDrawer.dirty()),t(e,5,0,!n.activeDrawer.dirty())},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function yp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"button",[["class","apply-button"],["color","accent"],["mat-raised-button",""],["trans",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeDrawer.apply()&&i),i},Kl,Gl)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),i["\u0275did"](2,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{disabled:[0,"disabled"],color:[1,"color"]},null),(t()(),i["\u0275ted"](-1,0,["Apply"]))],function(t,e){t(e,2,0,!e.component.activeDrawer.canApplyChanges(),"accent")},function(t,e){t(e,0,0,i["\u0275nov"](e,2).disabled||null,"NoopAnimations"===i["\u0275nov"](e,2)._animationMode)})}function bp(t){return i["\u0275vid"](0,[(t()(),i["\u0275and"](16777216,null,null,1,null,vp)),i["\u0275did"](1,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](2,0,null,null,2,"section",[["class","scroll-container"],["customScrollbar",""]],null,null,null,null,null)),i["\u0275did"](3,4341760,null,0,Fu,[i.ElementRef,i.Renderer2,Nu,i.NgZone,Bu,b],{suppressX:[0,"suppressX"]},null),i["\u0275ncd"](null,0),(t()(),i["\u0275and"](16777216,null,null,1,null,yp)),i["\u0275did"](6,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,!n.breakpoints.isMobile),t(e,3,0,!1),t(e,6,0,!n.breakpoints.isMobile)},null)}var _p=function(){function t(t,e,n,i){this.controls=t,this.settings=e,this.activeDrawer=n,this.activeObject=i}return t.prototype.getControlsPosition=function(){return this.settings.get("pixie.ui.controls.position","top")},t}(),wp=i["\u0275crt"]({encapsulation:2,styles:[["editor-controls{display:block;z-index:2;width:100%;background-color:#fff;height:115px;position:relative;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}editor-controls .drawer,editor-controls navigation-bar{position:absolute;top:0;left:0}editor-controls .bottom-label{display:block;margin-top:5px;text-align:center;font-size:16px;text-transform:capitalize}editor-controls .button-with-image{text-align:center;cursor:pointer;margin:0 5px;padding:5px;width:90px;height:90px;flex:0 0 90px;border:1px solid #e0e0e0;border-radius:4px;background-color:#fafafa;transition:box-shadow .3s ease}editor-controls .button-with-image.no-label>img,editor-controls .button-with-image.no-label>svg-icon{width:80px;height:80px}editor-controls .button-with-image:hover{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}editor-controls .button-with-image>.bottom-label{font-size:14px}editor-controls .button-with-image img,editor-controls .button-with-image>svg{display:block;width:60px;height:60px;margin:0 auto}editor-controls .button-with-image svg-icon{width:40px;height:40px;margin:auto}
1editor-controls .button-with-image .bg-image{width:100%;height:100%}editor-controls .button-with-image .image-container{width:100%;position:relative;border-radius:3px;overflow:hidden}editor-controls .button-with-image .overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:rgba(255,255,255,.8);color:#009688;padding-top:5px}editor-controls .button-with-image .overlay svg-icon{width:34px;height:34px}editor-controls .round-action-button{display:flex;justify-content:center;align-items:center;border:1px solid #e0e0e0;width:60px;height:60px;line-height:60px;border-radius:50%;cursor:pointer}editor-controls .round-action-button svg-icon{width:45px;height:45px}@media only screen and (max-width:768px){editor-controls .round-action-button{width:40px;height:40px;line-height:40px;margin-right:5px}editor-controls .round-action-button svg-icon{width:25px;height:25px}}editor-controls .slider-container{display:inline-flex;align-items:center;width:100%;max-width:400px;margin:0 30px}editor-controls .slider-container>.slider-label{text-transform:capitalize;white-space:nowrap;font-size:16px;margin-right:10px;padding-left:8px}editor-controls .slider-container>.mat-slider{flex:1 1 auto}"]],data:{animation:[{type:7,name:"navAnimation",definitions:[{type:0,name:"true",styles:{type:6,styles:{opacity:"*",display:"block"},offset:null},options:void 0},{type:0,name:"false",styles:{type:6,styles:{opacity:"0",display:"none"},offset:null},options:void 0},{type:1,expr:"true <=> false",animation:{type:4,styles:null,timings:"225ms cubic-bezier(.4,0,.2,1)"},options:null}],options:{}},{type:7,name:"controlsAnimation",definitions:[{type:0,name:"true",styles:{type:6,styles:{opacity:"*",display:"flex"},offset:null},options:void 0},{type:0,name:"false",styles:{type:6,styles:{opacity:"0",display:"none"},offset:null},options:void 0},{type:1,expr:"true <=> false",animation:{type:4,styles:null,timings:"225ms cubic-bezier(.4,0,.2,1)"},options:null}],options:{}}]}});function xp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"navigation-bar",[],[[24,"@navAnimation",0]],null,null,dc,lc)),i["\u0275did"](1,49152,null,0,nc,[Ri,y,oc,b,ac,ji,gt,sc],null,null)],null,function(t,e){t(e,0,0,e.component.controls.panelIsVisible("navigation"))})}function Cp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"navigation-bar",[],[[24,"@navAnimation",0]],null,null,dc,lc)),i["\u0275did"](1,49152,null,0,nc,[Ri,y,oc,b,ac,ji,gt,sc],null,null)],null,function(t,e){t(e,0,0,e.component.controls.panelIsVisible("navigation"))})}function Sp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"filter-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,Hc,Fc)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,Mc,[b,Sc,ji,Ri],null,null)],null,function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function kp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"resize-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,th,$c)),i["\u0275did"](1,114688,[[1,4],["controlsDrawer",4]],0,Qc,[y,ji,Jc,Ri,sc],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Ep(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"transform-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,oh,rh)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,nh,[ji,ih,Ri],null,null)],null,function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Op(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"crop-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,dh,ch)),i["\u0275did"](1,4440064,[[1,4],["controlsDrawer",4]],0,sh,[lh,uh,ji,Ri,b],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Tp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"draw-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,kh,bh)),i["\u0275did"](1,245760,[[1,4],["controlsDrawer",4]],0,fh,[yh,b,ji,Ri,y,b],null,
1null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Ap(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"text-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,Dh,Ah)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,Oh,[Th,Pi,ji,Ri,xc],null,null)],null,function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Dp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"shapes-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,Bh,jh)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,Ih,[Rh,ji,Ri,b],null,null)],null,function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Pp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"stickers-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,qh,zh)),i["\u0275did"](1,49152,[[1,4],["controlsDrawer",4]],0,Lh,[Rh,ji,Ri,b],null,null)],null,function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Ip(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"round-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,Jh,Qh)),i["\u0275did"](1,245760,[[1,4],["controlsDrawer",4]],0,Kh,[xc,ji,Ri,Zh],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Rp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"frame-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,sd,id)),i["\u0275did"](1,114688,[[1,4],["controlsDrawer",4]],0,td,[ed,Ri,nd,ji],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function jp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"canvas-background-drawer",[["class","controls-drawer"]],[[2,"hidden",null]],null,null,hd,cd)),i["\u0275did"](1,114688,[[1,4],["controlsDrawer",4]],0,ud,[ji,Ri,y],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,e.component.controls.panelIsOpen("objectSettings"))})}function Mp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"object-settings-drawer",[["class","controls-drawer"]],null,null,null,sp,Zd)
1),i["\u0275did"](1,4243456,[[1,4],["controlsDrawer",4]],0,Kd,[xc,ji,Ri,Qu],null,null)],null,null)}function Fp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"mobile-secondary-controls",[],null,null,null,dp,up)),i["\u0275did"](1,49152,null,0,lp,[ji,xc,Ri,Qu,Nu,Ku],null,null)],null,null)}function Np(t){return i["\u0275vid"](0,[(t()(),i["\u0275and"](16777216,null,null,1,null,xp)),i["\u0275did"](1,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Cp)),i["\u0275did"](3,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](4,0,null,null,26,"drawer-wrapper",[["class","controls-drawer"]],[[24,"@controlsAnimation",0]],null,null,bp,fp)),i["\u0275did"](5,1097728,null,1,pp,[Nu,Qu],null,null),i["\u0275qud"](603979776,1,{drawers:1}),(t()(),i["\u0275and"](16777216,null,0,1,null,Sp)),i["\u0275did"](8,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,kp)),i["\u0275did"](10,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Ep)),i["\u0275did"](12,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Op)),i["\u0275did"](14,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Tp)),i["\u0275did"](16,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Ap)),i["\u0275did"](18,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Dp)),i["\u0275did"](20,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Pp)),i["\u0275did"](22,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Ip)),i["\u0275did"](24,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Rp)),i["\u0275did"](26,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,jp)),i["\u0275did"](28,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,0,1,null,Mp)),i["\u0275did"](30,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Fp)),i["\u0275did"](32,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,"top"===n.getControlsPosition()),t(e,3,0,"bottom"===n.getControlsPosition()),t(e,8,0,n.controls.panelIsOpen("filter")),t(e,10,0,n.controls.panelIsOpen("resize")),t(e,12,0,n.controls.panelIsOpen("rotate")),t(e,14,0,n.controls.panelIsOpen("crop")),t(e,16,0,n.controls.panelIsOpen("draw")),t(e,18,0,n.controls.panelIsOpen("text")),t(e,20,0,n.controls.panelIsOpen("shapes")),t(e,22,0,n.controls.panelIsOpen("stickers")),t(e,24,0,n.controls.panelIsOpen("round")),t(e,26,0,n.controls.panelIsOpen("frame")),t(e,28,0,n.controls.panelIsOpen("background")),t(e,30,0,n.controls.panelIsOpen("objectSettings")),t(e,32,0,n.activeObject.getId())},function(t,e){t(e,4,0,!e.component.controls.panelIsVisible("navigation"))})}var Bp=function(){function t(t,e,n,i,r,o,a,s,l,u,c){this.history=t,this.config=e,this.zoom=n,this.panels=i,this.breakpoints=r,this.activeDrawer=o,this.importTool=a,this.exportTool=s,this.editorUi=l,this.canvas=u,this.floatingPanels=c,this.compactMode=!1}return t.prototype.ngAfterViewInit=function(){var t=this;this.canvas.state.loaded.pipe(Ud(0)).subscribe(function(){t.floatingPanels.openSampleImagePanel()}),this.breakpoints.observe("(max-width: 820px)").subscribe(function(e){return t.compactMode=e.matches})},t.prototype.zoomIn=function(){this.zoom.set(this.zoom.get()+.05)},t.prototype.zoomOut=function(){this.zoom.set(this.zoom.get()-.05)}
1,t.prototype.exportImage=function(t){this.exportTool.export(null,t)},t.prototype.openBackgroundImage=function(){var t=this;this.importTool.openUploadDialog({type:"image",backgroundImage:!0}).then(function(){t.history.add("changed: background Image","photo-library")})},t.prototype.openOverlayImage=function(){var t=this;this.importTool.openUploadDialog().then(function(e){e&&(t.canvas.fabric().setActiveObject(e),t.history.add("added: overlay Image","photo-library"))})},t.prototype.openStateFile=function(){this.importTool.openUploadDialog({type:"state"})},t.prototype.executeOpenButtonAction=function(){var t=this.config.get("pixie.ui.toolbar.openButtonAction");t?t():this.matMenuTrigger.toggleMenu()},t}(),Vp=function(){function t(t,e){this.state=t,this.pan=e,this.maxScale=2,this.minScale=.1,this.currentZoom=1}return t.prototype.get=function(){return this.currentZoom},t.prototype.getPercent=function(){return Math.floor(100*this.currentZoom)},t.prototype.set=function(t,e){if(void 0===e&&(e=!0),!(t<this.minScale||t>this.maxScale)){var n=this.state.original.width*t,i=this.state.original.height*t;this.state.fabric.setZoom(t),e&&(this.state.fabric.setHeight(i),this.state.fabric.setWidth(n)),this.currentZoom=t}},t.prototype.fitToScreen=function(){var t=this.state.calcWrapperSize(),e=t.width-40,n=t.height-40;if(this.state.original.height>n||this.state.original.width>e){var i=Math.min(n/this.state.original.height,e/this.state.original.width);this.set(i)}},t.prototype.init=function(){this.bindMouseWheel(),this.bindToPinchZoom()},t.prototype.bindMouseWheel=function(){var t=this;this.state.fabric.on("mouse:wheel",function(e){e.e.preventDefault(),e.e.stopPropagation(),t.set(e.e.deltaY<0?t.currentZoom+.05:t.currentZoom-.05),t.pan.set(),t.state.fabric.requestRenderAll()})},t.prototype.bindToPinchZoom=function(){var t=this,e=new Hammer.Manager(this.state.maskWrapperEl),n=new Hammer.Pinch;e.add([n]),e.on("pinch",function(e){var n=Math.abs(e.overallVelocity);t.set("pinchout"===e.additionalEvent?t.get()+n:t.get()-n),t.pan.set(),t.state.fabric.requestRenderAll()})},t}(),Lp=function(){function t(t,e,n,i){this.overlayPanel=t,this.state=e,this.openSampleImageDialog=n,this.breakpoints=i}return t.prototype.openSampleImagePanel=function(){this.openSampleImageDialog.open()},t.prototype.toggleHistory=function(){this.closePanel("objects"),this.panelIsOpen("history")?this.historyPanelRef.close():this.openHistoryPanel()},t.prototype.toggleObjects=function(){this.closePanel("history"),this.panelIsOpen("objects")?this.objectsPanelRef.close():this.openObjectsPanel()},t.prototype.openHistoryPanel=function(){this.historyPanelRef=this.overlayPanel.open(Hu,this.getPanelConfig())},t.prototype.openObjectsPanel=function(){this.objectsPanelRef=this.overlayPanel.open(Zu,this.getPanelConfig())},t.prototype.closePanel=function(t){switch(t){case"history":this.historyPanelRef&&this.historyPanelRef.close();break;case"objects":this.objectsPanelRef&&this.objectsPanelRef.close()}},t.prototype.panelIsOpen=function(t){var e="history"===t?this.historyPanelRef:this.objectsPanelRef;return e&&e.isOpen()},t.prototype.getPanelConfig=function(){return{hasBackdrop:!1,positionStrategy:this.getPositionStrategy(),panelClass:"floating-panel"}},t.prototype.getPositionStrategy=function(){return this.breakpoints.isMobile?this.overlayPanel.overlay.position().flexibleConnectedTo(new i.ElementRef(this.state.wrapperEl)).withPositions([{overlayX:"center",overlayY:"center",originX:"center",originY:"center"}]):this.overlayPanel.overlay.position().flexibleConnectedTo(new i.ElementRef(this.state.wrapperEl)).withPositions([{overlayX:"end",overlayY:"bottom",originX:"end",originY:"bottom",offsetY:-10,offsetX:-10}])},t}(),zp=i["\u0275crt"]({encapsulation:2,styles:[["toolbar{display:flex;align-items:center;height:50px;padding:0 20px;color:#fff;background-color:#1976d2;position:relative;z-index:3;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}toolbar .mobile-open-button,toolbar .open-button{position:relative}toolbar .mat-menu-trigger{display:block;position:absolute;
1left:-1px;bottom:-1px}toolbar>.center{display:flex;align-items:center;justify-content:center;width:140px;text-transform:capitalize}toolbar>.center .current{margin:0 8px}toolbar>.center .value{text-align:center}toolbar>.left{margin-right:auto}toolbar>.right{margin-left:auto}toolbar>.right .toggle-history-button{margin-left:40px}toolbar .drawer-name{font-size:1.5rem}toolbar .status-bar{height:30px;background-color:#1565c0;text-align:center;line-height:30px}toolbar .close-button{margin-left:25px}toolbar .open-button svg-icon{margin-right:5px}toolbar .export-button svg-icon{margin-right:2px}@media (max-width:960px){button.mat-icon-button.ng-star-inserted{width:24px;height:24px;flex-shrink:0;line-height:24px;margin:4px}button.mat-icon-button.ng-star-inserted svg-icon{width:16px;height:16px}button.mat-icon-button.ng-star-inserted svg-icon svg{fill:#161616}button.mat-icon-button[disabled] svg{fill:#fff!important}navigation-bar .control-button>.name{font-size:12px!important}}@media (min-width:820px) and (max-width:959px){toolbar{justify-content:space-between}toolbar>.center{width:auto}toolbar button.mat-icon-button{width:30px;height:30px;line-height:30px;margin:4px}toolbar button.mat-icon-button svg{fill:#161616}toolbar button.mat-icon-button[disabled] svg{fill:#fff!important}}@media (min-width:960px){toolbar{flex-direction:column;flex:1 0 440px;width:440px;padding:42px 20px 120px;color:#000;overflow-x:hidden;overflow-y:auto;position:relative;background-color:#fff;height:100%}}@media (min-width:960px) and (max-width:1280px){toolbar{width:380px;flex:1 0 380px}}@media (min-width:960px){toolbar>*{margin:12px}toolbar .mobile-open-button,toolbar .open-button{display:flex;justify-content:center;align-items:center}toolbar .export-button{position:fixed;bottom:24px;right:24px;width:392px;height:80px;margin:0;font-size:28px;line-height:28px;font-weight:600;z-index:1030;box-shadow:0 2px 8px 0 rgba(50,50,50,.3);padding:12px 24px;text-shadow:none;border:none;text-decoration:none;border-radius:4px;letter-spacing:0;color:#fff;background-color:#4d90fe}}@media (min-width:960px) and (max-width:1280px){toolbar .export-button{width:332px}}"]],data:{}});function Hp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"button",[["class","open-button"],["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openOverlayImage()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","photo-library"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](4,0,null,0,2,"span",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](5,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Open"]))],function(t,e){t(e,3,0,"photo-library")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Wp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"button",[["class","export-button"],["
1id","savePng"],["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.exportImage("png")&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","file-download"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](4,0,null,0,2,"span",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](5,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Save"]))],function(t,e){t(e,3,0,"file-download")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Up(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"button",[["class","export-button"],["id","saveJpg"],["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.exportImage("jpg")&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","file-download"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](4,0,null,0,2,"span",[["class","name"],["trans",""]],null,null,null,null,null)),i["\u0275did"](5,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Save"]))],function(t,e){t(e,3,0,"file-download")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Yp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"button",[["class","close-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.editorUi.close()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","close"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,3,0,"close")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Xp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,41,null,null,null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,6,"div",[["class","center"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Hp)),i["\u0275did"](3,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Wp)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Up)),i["\u0275did"](7,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](8,0,null,null,14,"div",[["class","center"]],null,null,null,null,null)),(t()(),i["\u0275eld"](9,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.zoomOut()&&i),i},Kl,Gl)),i["\u0275did"](10,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](11,0,null,0,1,"svg-icon",[["name","remove"]],null,null,null,br,yr)),i["\u0275did"](12,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](13,0,null,null,5,"div",[["class","current"]],null,null,null,null,null)),(t()(),i["\u0275eld"](14,0,null,null,2,"div",[["trans",""]],null,null,null,null,null)),i["\u0275did"](15,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Zoom"])),(t()(),i["\u0275eld"](17,0,null,null,1,"div",[["class","value"]],null,null,null,null,null)),(t()(),i["\u0275ted"](18,null,["","%"])),(t()(),i["\u0275eld"](19,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.zoomIn()&&i),i},Kl,Gl)),i["\u0275did"](20,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](21,0,null,0,1,"svg-icon",[["name","add"]],null,null,null,br,yr)),i["\u0275did"](22,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](23,0,null,null,18,"div",[["class","center"]],null,null,null,null,null)),(t()(),i["\u0275eld"](24,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.history.undo()&&i),i},Kl,Gl)),i["\u0275did"](25,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{disabled:[0,"disabled"]},null),(t()(),i["\u0275eld"](26,0,null,0,1,"svg-icon",[["name","undo"]],null,null,null,br,yr)),i["\u0275did"](27,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](28,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.history.redo()&&i),i},Kl,Gl)),i["\u0275did"](29,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],{disabled:[0,"disabled"]},null),(t()(),i["\u0275eld"](30,0,null,0,1,"svg-icon",[["name","redo"]],null,null,null,br,yr)),i["\u0275did"](31,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](32,0,null,null,3,"button",[["class","toggle-history-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.panels.toggleHistory()&&i),i},Kl,Gl)),i["\u0275did"](33,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](34,0,null,0,1,"svg-icon",[["name","history"]],null,null,null,br,yr)),i["\u0275did"](35,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275eld"](36,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.panels.toggleObjects()&&i),i},Kl,Gl)),i["\u0275did"](37,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](38,0,null,0,1,"svg-icon",[["name","layers"]],null,null,null,br,yr)),i["\u0275did"](39,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Yp)),i["\u0275did"](41,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,!n.config.get("pixie.ui.toolbar.hideOpenButton")),t(e,5,0,!n.config.get("pixie.ui.toolbar.hideSaveButton")),t(e,7,0,!n.config.get("pixie.ui.toolbar.hideSaveButton")),t(e,12,0,"remove"),t(e,22,0,"add"),t(e,25,0,!n.history.canUndo()),t(e,27,0,"undo"),t(e,29,0,!n.history.canRedo()),t(e,31,0,"redo"),t(e,35,0,"history"),t(e,39,0,"layers"),t(e,41,0,n.editorUi.isOverlayMode()||!n.config.get("pixie.ui.toolbar.hideCloseButton"))},function(t,e){var n=e.component;t(e,9,0,i["\u0275nov"](e,10).disabled||null,"NoopAnimations"===i["\u0275nov"](e,10)._animationMode),t(e,18,0,n.zoom.getPercent()),t(e,19,0,i["\u0275nov"](e,20).disabled||null,"NoopAnimations"===i["\u0275nov"](e,20)._animationMode),t(e,24,0,i["\u0275nov"](e,25).disabled||null,"NoopAnimations"===i["\u0275nov"](e,25)._animationMode),t(e,28,0,i["\u0275nov"](e,29).disabled||null,"NoopAnimations"===i["\u0275nov"](e,29)._animationMode),t(e,32,0,i["\u0275nov"](e,33).disabled||null,"NoopAnimations"===i["\u0275nov"](e,33)._animationMode),t(e,36,0,i["\u0275nov"](e,37).disabled||null,"NoopAnimations"===i["\u0275nov"](e,37)._animationMode)})}function qp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeDrawer.close()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","close"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,3,0,"close")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Gp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"button",[["class","mobile-open-button"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.openOverlayImage()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","photo-library"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,3,0,"photo-library")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Kp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],null,
1null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.activeDrawer.getDisplayName())})}function Zp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"span",[["trans",""]],null,null,null,null,null)),i["\u0275did"](1,4341760,null,0,ru,[i.ElementRef,ou,b],null,null),(t()(),i["\u0275ted"](-1,null,["Editor"]))],null,null)}function Qp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.activeDrawer.apply()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","check"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,3,0,"check")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function Jp(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"button",[["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.exportImage()&&i),i},Kl,Gl)),i["\u0275did"](1,180224,null,0,Pa,[i.ElementRef,Hr,Oa,[2,Xl]],null,null),(t()(),i["\u0275eld"](2,0,null,0,1,"svg-icon",[["name","file-download"]],null,null,null,br,yr)),i["\u0275did"](3,114688,null,0,vr,[i.ElementRef,i.Renderer2,b],{name:[0,"name"]},null)],function(t,e){t(e,3,0,"file-download")},function(t,e){t(e,0,0,i["\u0275nov"](e,1).disabled||null,"NoopAnimations"===i["\u0275nov"](e,1)._animationMode)})}function $p(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,15,null,null,null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,4,"div",[["class","left"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,qp)),i["\u0275did"](3,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Gp)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](6,0,null,null,4,"div",[["class","center drawer-name"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Kp)),i["\u0275did"](8,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Zp)),i["\u0275did"](10,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](11,0,null,null,4,"div",[["class","right"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Qp)),i["\u0275did"](13,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,Jp)),i["\u0275did"](15,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.activeDrawer.isOpen()),t(e,5,0,!n.activeDrawer.isOpen()),t(e,8,0,n.activeDrawer.isOpen()),t(e,10,0,!n.activeDrawer.isOpen()),t(e,13,0,n.activeDrawer.isOpen()),t(e,15,0,!n.activeDrawer.isOpen())},null)}function tf(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{matMenuTrigger:0}),(t()(),i["\u0275and"](16777216,null,null,1,null,Xp)),i["\u0275did"](2,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,$p)),i["\u0275did"](4,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,!n.compactMode),t(e,4,0,n.compactMode)},null)}var ef=function(){function t(t,e,n){this.domSanitizer=t,this.el=e,this.config=n}return t.prototype.ngAfterViewInit=function(){this.el.nativeElement.style.backgroundImage=this.getStyle()},t.prototype.getStyle=function(){return"url("+this.config.getAssetUrl(this.url)+")"},t}();function nf(t,e){return function(n){return n.lift(new rf(t,e))}}var rf=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new of(t,this.compare,this.keySelector))},t}(),of=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return D.b(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Object(Do.a)(this.keySelector)(t))===Po.a)return this.destination.error(Po.a.e);var n=!1;if(this.hasKey){if((n=Object(Do.a)(this.compare)(this.key,e))===Po.a)return this.destination.error(Po.a.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(P.a),af=function(){function t(t,e,n,i,r,o,a,s,l,u,c,h){this.canvas=t,this.history=e,this.controls=n,this.breakpoints=i,this.floatingPanels=r,this.canvasKeybinds=o,this.el=a,this.activeObject=s,this.activeDrawer=l,this.editorUi=u,this.state=c,this.config=h}return t.prototype.ngOnInit=function(){var t=this;this.state.wrapperEl=this.canvasWrapper.nativeElement,this.state.maskWrapperEl=this.canvasMaskWrapper.nativeElement,this.canvas.init().subscribe(function(){t.canvasKeybinds.init(),t.fitCanvasToScreenOnResize(),t.openObjectSettingsOnDoubleClick(),t.closePanelsOnObjectDelete(),t.handleObjectSelection(),t.updateHistoryOnObjectModification(),t.canvasMaskWrapper.nativeElement.classList.remove("not-loaded")})},t.prototype.closePanelsOnObjectDelete=function(){var t=this;this.canvas.fabric().on("object:delete",function(){return t.controls.closeAllPanels()})},t.prototype.openObjectSettingsOnDoubleClick=function(){var t=this;this.canvas.fabric().on("mouse:dblclick",function(){t.activeObject.getId()&&!t.activeDrawer.dirty()&&t.controls.openPanel
1("objectSettings")})},t.prototype.updateHistoryOnObjectModification=function(){var t=this;this.canvas.fabric().on("object:modified",function(e){e.e&&!t.activeDrawer.dirty()&&t.history.replaceCurrent()})},t.prototype.handleObjectSelection=function(){var t=this;this.canvas.fabric().on("selection:created",function(e){return t.onObjectSelection(e)}),this.canvas.fabric().on("selection:updated",function(e){return t.onObjectSelection(e)}),this.canvas.fabric().on("selection:cleared",function(e){e.e&&!t.activeDrawer.dirty()&&t.controls.closeCurrentPanel()})},t.prototype.onObjectSelection=function(t){t.e&&!this.activeDrawer.dirty()&&this.controls.openObjectDrawer(t.target.name)},t.prototype.fitCanvasToScreenOnResize=function(){var t=this;Oo(window,"resize").pipe(wa(200),nf()).subscribe(function(e){t.canvas.zoom.fitToScreen()})},t}(),sf=function(){function t(t,e,n){this.state=t,this.keybinds=e,this.activeObject=n,this.init()}return t.prototype.init=function(){var t=this;this.state.loaded.subscribe(function(){t.keybinds.add("arrow_up",function(){t.activeObject.move("top",-1)}),t.keybinds.add("arrow_right",function(){t.activeObject.move("left",1)}),t.keybinds.add("arrow_down",function(){t.activeObject.move("top",1)}),t.keybinds.add("arrow_left",function(){t.activeObject.move("left",-1)}),t.keybinds.add("delete",function(){t.activeObject.isEditing()||t.activeObject.delete()})})},t}(),lf=i["\u0275crt"]({encapsulation:2,styles:[["image-editor{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden;margin:0 auto;position:relative}image-editor .canvas-wrapper .canvas-mask-wrapper{margin:auto}image-editor .canvas-wrapper .canvas-mask-wrapper.empty,image-editor .canvas-wrapper .canvas-mask-wrapper.not-loaded{visibility:hidden}image-editor .canvas-wrapper .canvas-container{margin:auto;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}image-editor .workarea{order:2;height:calc(100% - 50px)}image-editor toolbar{order:1}image-editor .canvas-wrapper{width:100%;display:flex;align-items:center;height:calc(100% - 105px)}@media (min-width:960px){image-editor{display:flex;flex-direction:row;background:url(/editor/assets/viewport-bg.9be0d85a5927c82a2e84.png)}image-editor .canvas-wrapper{height:100%}image-editor .workarea{order:1;display:flex;flex-direction:column;width:calc(100% - 440px);height:100%;overflow:hidden;margin:0;flex:0 0 auto}image-editor toolbar{order:2}image-editor .editor-wrapper{display:flex;flex-direction:column}}@media (min-width:960px) and (max-width:1280px){image-editor .workarea{width:calc(100% - 380px)}}"]],data:{}});function uf(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,[[3,0]],null,1,"editor-controls",[],null,null,null,Np,wp)),i["\u0275did"](1,49152,[["editorControls",4]],0,_p,[Ri,b,Qu,xc],null,null)],null,null)}function cf(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,[[3,0]],null,1,"editor-controls",[],null,null,null,Np,wp)),i["\u0275did"](1,49152,[["editorControls",4]],0,_p,[Ri,b,Qu,xc],null,null)],null,null)}function hf(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"toolbar",[],null,
1null,null,tf,zp)),i["\u0275did"](1,4243456,null,0,Bp,[ji,b,Vp,Lp,Nu,Qu,vt,oc,gt,y,Lp],null,null)],null,null)}function df(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{canvasWrapper:0}),i["\u0275qud"](402653184,2,{canvasMaskWrapper:0}),i["\u0275qud"](671088640,3,{editorControls:0}),(t()(),i["\u0275eld"](3,0,null,null,9,"div",[["class","workarea"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,uf)),i["\u0275did"](5,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](6,0,[[1,0],["canvasWrapper",1]],null,4,"div",[["backgroundImage","images/viewport-bg.png"],["class","canvas-wrapper"]],null,null,null,null,null)),i["\u0275did"](7,4210688,null,0,ef,[xe,i.ElementRef,b],{url:[0,"url"]},null),(t()(),i["\u0275eld"](8,0,[[2,0],["canvasMaskWrapper",1]],null,2,"div",[["backgroundImage","images/canvas-bg.png"],["class","canvas-mask-wrapper not-loaded"]],[[2,"empty",null]],null,null,null,null)),i["\u0275did"](9,4210688,null,0,ef,[xe,i.ElementRef,b],{url:[0,"url"]},null),(t()(),i["\u0275eld"](10,0,null,null,0,"canvas",[],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,cf)),i["\u0275did"](12,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,hf)),i["\u0275did"](14,16384,null,0,M.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,"top"===n.editorUi.getControlsPosition()),t(e,7,0,"images/viewport-bg.png"),t(e,9,0,"images/canvas-bg.png"),t(e,12,0,"bottom"===n.editorUi.getControlsPosition()),t(e,14,0,!n.editorUi.shouldHideToolbar())},function(t,e){t(e,8,0,e.component.canvas.state.isEmpty())})}var pf=i["\u0275crt"]({encapsulation:2,styles:[["pixie-editor{display:block;width:100%;height:100%}pixie-editor .overlay{display:none}"]],data:{animation:[{type:7,name:"editorVisible",definitions:[{type:0,name:"true",styles:{type:6,styles:{opacity:"*",display:"block"},offset:null},options:void 0},{type:0,name:"false",styles:{type:6,styles:{opacity:"0",display:"none"},offset:null},options:void 0},{type:1,expr:"true <=> false",animation:{type:4,styles:null,timings:"325ms cubic-bezier(.4,0,.2,1)"},options:null}],options:{}}]}});function ff(t){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{overlay:0}
1),(t()(),i["\u0275eld"](1,0,null,null,1,"image-editor",[],null,null,null,df,lf)),i["\u0275did"](2,114688,null,0,af,[y,ji,Ri,Nu,Lp,sf,i.ElementRef,xc,Qu,gt,yi,b],null,null),(t()(),i["\u0275eld"](3,0,[[1,0],["overlay",1]],null,0,"div",[["class","overlay"]],null,null,null,null,null)),(t()(),i["\u0275eld"](4,0,null,null,1,"div",[["class","loader"]],null,null,null,null,null)),i["\u0275ncd"](null,0)],function(t,e){t(e,2,0)},null)}var gf=i["\u0275ccf"]("pixie-editor",Fi,function(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"pixie-editor",[],[[40,"@editorVisible",0],[2,"theme-dark",null],[2,"theme-light",null],[2,"mode-overlay",null],[2,"mode-inline",null],[4,"width",null],[4,"height",null],[2,"ui-compact",null]],null,null,ff,pf)),i["\u0275did"](1,114688,null,0,Fi,[i.ElementRef,gt],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,i["\u0275nov"](e,1).animate,i["\u0275nov"](e,1).darkTheme,i["\u0275nov"](e,1).lightTheme,i["\u0275nov"](e,1).overlayMode,i["\u0275nov"](e,1).inlineMode,i["\u0275nov"](e,1).width,i["\u0275nov"](e,1).height,i["\u0275nov"](e,1).compact)})},{},{},["*"]),mf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),vf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mf(e,t),e.prototype._createContainer=function(){var t=document.createElement("div");t.classList.add("editor-overlay-container","cdk-overlay-container"),document.querySelector("image-editor").appendChild(t),this._containerElement=t},e}(Jo),yf=function(){function t(t){this.i18n=t}return t.prototype.handle=function(t,e){var n=this.parseJson(t.error),i={uri:e,messages:{},type:"http",status:t.status,originalError:new Error(t.message)};return 403!==t.status&&401!==t.status||this.handle403Error(n),n&&(i.messages=n.messages||{}),ui(i)},t.prototype.parseJson=function(t){if("string"!=typeof t)return t;try{return JSON.parse(t)}catch(t){return{}}},t}(),bf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),_f=function(t){function e(e,n){var i=t.call(this,e)||this;return i.i18n=e,i.toast=n,i}return bf(e,t),e.prototype.handle403Error=function(t){},e}(yf);function wf(t){return function(e){var n=new xf(t),i=e.lift(n);return n.caught=i}}var xf=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Cf(t,this.selector,this.caught))},t}(),Cf=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return D.b(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(Object(_t.a)(this,n))}},e}(wt.a),Sf=function(){function t(t,e){this.httpClient=t,this.errorHandler=e}return t.prototype.get=function(t,e){var n=this;void 0===e&&(e={});var i=this.generateHttpParams(e);return this.httpClient.get(this.prefixUri(t),{params:i}).pipe(wf(function(e){return n.errorHandler.handle(e,t)}))},t.prototype.post=function(t,e){var n=this;return void 0===e&&(e=null),this.httpClient.post(this.prefixUri(t),e).pipe(wf(function(e){return n.errorHandler.handle(e,t)}))},t.prototype.put=function(t,e){var n=this;return void 0===e&&(e={}),e=this.spoofHttpMethod(e,"PUT"),this.httpClient.post(this.prefixUri(t),e).pipe(wf(function(e){return n.errorHandler.handle(e,t)}))},t.prototype.delete=function(t,e){var n=this;return void 0===e&&(e={}),e=this.spoofHttpMethod(e,"DELETE"),this.httpClient.post(this.prefixUri(t),e).pipe(wf(function(e){return n.errorHandler.handle(e,t)}))},t.prototype.prefixUri=function(e){return e.indexOf("://")>-1?e:t.prefix+"/"+e},t.prototype.generateHttpParams=function(t){var e=new z;for(var n in t)e=e.append(n,t[n]);return e}
1,t.prototype.spoofHttpMethod=function(t,e){return t instanceof FormData?t.append("_method",e):t._method=e,t},t.prefix="secure",t}(),kf=function(){function t(t,e){this.http=t,this.settings=e}return t.prototype.all=function(){return this.http.get("localizations")},t.prototype.get=function(t){return this.http.get("localizations/"+t)},t.prototype.create=function(t){return this.http.post("localizations",t)},t.prototype.update=function(t,e){return this.http.put("localizations/"+t,e)},t.prototype.delete=function(t){return this.http.delete("localizations/"+t)},t.prototype.setDefault=function(t){return this.settings.save({client:{"i18n.default_localization":t}})},t}(),Ef=function(t){return t[t.ENTER=13]="ENTER",t[t.SPACE=32]="SPACE",t[t.ESCAPE=27]="ESCAPE",t[t.DELETE=46]="DELETE",t[t.ARROW_UP=38]="ARROW_UP",t[t.ARROW_RIGHT=39]="ARROW_RIGHT",t[t.ARROW_DOWN=40]="ARROW_DOWN",t[t.ARROW_LEFT=37]="ARROW_LEFT",t[t.S=83]="S",t[t.N=78]="N",t[t.A=65]="A",t[t.T=84]="T",t[t.B=66]="B",t[t.C=67]="C",t[t.O=79]="O",t[t.P=80]="P",t[t.R=82]="R",t[t.F=70]="F",t[t.Y=89]="Y",t[t.Z=90]="Z",t}({}),Of=function(){function t(){this.bindings=[],this.listenOn(document)}return t.prototype.add=function(t,e){this.bindings.push({keybind:this.parseKeybindString(t),keybindString:t,callback:e})},t.prototype.addWithPreventDefault=function(t,e){this.bindings.push({keybind:this.parseKeybindString(t),keybindString:t,callback:e,preventDefault:!0})},t.prototype.listenOn=function(t){var e=this;t.addEventListener("keydown",function(t){e.executeBindings(t)})},t.prototype.executeBindings=function(t){var e=this;
1this.bindings.forEach(function(n){e.bindingMatches(n.keybind,t)&&(n.preventDefault&&t.preventDefault&&t.preventDefault(),n.callback(t))})},t.prototype.bindingMatches=function(t,e){return Ef[t.key.toUpperCase()]===e.keyCode&&e.ctrlKey===t.ctrl&&e.shiftKey===t.shift},t.prototype.parseKeybindString=function(t){var e={ctrl:!1,shift:!1,key:""};return t.trim().split("+").forEach(function(t){"ctrl"===(t=t.trim().toLowerCase())?e.ctrl=!0:"shift"===t?e.shift=!0:e.key=t}),e},t}(),Tf=function(){function t(t,e){this.httpClient=t,this.validator=e}return t.prototype.getFileContents=function(t){return this.httpClient.get("uploads/"+t.id)},t.prototype.downloadFile=function(t){},t.downloadFileFromUrl=function(t,e){var n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},t.prototype.delete=function(t){return this.httpClient.delete("uploads",{ids:t})},t.prototype.uploadFiles=function(t,e){return void 0===e&&(e={}),e.uri||(e.uri="uploads"),this.upload(t,e.uri,e.httpParams)},t.prototype.upload=function(t,e,n){void 0===n&&(n={});var i=new FormData;m.isIterable(t)||(t=[t]);for(var r=0;r<t.length;r++)i.append("files[]",t[r]);for(var o in n)i.append(o,n[o]);return this.httpClient.post(e,i)},t.prototype.filesAreInvalid=function(t,e){return void 0===e&&(e=!1),this.validator.validateFiles(t,e)},t.prototype.openUploadDialog=function(e){return void 0===e&&(e={}),new Promise(function(n,i){var r=t.makeUploadInput(e);r.onchange=function(t){n(t.target.files),r.remove()},document.body.appendChild(r),r.click()})},t.makeUploadInput=function(t){void 0===t&&(t={});var e=document.createElement("input");return e.type="file",e.multiple=!0,e.accept=t.accept,e.classList.add("hidden"),e.id="hidden-file-upload-input",document.body.appendChild(e),e},t}(),Af=function(){function t(t){this.state=t,this.lastPosX=0,this.lastPosY=0,this.isDragging=!1}return t.prototype.set=function(t){if(t||(t=this.lastE),t){var e=this.state.calcWrapperSize(),n=this.state.fabric.getWidth(),i=this.state.fabric.getHeight(),r=this.getClientCoords(t),o=this.state.fabric.viewportTransform[4]+r.clientX-this.lastPosX,a=this.state.fabric.viewportTransform[5]+r.clientY-this.lastPosY;o>0||e.width>n?o=0:o+Math.floor(n)-e.width<0&&(o=e.width-Math.floor(n)),a>0||e.height>i?a=0:a+Math.floor(i)-e.height<0&&(a=e.height-Math.floor(i)),this.state.fabric.viewportTransform[4]=o,this.state.fabric.viewportTransform[5]=a,this.state.fabric.requestRenderAll(),this.lastPosX=r.clientX,this.lastPosY=r.clientY,this.lastE=t}},t.prototype.reset=function(){this.lastPosX=0,this.lastPosY=0,this.lastE=null,this.state.fabric.viewportTransform[4]=0,this.state.fabric.viewportTransform[5]=0},t.prototype.init=function(){var t=this;this.state.fabric.on("mouse:down",function(e){if(e.target)return t.isDragging=!1;var n=t.getClientCoords(e.e);t.isDragging=!0,t.lastPosX=n.clientX,t.lastPosY=n.clientY}),this.state.fabric.on("mouse:move",function(e){t.isDragging&&t.set(e.e)}),this.state.fabric.on("mouse:up",function(){t.isDragging=!1})},t.prototype.getClientCoords=function(t){var e=0,n=0;return(t=t).touches&&t.touches[0]?(e=t.touches[0].clientX,n=t.touches[0].clientY):(e=t.clientX,n=t.clientY),{clientX:e,clientY:n}},t}(),Df=function(){function t(t,e,n){this.config=t,this.activeFrame=e,this.canvas=n}return t.prototype.fillParts=function(t){var e=this;this.patternCache.forEach(function(n){e.fillPartWithPattern(n,t)})},t.prototype.fillPartWithPattern=function(t,e){var n=new g.fabric.StaticCanvas;n.add(t.img);var i=new g.fabric.Pattern({source:function(){var e=t.img.getScaledWidth(),i=t.img.getScaledHeight();return e>1&&i>1&&(n.setDimensions({width:e,height:i}),n.renderAll()),n.getElement()},repeat:"repeat"===e?"repeat":"no-repeat"});this.activeFrame[t.name].set("fill",i)},t.prototype.scale=function(t){var e=this,n=this.activeFrame.config.mode;this.patternCache&&(t/=this.canvas.fabric().getRetinaScaling(),this.patternCache.forEach(function(i){"top"===i.name||"bottom"===i.name?"stretch"===n?(e.scalePatternToWidth(i.img,e.canvas.state.original.width-2*t+4),e.scalePatternToHeight(i.img,t)):i.img.scaleToHeight(t):"left"!==i.name&&"right"!==i.name||"stretch"!==n?i.img.scaleToWidth(t):(e.scalePatternToWidth(i.img,t),e.scalePatternToHeight(i.img,e.canvas.state.original.height-2*t+4))}))},t.prototype.scalePatternToWidth=function(t,e){var n=t.getBoundingRect
1().width/t.getScaledWidth();t.set("scaleX",e/t.width/n),t.setCoords()},t.prototype.scalePatternToHeight=function(t,e){var n=t.getBoundingRect().height/t.getScaledHeight();t.set("scaleY",e/t.height/n),t.setCoords()},t.prototype.load=function(t){var e=this,n=this.activeFrame.getPartNames().map(function(n){return new Promise(function(i){var r=new Image;r.onload=function(){i({name:n,img:new g.fabric.Image(r,v)})},r.src=e.getPartUrl(t,n)})});return Promise.all(n).then(function(n){e.patternCache=n,e.fillParts(t.mode)})},t.prototype.getPartUrl=function(t,e){return this.getBaseUrl(t)+"/"+e+".png"},t.prototype.getBaseUrl=function(t){return this.config.getAssetUrl("images/frames/"+t.name)},t}(),Pf=function(){function t(t,e,n,i){this.config=t,this.activeFrame=e,this.canvas=n,this.patterns=i}return t.prototype.build=function(t,e){var n=this;if(this.createGroup(t),this.createParts(),this.resize(e),this.activeFrame.config=t,this.canvas.fabric().add(this.activeFrame.group),"basic"===t.mode)return this.canvas.render();this.patterns.load(t).then(function(){n.patterns.scale(e),n.canvas.render()})},t.prototype.createGroup=function(t){this.activeFrame.group=new g.fabric.Group([],Object.assign({name:"frame.group",excludeFromExport:!0,width:this.canvas.state.original.width,height:this.canvas.state.original.height,data:{frameName:t.name}},v))},t.prototype.createParts=function(){var t=this;this.activeFrame.getPartNames().forEach(function(e){t.activeFrame[e]=new g.fabric.Rect(Object.assign({},v,{name:"frame.rect."+e})),t.activeFrame.group.add(t.activeFrame[e])})},t.prototype.resize=function(t){var e=this.canvas.state.original.width,n=this.canvas.state.original.height,i=this.activeFrame,r=t;this.positionPart("topLeft",{width:r,height:r}),this.positionPart("topRight",{left:e-i.topLeft.getScaledWidth(),width:r,height:r}),this.positionPart("top",{left:i.topLeft.getScaledWidth()-2,width:e-i.topLeft.getScaledWidth()-i.topRight.getScaledWidth()+4,height:r}),this.positionPart("bottomLeft",{top:n-i.topLeft.getScaledHeight(),width:r,height:r}),this.positionPart("left",{top:i.topLeft.getScaledHeight()-2,width:r,height:n-i.topLeft.getScaledHeight()-i.bottomLeft.getScaledHeight()+4}),this.positionPart("bottomRight",{left:e-i.bottomLeft.getScaledWidth(),top:n-i.topRight.getScaledWidth(),width:r,height:r}),this.positionPart("bottom",{left:i.bottomLeft.getScaledWidth()-2,top:n-i.top.getScaledHeight(),width:i.top.getScaledWidth()+4,height:r}),this.positionPart("right",{left:e-i.left.getScaledWidth(),top:i.topRight.getScaledHeight()-2,width:i.left.width,height:n-i.topRight.getScaledHeight()-i.bottomRight.getScaledHeight()+4})},t.prototype.positionPart=function(t,e){e.top=-this.activeFrame.group.height/2+(e.top||0),e.left=-this.activeFrame.group.width/2+(e.left||0),this.activeFrame[t].set(e)},t}(),If=n("S1nX"),Rf=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),jf=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.http=e,i.errorHandler=n,i.cache={},i}return Rf(e,t),e.prototype.getWithCache=function(t,e){var n=this;void 0===e&&(e={});var i=this.makeCacheKey(t,e);if(this.cache[i]instanceof C.a)return this.cache[i];if(this.cache[i])return O(this.cache[i]);var r=this.get(t,e).pipe(Object(If.a)());return r.subscribe(function(t){return n.cache[i]=t},function(){}),this.cache[i]=r},e.prototype.post=function(e,n,i){return this.clearCache(),t.prototype.post.call(this,e,n)},e.prototype.put=function(e,n,i){return void 0===n&&(n={}),this.clearCache(),t.prototype.put.call(this,e,n)},e.prototype.delete=function(e,n,i){return void 0===n&&(n={}),this.clearCache(),t.prototype.delete.call(this,e,n)},e.prototype.clearCache=function(){this.cache={}},e.prototype.makeCacheKey=function(t,e){return t+JSON.stringify(e)},e}(Sf),Mf=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return D.b(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new fi.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(ni.a),Ff=function(){function t(t){this.config=t,this.original=[],this.filtered=[],this.defaultCategory="handwriting",this.filters=new jn({search:new Rn,category:new Rn(this.defaultCategory)}),this.totalPages=0,this.perPage=10,this.currentPage=0,this.current$=new Mf([]),this.defaultCategory=this.config.get("pixie.tools.text.defaultCategory"),this.bindToFilters()}return t.prototype.next=function(){this.totalPages>this.currentPage+1&&this.setPage(this.currentPage+1)},t.prototype.previous=function(){this.currentPage-1>0&&this.setPage(this.currentPage-1)},t.prototype.setPage=function(t){this.currentPage=t,this.current$.next(this.filtered[this.currentPage])},t.prototype.filter=function(t,e){var n=[];this.original.forEach(function(i){var r=!e||i.family.toLowerCase().indexOf(e)>-1;i.category.toLowerCase()===t&&r&&n.push(i)}),this.filtered=this.chunkFonts(n),this.totalPages=this.filtered.length,this.setPage(0)},t.prototype.setFonts=function(t){this.original=t,this.filter(this.filters.get("category").value)},t.prototype.reset=function(){this.filters.setValue({search:null,category:this.defaultCategory}),this.original=[],this.totalPages=0,this.currentPage=0,this.current$.next([])},t.prototype.chunkFonts=function(t){for(var e=[];t.length>0;)e.push(t.splice(0,this.perPage));return e},t.prototype.bindToFilters=function(){var t=this;this.filters.valueChanges.pipe(wa(100),nf()).subscribe(function(e){return t.filter(e.category,e.search)})},t}(),Nf=function(){function t(t,e){this.canvas=t,this.canvasState=e,this.lineStyle={stroke:"rgba(255,255,255,0.3)",strokeWidth:5,strokeLineCap:"round",strokeLineJoin:"round"}}return t.prototype.add=function(t){this.createGroup(),this.addText(t),this.addLines(),this.canvas.fabric().add(this.watermark),this.canvas.render()},t.prototype.remove=function(){this.watermark&&(this.canvas.fabric().remove(this.watermark),this.watermark=null,this.canvas.render())},t.prototype.createGroup=function(){this.watermark=new g.fabric.Group(null,Object.assign({},v,{width:this.canvasState.original.width,height:this.canvasState.original.height,excludeFromExport:!0,top:0,left:0}))},t.prototype.addText=function(t){var e=new g.fabric.Text(t,{fill:"rgba(255,255,255,0.3)",strokeWidth:2,stroke:"rgba(255,255,255,0.4)",originX:"center",originY:"center",fontWeight:600,fontSize:150,fontFamily:"Courier New"});e.scaleToWidth(this.canvasState.original.width/2),this.watermark.add(e)},t.prototype.addLines=function(){var t=this.watermark.getObjects("text")[0],e=this.canvasState.original.width/2,n=this.canvasState.original.height/2,i=t.width/4,r=new g.fabric.Line(null,this.lineStyle),o=new g.fabric.Line(null,this.lineStyle),a=new g.fabric.Line(null,this.lineStyle),s=new g.fabric.Line(null,this.lineStyle);this.watermark.add(r,o,a,s),r.set({x1:i,y1:-100,x2:e,y2:-n}),o.set({x1:i,y1:100,x2:e,y2:n}),a.set({x1:-i,y1:-100,x2:-e,y2:-n}),s.set({x1:-i,y1:100,x2:-e,y2:n})},t}(),Bf=new i.InjectionToken("mat-menu-scroll-strategy");function Vf(t){return function(){return t.scrollStrategies.reposition()}}var Lf=function(){},zf=function(){},Hf=function(){},Wf=function(){},Uf=function(){},Yf=n("gjZL"),Xf=function(){},qf=function(){},Gf=function(){},Kf=function(){},Zf=function(){},Qf=function(){},Jf=function(){},$f=function(){},tg=function(){},eg=i["\u0275cmf"](Hi,[],function(t){return i["\u0275mod"]([i["\u0275mpd"](512,i.ComponentFactoryResolver,i["\u0275CodegenComponentFactoryResolver"],[[8,[ur,gr,Or,$l,iu,hu,Xu,ec,gf]],[3,i.ComponentFactoryResolver],i.NgModuleRef]),i["\u0275mpd"](5120,i.LOCALE_ID,i["\u0275angular_packages_core_core_l"],[[3,
1i.LOCALE_ID]]),i["\u0275mpd"](4608,M.NgLocalization,M.NgLocaleLocalization,[i.LOCALE_ID,[2,M["\u0275angular_packages_common_common_a"]]]),i["\u0275mpd"](4608,i.Compiler,i.Compiler,[]),i["\u0275mpd"](5120,i.APP_ID,i["\u0275angular_packages_core_core_f"],[]),i["\u0275mpd"](5120,i.IterableDiffers,i["\u0275angular_packages_core_core_j"],[]),i["\u0275mpd"](5120,i.KeyValueDiffers,i["\u0275angular_packages_core_core_k"],[]),i["\u0275mpd"](4608,xe,Ce,[M.DOCUMENT]),i["\u0275mpd"](6144,i.Sanitizer,null,[xe]),i["\u0275mpd"](4608,me,Jr,[[2,Qr],[2,Xr]]),i["\u0275mpd"](5120,Wt,function(t,e,n,i,r,o){return[new fe(t,e),new we(n),new ye(i,r,o)]},[M.DOCUMENT,i.NgZone,M.DOCUMENT,M.DOCUMENT,me,i["\u0275Console"]]),i["\u0275mpd"](4608,Ut,Ut,[Wt,i.NgZone]),i["\u0275mpd"](135680,qt,qt,[M.DOCUMENT]),i["\u0275mpd"](4608,te,te,[Ut,qt]),i["\u0275mpd"](5120,$a,Wl,[]),i["\u0275mpd"](5120,zs,Ul,[]),i["\u0275mpd"](4608,vl,Hl,[$a,zs]),i["\u0275mpd"](5120,i.RendererFactory2,Yl,[te,vl,i.NgZone]),i["\u0275mpd"](6144,Xt,null,[qt]),i["\u0275mpd"](4608,i.Testability,i.Testability,[i.NgZone]),i["\u0275mpd"](4608,Mt,Mt,[M.DOCUMENT]),i["\u0275mpd"](4608,Vt,Vt,[M.DOCUMENT]),i["\u0275mpd"](4608,Zn,Zn,[]),i["\u0275mpd"](4608,Qe,Qe,[]),i["\u0275mpd"](4608,ou,ou,[b]),i["\u0275mpd"](4608,rt,rt,[]),i["\u0275mpd"](6144,it,null,[rt]),i["\u0275mpd"](4608,ot,ot,[it]),i["\u0275mpd"](6144,N,null,[ot]),i["\u0275mpd"](4608,F,ht,[N,i.Injector]),i["\u0275mpd"](4608,J,J,[F]),i["\u0275mpd"](4608,Jo,vf,[M.DOCUMENT]),i["\u0275mpd"](4608,aa,aa,[Zo,Jo,i.ComponentFactoryResolver,ra,Qo,i.Injector,i.NgZone,M.DOCUMENT,ba]),i["\u0275mpd"](4608,ma,ma,[aa,Ea,i.Injector,So,[3,ma],ga]),i["\u0275mpd"](4608,sc,sc,[b,ou,ma]),i["\u0275mpd"](4608,yf,_f,[ou,sc]),i["\u0275mpd"](4608,Sf,Sf,[J,yf]),i["\u0275mpd"](4608,kf,kf,[Sf,b]),i["\u0275mpd"](4608,Of,Of,[]),i["\u0275mpd"](4608,mt,mt,[ma]),i["\u0275mpd"](4608,Tf,Tf,[Sf,mt]),i["\u0275mpd"](4608,yi,yi,[b]),i["\u0275mpd"](4608,Af,Af,[yi]),i["\u0275mpd"](4608,Vp,Vp,[yi,Af]),i["\u0275mpd"](4608,xc,xc,[yi]),i["\u0275mpd"](4608,y,y,[Af,Vp,yi,xc,b]),i["\u0275mpd"](4608,sf,sf,[yi,Of,xc]),i["\u0275mpd"](4608,Ku,Ku,[y,xc]),i["\u0275mpd"](4608,Sc,Sc,[y]),i["\u0275mpd"](4608,Jc,Jc,[y]),i["\u0275mpd"](4608,nd,nd,[y]),i["\u0275mpd"](4608,Df,Df,[b,nd,y]),i["\u0275mpd"](4608,Pf,Pf,[b,nd,y,Df]),i["\u0275mpd"](4608,ed,ed,[b,y,Df,nd,Pf]),i["\u0275mpd"](4608,jf,jf,[J,yf]),i["\u0275mpd"](4608,Ff,Ff,[b]),i["\u0275mpd"](4608,xr,xr,[jf,b,Ff]),i["\u0275mpd"](4608,Th,Th,[y,xc,Ku]),i["\u0275mpd"](4608,ji,ji,[y,xc,Ku,ed,xr,Th]),i["\u0275mpd"](4608,ih,ih,[y]),i["\u0275mpd"](4608,lh,lh,[y,yi]),i["\u0275mpd"](4608,Nf,Nf,[y,yi]),i["\u0275mpd"](4608,oc,oc,[y,lh,ji,b,J,Nf,sc]),i["\u0275mpd"](4608,ac,ac,[xc,y,oc,Ku,nd]),i["\u0275mpd"](4608,uh,uh,[y,ac]),i["\u0275mpd"](4608,yh,yh,[yi]),i["\u0275mpd"](4608,Rh,Rh,[y,b]),i["\u0275mpd"](4608,vt,vt,[mt,ji,y,sc,Tf,b,ed,lh]),i["\u0275mpd"](4608,Od,Od,[xc,y]),i["\u0275mpd"](4608,Zh,Zh,[xc,y,yi,oc]),i["\u0275mpd"](4608,_,_,[Sc,Jc,uh,ih,yh,Th,Rh,ed,Zh,oc,vt,y,Nf,ji]),i["\u0275mpd"](4608,Yi.ColorPickerService,Yi.ColorPickerService,[]),i["\u0275mpd"](5120,sa,la,[aa]),i["\u0275mpd"](4608,Nu,Nu,[So]),i["\u0275mpd"](4608,Pi,Pi,[aa,Nu,i.Injector]),i["\u0275mpd"](4608,lt,ut,[M.DOCUMENT,i.PLATFORM_ID,at]),i["\u0275mpd"](4608,ct,ct,[lt,st]),i["\u0275mpd"](5120,tt,function(t){return[t]},[ct]),i["\u0275mpd"](4608,Bu,Bu,[]),i["\u0275mpd"](5120,Bf,Vf,[aa]),i["\u0275mpd"](4608,gt,gt,[b,Nu,ou]),i["\u0275mpd"](4608,Ri,Ri,[b,gt]),i["\u0275mpd"](4608,Lp,Lp,[Pi,yi,Ii,Nu]),i["\u0275mpd"](4608,Qu,Qu,[Ri]),i["\u0275mpd"](4608,Tr,Ml,[i.RendererFactory2,It]),i["\u0275mpd"](1073742336,M.CommonModule,M.CommonModule,[]),i["\u0275mpd"](512,b,b,[]),i["\u0275mpd"](1024,i.ErrorHandler,zi,[b]),i["\u0275mpd"](1024,i.APP_INITIALIZER,function(t,e,n){return[(i=t,Lt("probe",Ht),Lt("coreTokens",Object(D.a)({},zt,(i||[]).reduce(function(t,e){return t[e.name]=e.token,t},{}))),function(){return Ht}),(r=e,o=n,function(){var t={baseUrl:null,version:a,logging:{sentry_public:null},vebto:{environment:"production",assetsUrl:null,assetsPrefix:null}};return o.urls&&o.urls.base&&(t.baseUrl=o.urls.base),o.urls&&o.urls.assets&&(t.vebto.assetsUrl=o.urls.assets),o.sentry_public&&(t.logging.sentry_public=o.sentry_public),r.setMultiple(Object.assign({},t,{pixie:o})),new Promise(function(t){return t()})})];var i,r,o},[[2,i.NgProbeToken],b,o]),i["\u0275mpd"](512,i.ApplicationInitStatus,i.ApplicationInitStatus,[[2,i.APP_INITIALIZER]]),i["\u0275mpd"](131584,i.ApplicationRef,i.ApplicationRef,[i.NgZone,i["\u0275Console"],i.Injector,i.ErrorHandler,i.ComponentFactoryResolver,i.ApplicationInitStatus]),i["\u0275mpd"](1073742336,i.ApplicationModule,i.ApplicationModule,[i.ApplicationRef]),i["\u0275mpd"](1073742336,Ie,Ie,[[3,Ie]]),i["\u0275mpd"](1073742336,Jn,Jn,[]),i["\u0275mpd"](1073742336,ti,ti,[]),i["\u0275mpd"](1073742336,zf,zf,[]),i["\u0275mpd"](1073742336,Hf,Hf,[]),i["\u0275mpd"](1073742336,$n,$n,[]),i["\u0275mpd"](1073742336,Wf,Wf,[]),i["\u0275mpd"](1073742336,Uf,Uf,[]),i["\u0275mpd"](1073742336,Yf.ColorPickerModule,Yf.ColorPickerModule,[]),i["\u0275mpd"](1073742336,_a,_a,[]),i["\u0275mpd"](1073742336,Oi,Oi,[]),i["\u0275mpd"](1073742336,Ur,Ur,[]),i["\u0275mpd"](1073742336,Vo,Vo,[]),i["\u0275mpd"](1073742336,ua,ua,[]),i["\u0275mpd"](1073742336,Xf,Xf,[]),i["\u0275mpd"](1073742336,dt,dt,[]),i["\u0275mpd"](1073742336,pt,pt,[]),i["\u0275mpd"](1073742336,qf,qf,[]),i["\u0275mpd"](1073742336,Gf,Gf,[]),i["\u0275mpd"](1073742336,Kf,Kf,[]),i["\u0275mpd"](1073742336,Xr,Xr,[[2,Yr]]),i["\u0275mpd"](1073742336,yc,yc,[]),i["\u0275mpd"](1073742336,ao,ao,[]),i["\u0275mpd"](1073742336,Ia,Ia,[]),i["\u0275mpd"](1073742336,zu,zu,[]),i["\u0275mpd"](1073742336,qc,qc,[]),i["\u0275mpd"](1073742336,Zf,Zf,[]),i["\u0275mpd"](1073742336,Qf,Qf,[]),i["\u0275mpd"](1073742336,va,va,[]),i["\u0275mpd"](1073742336,Jf,Jf,[]),i["\u0275mpd"](1073742336,Lf,Lf,[]),i["\u0275mpd"](1073742336,$f,$f,[]),i["\u0275mpd"](1073742336,tg,tg,[]),i["\u0275mpd"](1073742336,ql,ql,[]),i["\u0275mpd"](1073742336,Hi,Hi,[i.Injector]),i["\u0275mpd"](256,i["\u0275APP_ROOT"],!0,[]),i["\u0275mpd"](256,at,"XSRF-TOKEN",[]),i["\u0275mpd"](256,st,"X-XSRF-TOKEN",[]),i["\u0275mpd"](256,Xl,"BrowserAnimations",[])])}),ng=function(){function t(t){this.version=a,this.initPixie(t)}return t.prototype.openEditorWithImage=function(t,e){var n=this;void 0===e&&(e=!0),this.openFile(t,"png",e).then(function(){return n.open()})},t.prototype.openMainImage=function(t){this.openFile(t,"png",!0)},t.prototype.openFile=function(t,e,n){void 0===e&&(e="png"),void 0===n&&(n=!1);var r,o=this.getTool("import");
1return r=n?o.openBackgroundImage(t):o.openFile(t,e),this.injector.get(i.ApplicationRef).tick(),r},t.prototype.newFile=function(t,e){return this.getTool("canvas").openNew(t,e)},t.prototype.loadState=function(t){var e=this;this.get(i.NgZone).run(function(){return t="string"!=typeof t?JSON.stringify(t):t,e.getTool("history").addFromJson(t)})},t.prototype.getState=function(){return JSON.stringify(this.getTool("history").getCurrentCanvasState())},t.prototype.open=function(t){var e=this;this.get(i.NgZone).run(function(){t&&e.mergeConfig(t),e.get(gt).open().then(function(){e.getTool("canvas").zoom.fitToScreen(),e.get(Ii).open()})})},t.prototype.close=function(){var t=this;this.get(i.NgZone).run(function(){return t.get(gt).close()})},t.prototype.resetEditor=function(t,e){var n=this;return new Promise(function(r){n.get(i.NgZone).run(function(){n.get(vt).resetEditor(),t&&n.setConfig(t,e),n.getTool("canvas").initContent().then(function(){n.get(Ri).closeAllPanels(),n.get(Ii).open(),t&&n.get(ji).addInitial(),r()})})})},t.prototype.resetAndOpenEditor=function(t,e){var n=this;this.resetEditor(t,e).then(function(){return n.open()})},t.prototype.setConfig=function(t,e){var n=this.get(b);"string"==typeof t&&void 0!==e?this.get(i.NgZone).run(function(){var i=t.indexOf("vebto.")>-1?t:"pixie."+t;n.set(i,e)}):"object"==typeof t&&this.get(i.NgZone).run(function(){var e={pixie:t};e.pixie.sentry_public&&n.set("logging.sentry_public",e.pixie.sentry_public),n.merge(e)})},t.prototype.getDefaultConfig=function(t){return f.pick(t,s)},t.prototype.http=function(){return this.get(J)},t.prototype.getTool=function(t){if(!this.injector)throw'Pixie is not loaded yet. Are you using "onLoad" callback?';return this.get(_).get(t)},t.prototype.get=function(t){return this.injector.get(t)},t.prototype.initPixie=function(t){var e=this.mergeConfig(t);Pe([{provide:o,useValue:e}]).bootstrapModuleFactory(eg).then(this.onAngularReady.bind(this)).catch(function(t){return console.log(t)})},t.prototype.mergeConfig=function(t){var e=p(s,t||{});return this.replaceDefaultConfigItems(e,t)},t.prototype.replaceDefaultConfigItems=function(t,e){for(var n in t)"replaceDefault"===n&&t[n]?t.items=e.items:"object"==typeof t[n]&&this.replaceDefaultConfigItems(t[n],e&&e[n]);return t},t.prototype.onAngularReady=function(t){var e=this;this.injector=t.injector,this.get(y).state.loaded.subscribe(function(){var t=e.get(b).get("pixie.onLoad");t&&t()})},t}();n("yLV6"),Object(i.enableProdMode)(),window.Pixie=ng},zotm:function(t,e,n){"use strict";var i=n("mrSG"),r=function(t){function e(e,n,i){var r=t.call(this)||this;return r.parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i.b(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("FFOo").a),o=n("Fxb1");function a(t,e,n,i){var a=new r(t,n,i);return Object(o.a)(e)(a)}n.d(e,"a",function(){return a})}},[[7,0]]]); 2//# sourceMappingURL=main.164580bb7918ec9c750b.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.