//! api-check version 7.5.5 built with ♥ by Kent C. Dodds <kent@doddsfamily.us> (http://kent.doddsfamily.us) (ó ì_í)=óò=(ì_í ò)
!function(e,n){t.exports=n()}(this,function(){returnfunction(t){functione(o){if(n[o])returnn[o].exports;varr=n[o]={exports:{},id:o,loaded:!1};returnt[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}varn={};returne.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";functiono(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varr=n(1),i=o(r);e.default=i.default,t.exports=e.default},function(t,e,n){"use strict";functiono(){functione(o,i,l){if(e.config.disabled||t.exports.globalConfig.disabled)return{apiTypes:{},argTypes:{},passed:!0,message:"",failed:!1};n(arguments),Array.isArray(o)?i=Array.prototype.slice.call(i):(o=[o],i=[i]);vara=s(o,i);a.length||(a=r(o,i));vard=c(o,i);returnd.args=i,a.length?(d.message=e.getErrorMessage(o,i,a,l),d.failed=!0,d.passed=!1):(d.message="",d.failed=!1,d.passed=!0),d}functionn(t){varn=t[0],o=t[1],i=Array.isArray(o)||o&&"object"==typeofo&&"number"==typeofo.length;if(Array.isArray(n)&&!i)thrownewError(l(n,[o],["If an array is provided for the api, an array must be provided for the args as well."],{prefix:"apiCheck"}));vara=r(E.checkApiCheckApi,t);if(a.length){vars=e.getErrorMessage(E.checkApiCheckApi,t,a,{prefix:"apiCheck"});e.handleErrorMessage(s,!0)}}functiono(t){returnfunction(n,o,r){vari=e(n,o,r);returne.handleErrorMessage(i.message,t),i}}functioni(t,e){if(e&&t)thrownewError(t);t&&console.warn(t)}functionl(t,n){functiono(){vart=s.onlyPrefix;returnt||(t=((d.prefix||"")+" "+(s.prefix||"")).trim()),t}functionr(){vart=s.onlySuffix;returnt||(t=((s.suffix||"")+" "+(d.suffix||"")).trim()),t}functioni(){vart=s.url;returnt||(t=d.docsBaseUrl&&s.urlSuffix&&(""+d.docsBaseUrl+s.urlSuffix).trim()),t}varl=arguments.length<=2||void0===arguments[2]?[]:arguments[2],s=arguments.length<=3||void0===arguments[3]?{}:arguments[3],d=e.config.output||{},c=o(),p=r(),u=i(),f="apiCheck failed! "+l.join(", "),m="\n\n"+a(t,n);return(c+" "+f+" "+p+" "+(u||"")+m).trim()}functiona(t,e){functionn(t){m(t,function(e,o){d.indexOf(e)===-1&&(d.push(e),"object"==typeofe?n(t):"function"==typeofe&&(t[o]=e.displayName||e.name||"anonymous function"))})}functiono(t){returnt&&t.length?(t&&1===t.length&&(t=t[0]),u(t,null,2)):"nothing"}functionr(){vart="\n",n=!0;e&&1===e.length&&(n="object"==typeofe[0]&&null!==e[0]&&!!Object.keys(e[0]).length);varo="type"+(n?"s":""),r=t+t;return"You passed:"+t+p+r+("With the "+o+":"+t+a+r)+("The API calls for:"+t+l)}vari=c(t,e),l=i.apiTypes,a=i.argTypes,s=Array.prototype.slice.call(e||[]),d=[];n(s);varp=o(s);returna=o(a),l=o(l),r()}functionc(n,o){n=g(n),o=g(o);varr=n.map(function(n,r){vari=t.exports.globalConfig.hasOwnProperty("verbose");returnh(n,{terse:i?!t.exports.globalConfig.verbose:!e.config.verbose,obj:o[r],addHelpers:!0})}),i=o.map(function(t){returnd(t,[])});return{argTypes:i,apiTypes:r}}varp=arguments.length<=0||void0===arguments[0]?{}:arguments[0],y=arguments.length<=1||void0===arguments[1]?{}:arguments[1];O&&arguments.length&&O.throw(E.getApiCheckInstanceCheckers,arguments,{prefix:"creating an apiCheck instance"});varv={throw:o(!0),warn:o(!1),getErrorMessage:l,handleErrorMessage:i,config:{output:p.output||{prefix:"",suffix:"",docsBaseUrl:""},verbose:p.verbose||!1,disabled:p.disabled||!1},utils:f};m(v,function(t,n){returne[n]=t});varb=e.disabled||t.exports.globalConfig.disabled;returnm(x.getCheckers(b),function(t,n){returne[n]=t}),m(y,function(t,n){returne[n]=t}),e}functionr(t,e){for(varn=[],o=!1,r=0,i=0,a=void0,s=void0,d=void0,c=void0,p=void0,u=void0,f=void0;(s=t[r++])&&i<e.length;)a=e[i++],p="Argument "+i+(s.isOptional?" (optional)":""),d=s(a,"value",p),u=y(d),c=r>=t.length,f=r>1&&t[r-1].isOptional,u&&c||u&&!c&&!s.isOptional&&!f?(o=!0,n.push(l(d,s,a))):u&&s.isOptional?i--:n.push(v(p)+" passed");returno?n:[]}functioni(t,e,n){varo=x.shape({type:x.string,optional:x.bool}),r=x.func.withProperties({__apiCheckData:o}),l=x.shape({__apiCheckData:o}),a=x.oneOfType([r,l])(t,e,n);returny(a)?a:"function"==typeoft||t.hasOwnProperty(t.__apiCheckData.type)?void0:C(e,n,i.type)}
returnt.fc.$touched||l}return!1},function(e){t.options.validation.errorExistsAndShouldBeVisible=e,t.showError=e})}vard=i.noop,c=i.noop;if(!t.options.noFormControl){varp=i.element("<div>"+e+"</div>"),u=p[0].querySelector("[ng-model],[data-ng-model]");u&&u.getAttribute("name")&&n(u.getAttribute("name"))}}functionv(){b&&b.link&&b.link.apply(E,C),t.options.link&&t.options.link.apply(E,C)}functionh(n){returnfunction(o){varr=e.when(o);returni.forEach(n,function(n){r=r.then(function(o){returne.when(n(o,t.options,t)).then(function(t){returni.isString(t)?t:f(t)})})}),r}}if(t.options.fieldGroup)returnvoidl();a(),d();varb=m(t.options),C=arguments,E=this;y(t.options).then(h(r.templateManipulators.preWrapper)).then(g(t.options)).then(h(r.templateManipulators.postWrapper)).then(p).then(u).then(v).catch(function(e){c("there-was-a-problem-setting-the-template-for-this-field","There was a problem setting the template for this field ",t.options,e)})}functionf(t){vare=i.element("<a></a>");returne.append(t).html()}functionm(t){returnt.type&&r.getType(t.type)}functiony(t){functione(e,n){returni.isDefined(t[e])?t[e]:n&&i.isDefined(n[e])?n[e]:void0}varn=r.getType(t.type,!0,t),o=e("template",n),l=e("templateUrl",n);if(i.isUndefined(o)&&!l)throwd.getFieldError("type-type-has-no-template","Type '"+t.type+"' has not template. On element:",t);returnv(l||o,i.isUndefined(o),t)}functionv(n,r,l){vara=void0;if(a=i.isFunction(n)?e.when(n(l)):e.when(n),!r)returna;vars=function(){vare={cache:o};return{v:a.then(function(n){returnt.get(n,e)}).then(function(t){returnt.data}).catch(function(t){c("problem-loading-template-for-templateurl","Problem loading template for "+n,t)})}}();return"object"==typeofs?s.v:void0}functiong(t){varn=b(t);returnfunction(o){if(!n.length)returne.when(o);n.forEach(function(e){d.checkWrapper(e,t),e.validateOptions&&e.validateOptions(t),E(e,t)});varr=n.map(function(t){returnv(t.template||t.templateUrl,!t.template)});returne.all(r).then(function(t){t.forEach(function(t,e){d.checkWrapperTemplate(t,n[e])}),t.reverse();vare=t.shift();returnt.forEach(function(t){e=h(e,t)}),h(e,o)})}}functionh(t,e){varn=i.element("<a></a>");n.append(t);varo=n.find("formly-transclude");returno.length||(o=s.findByNodeName(n,"formly-transclude")),o.replaceWith(e),n.html()}functionb(t){vare=t.wrapper;if(null===e)return[];e=e?O(e).map(r.getWrapper):O(r.getWrapperByType(t.type));varn=r.getType(t.type,!0,t);if(n&&n.wrapper){varo=O(n.wrapper).map(r.getWrapper);e=e.concat(o)}vari=r.getWrapper();returni&&e.push(i),e}functionC(t){a.throw(a.formlyFieldOptions,t,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"});vare=t.type&&r.getType(t.type);e&&(e.validateOptions&&e.validateOptions(t),E(e,t))}functionx(t){a.throw(a.fieldGroup,t,{prefix:"formly-field directive",url:"formly-field-directive-validation-failed"})}functionE(t,e){varn=t.apiCheck,o=t.apiCheckInstance,r=t.apiCheckFunction,i=t.apiCheckOptions;if(n){varl=o||a,s=r||"warn",d=l.shape(n);l[s](d,e,i||{prefix:"formly-field "+name,url:a.config.output.docsBaseUrl+"formly-field-type-apicheck-failed"})}}varO=s.arrayify;returnp.$inject=["$scope","$timeout","$parse","$controller"],{restrict:"AE",transclude:!0,scope:{options:"=",model:"=",formId:"@",index:"=?",fields:"=?",formState:"=?",form:"=?"},controller:p,link:u}}varr=function(t){returnt&&t.__esModule?t.default:t},i=r(n(15));t.exports=o,o.$inject=["$http","$q","$compile","$templateCache","formlyConfig","formlyValidationMessages","formlyApiCheck","formlyUtil","formlyUsability","formlyWarn"]},function(t,e,n){"use strict";functiono(t,e){return{restrict:"A",link:function(n,o,r){vari=null,l=o[0],a=e[0];r.$observe("formlyFocus",function(e){"true"===e?t(function(){i=a.activeElement,l.focus()},~~r.focusWait):"false"===e&&a.activeElement===l&&(l.blur(),r.hasOwnProperty("refocus")&&i&&i.focus())})}}}t.exports=o,o.$inject=["$timeout","$document"]},function(t,e,n){"use strict";functiono(t,e,n,o){varr=1;return{restrict:"E",template:function(e,n){functioni(){returnn.rootEl||"ng-form"}
},function(t,e,n){"use strict";functiono(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varr=n(50),i=o(r),l=n(51),a=o(l),s="";e.default=angular.module(s,[]).service(r.FORM_FIELD_MANAGE_SERVICE,i.default).provider(l.EASY_FORM_FORMLY_BINDING_MODEL_PROVIDER,a.default)},function(t,e){"use strict";functionn(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});varo=function(){functiont(t,e){for(varn=0;n<e.length;n++){varo=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}returnfunction(e,n,o){returnn&&t(e.prototype,n),o&&t(e,o),e}}(),r="formFieldManage",i=function(){functiont(e){n(this,t),this.EasyFormGenFormlyBindingModels=e,this.init()}returno(t,[{key:"init",value:function(){}},{key:"initConfigurationEditFromScratch",value:function(t,e){varn=this.EasyFormGenFormlyBindingModels.getEasyFormInitialStateConfigurationModel(e);angular.copy(n,t)}},{key:"bindConfigurationLines",value:function(t,e,n){if("[object Array]"===Object.prototype.toString.call(e)){varo=this.EasyFormGenFormlyBindingModels.getEasyFormReloadConfigurationModel(n);returno.lines=[].concat(e),angular.copy(o,t),this.getMessageObject("configuration model is bound","lines are bound to configuration model.")}returnthis.getErrorObject("lines is not an array","Checks lines type, it is not an array.")}},{key:"applyConfigurationToformlyModel",value:function(t,e,n){this.resetFormlyModel(e),this.resetDataModel(n);for(varo=t.lines.length,r=0;r<o;r++)this.AddNColumnControl(e,t,r)}},{key:"resetFormlyModel",value:function(t){vare=[];angular.copy(e,t)}},{key:"AddNColumnControl",value:function(t,e,n){varo=this,r=e.lines[n].columns.length,i={className:"row",fieldGroup:[]},l=t.push(i)-1;e.lines[n].columns.forEach(function(e){varn={};if("undefined"!=typeofn&&"none"!==e.control.type){if("header"===e.control.type||"subTitle"===e.control.type){vari=e.control.templateOptions.description;n.template=o.EasyFormGenFormlyBindingModels.getHeaderTemplateForNcolumnLine(r,i).template,n.className=o.EasyFormGenFormlyBindingModels.getRawHeaderTemplates().selectedClass}elsen=o.EasyFormGenFormlyBindingModels.getFormlyControlTemplateForNcolumnLine(r,e.control.type),n.className=e.control.className,n.type=e.control.type,n.key=e.control.key,n.templateOptions.type=e.control.templateOptions.type,n.templateOptions.label=e.control.templateOptions.label,n.templateOptions.required=e.control.templateOptions.required,n.templateOptions.placeholder=e.control.templateOptions.placeholder,n.templateOptions.description=e.control.templateOptions.description,n.templateOptions.options=[].concat(e.control.templateOptions.options),"undefined"!=typeofn.templateOptions.datepickerPopup&&(e.control.templateOptions.datepickerPopup=n.templateOptions.datepickerPopup);t[l].fieldGroup.push(n)}})}},{key:"isTemplateOptionDefined",value:function(t){return"undefined"!=typeoft.templateOptions}},{key:"extractTemplateOptionLabel",value:function(t){return"undefined"!=typeoft.templateOptions&&"undefined"!=typeoft.templateOptions.label?t.templateOptions.label:""}},{key:"extractTemplateOptionDatepickerPopup",value:function(t){return"undefined"!=typeoft.templateOptions&&"undefined"!=typeoft.templateOptions.datepickerPopup?t.templateOptions.datepickerPopup:""}},{key:"extractTemplateOptionRequired",value:function(t){return"undefined"!=typeoft.templateOptions&&"undefined"!=typeoft.templateOptions.required?t.templateOptions.required:""}},{key:"extractTemplateOptionOptions",value:function(t){return"undefined"!=typeoft.templateOptions&&"undefined"!=typeoft.templateOptions.options?t.templateOptions.options:""}},{key:"extractTemplateOptionType",value:function(t){return"undefined"!=typeoft.subtype?t.subtype:""}},{key:"extractTemplateOptionPlaceholder",value:function(t){return"undefined"!=typeoft.templateOptions&&"undefined"!=typeoft.templateOptions.placeholder?t.templateOptions.placeholder:""}},{key:"extractTemplateOptionDescription",
returnr.$apply(function(){i.splice(s(),0,e)}),"none"===t.dataTransfer.dropEffect?"copy"===t.dataTransfer.effectAllowed||"move"===t.dataTransfer.effectAllowed?n.dropEffect=t.dataTransfer.effectAllowed:n.dropEffect=t.ctrlKey?"copy":"move":n.dropEffect=t.dataTransfer.dropEffect,c(),t.stopPropagation(),!1}),i.on("dragleave",function(t){t=t.originalEvent||t,i.removeClass("dndDragover"),e(function(){i.hasClass("dndDragover")||f.remove()},100)})}vari={link:r};returni}Object.defineProperty(e,"__esModule",{value:!0});varo="dndList",r=["$parse","$timeout","dndDropEffectWorkaround","dndDragTypeWorkaround"];n.$inject=r,e.default=n,e.DNDLIST_DIRECTIVE=o},function(t,e){"use strict";functionn(t,e,n,o){functionr(r,i,l){vara=this;i.attr("draggable","true"),l.dndDisableIf&&r.$watch(l.dndDisableIf,function(t){returni.attr("draggable",!t)}),i.on("dragstart",function(a){a=a.originalEvent||a,a.dataTransfer.setData("Text",angular.toJson(r.$eval(l.dndDraggable))),a.dataTransfer.effectAllowed=l.dndEffectAllowed||"move",i.addClass("dndDragging"),e(function(){i.addClass("dndDraggingSource")},0),n.dropEffect="none",o.isDragging=!0,o.dragType=l.dndType?r.$eval(l.dndType):void0,t(l.dndDragstart)(r,{event:a}),a.stopPropagation()}),i.on("dragend",function(e){e=e.originalEvent||e;vara=n.dropEffect;r.$apply(function(){switch(a){case"move":t(l.dndMoved)(r,{event:e});break;case"copy":t(l.dndCopied)(r,{event:e})}}),i.removeClass("dndDragging"),i.removeClass("dndDraggingSource"),o.isDragging=!1,e.stopPropagation()}),i.on("click",function(e){e=e.originalEvent||e,r.$apply(function(){returnt(l.dndSelected)(r,{event:e})}),e.stopPropagation()}),i.on("selectstart",function(){returna.dragDrop&&a.dragDrop(),!1})}vari={link:r};returni}Object.defineProperty(e,"__esModule",{value:!0});varo="dndDraggable",r=["$parse","$timeout","dndDropEffectWorkaround","dndDragTypeWorkaround"];n.$inject=r,e.default=n,e.DNDDRAGGABLE_DIRECTIVE=o},function(t,e,n){"use strict";functiono(t){returnt&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});varr=n(76),i=o(r),l="pageslide.module";e.default=angular.module(l,[]).directive(r.PAGE_SLIDE_DIRECTIVE,i.default)},function(t,e){"use strict";functionn(){functiont(t,e,n){functiono(e,n){if(e&&0!==e.style.width&&0!==e.style.width)switch(n.cloak&&l.css("display","none"),n.side){case"right":e.style.width="0px",n.squeeze&&(s.style.right="0px"),n.push&&(s.style.right="0px",s.style.left="0px");break;case"left":e.style.width="0px",n.squeeze&&(s.style.left="0px"),n.push&&(s.style.left="0px",s.style.right="0px");break;case"top":e.style.height="0px",n.squeeze&&(s.style.top="0px"),n.push&&(s.style.top="0px",s.style.bottom="0px");break;case"bottom":e.style.height="0px",n.squeeze&&(s.style.bottom="0px"),n.push&&(s.style.bottom="0px",s.style.top="0px")}t.psOpen=!1}functionr(t,e){if(0!==t.style.width&&0!==t.style.width){switch(e.side){case"right":t.style.width=e.size,e.squeeze&&(s.style.right=e.size),e.push&&(s.style.right=e.size,s.style.left="-"+e.size);break;case"left":t.style.width=e.size,e.squeeze&&(s.style.left=e.size),e.push&&(s.style.left=e.size,s.style.right="-"+e.size);break;case"top":t.style.height=e.size,e.squeeze&&(s.style.top=e.size),e.push&&(s.style.top=e.size,s.style.bottom="-"+e.size);break;case"bottom":t.style.height=e.size,e.squeeze&&(s.style.bottom=e.size),e.push&&(s.style.bottom=e.size,s.style.top="-"+e.size)}setTimeout(function(){e.cloak&&l.css("display","block")},1e3*e.speed)}}vari={};i.side=t.psSide||"right",i.speed=t.psSpeed||"0.5",i.size=t.psSize||"300px",i.zindex=1e3,i.className=t.psClass||"ng-pageslide",i.cloak=!t.psCloak||"false"!=t.psCloak.toLowerCase(),i.squeeze=Boolean(t.psSqueeze)||!1,i.push=Boolean(t.psPush)||!1,i.container=t.psContainer||!1,e.addClass(i.className);varl=null,a=null,s=i.container?document.getElementById(i.container):document.body;if(a=e[0],"div"!==a.tagName.toLowerCase()&&"pageslide"!==a.tagName.toLowerCase())thrownewError("Pageslide can only be applied to <div> or <pageslide> elements");if(0===a.children.length)thrownewError("Youhavetocontentinsidethe<