File manager - Edit - /home/wwwroot/camplus.hk/master.camplus.hk/public_html_20190103/assets/custom/survey-editor/survey.ko.min.js
Back
/*! * surveyjs - Survey JavaScript library v1.0.24 * Copyright (c) 2015-2018 Devsoft Baltic OÜ - http://surveyjs.io/ * License: MIT (http://www.opensource.org/licenses/mit-license.php) */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("knockout")):"function"==typeof define&&define.amd?define("Survey",["knockout"],t):"object"==typeof exports?exports.Survey=t(require("knockout")):e.Survey=t(e.ko)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=131)}([function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}r.d(t,"a",function(){return o}),t.b=n,r.d(t,"c",function(){return i});var o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},i=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}},function(e,t,r){"use strict";var n=r(0),o=r(5);r.d(t,"i",function(){return i}),r.d(t,"a",function(){return a}),r.d(t,"f",function(){return s}),r.d(t,"e",function(){return u}),r.d(t,"c",function(){return l}),r.d(t,"k",function(){return c}),r.d(t,"h",function(){return p}),r.d(t,"g",function(){return h}),r.d(t,"d",function(){return d}),r.d(t,"j",function(){return f}),r.d(t,"b",function(){return g});var i=function(){function e(e,t){void 0===t&&(t=!1),this.name=e,this.typeValue=null,this.choicesValue=null,this.isRequiredValue=!1,this.readOnlyValue=null,this.visibleValue=null,this.isLocalizableValue=null,this.choicesfunc=null,this.isSerializable=!0,this.className=null,this.alternativeName=null,this.classNamePart=null,this.baseClassName=null,this.defaultValue=null,this.serializationProperty=null,this.onGetValue=null,this.onSetValue=null,this.isRequiredValue=t}return Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){this.typeValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!0,configurable:!0}),e.prototype.isDefaultValue=function(e){return o.a.isValueEmpty(this.defaultValue)?!1===e||""===e||o.a.isValueEmpty(e):this.defaultValue==e},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty].text:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e,t,r){this.onSetValue?this.onSetValue(e,t,r):this.serializationProperty?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"==this.type&&(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},e.prototype.getClassName=function(e){return e&&(e=e.toLowerCase()),this.classNamePart&&e.indexOf(this.classNamePart)<0?e+this.classNamePart:e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!0,configurable:!0}),e.prototype.getChoices=function(e){return null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e):null},e.prototype.setChoices=function(e,t){this.choicesValue=e,this.choicesfunc=t},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!0,configurable:!0}),e.prototype.mergeWith=function(t){for(var r=e.mergableValues,n=0;n<r.length;n++)this.mergeValue(t,r[n])},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.mergableValues=["typeValue","choicesValue","readOnlyValue","visibleValue","isSerializable","isLocalizableValue","className","alternativeName","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue"],e}(),a=function(){function e(){}return e.addProperty=function(t,r){t=t.toLowerCase();var n=e.properties;n[t]||(n[t]=[]),n[t].push(r)},e.removeProperty=function(t,r){t=t.toLowerCase();var n=e.properties;if(n[t])for(var o=n[t],i=0;i<o.length;i++)if(o[i].name==r){n[t].splice(i,1);break}},e.addClass=function(t,r){t=t.toLowerCase(),r&&(r=r.toLowerCase()),e.parentClasses[t]=r},e.getProperties=function(t){t=t.toLowerCase();for(var r=[],n=e.properties;t;){var o=n[t];if(o)for(var i=0;i<o.length;i++)r.push(o[i]);t=e.parentClasses[t]}return r},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,r){var n=e.properties;n[r]&&e.createPropertiesInObj(t,n[r]);var o=e.parentClasses[r];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,r){for(var n=0;n<r.length;n++)e.createPropertyInObj(t,r[n])},e.createPropertyInObj=function(e,t){if(!e[t.name]&&!e.hasOwnProperty(t.name))if(t.isLocalizable&&t.serializationProperty&&!e[t.serializationProperty]&&e.createCustomLocalizableObj){e.createCustomLocalizableObj(t.name);var r={get:function(){return e.getLocalizableString(t.name)}};Object.defineProperty(e,t.serializationProperty,r);var n={get:function(){return e.getLocalizableStringText(t.name,t.defaultValue)},set:function(r){e.setLocalizableStringText(t.name,r)}};Object.defineProperty(e,t.name,n)}else{var n={get:function(){return e.getPropertyValue(t.name,t.defaultValue)},set:function(r){e.setPropertyValue(t.name,r)}};Object.defineProperty(e,t.name,n)}},e.properties={},e.parentClasses={},e}(),s=function(){function e(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.name=e,this.creator=r,this.parentName=n,this.properties=null,this.requiredProperties=null,e=e.toLowerCase(),n&&(n=n.toLowerCase(),a.addClass(e,n)),this.properties=new Array;for(var o=0;o<t.length;o++){var i=this.createProperty(t[o]);i&&this.properties.push(i)}}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.createProperty=function(t){var r="string"==typeof t?t:t.name;if(r){var n=null,a=r.indexOf(e.typeSymbol);a>-1&&(n=r.substring(a+1),r=r.substring(0,a));var s=this.getIsPropertyNameRequired(r);r=this.getPropertyName(r);var u=new i(r,s);if(n&&(u.type=n),"object"==typeof t){if(t.type&&(u.type=t.type),o.a.isValueEmpty(t.default)||(u.defaultValue=t.default),o.a.isValueEmpty(t.isSerializable)||(u.isSerializable=t.isSerializable),!1===t.visible&&(u.visible=!1),t.isRequired&&this.makePropertyRequired(u.name),t.choices){var l="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;u.setChoices(c,l)}if(t.onGetValue&&(u.onGetValue=t.onGetValue),t.onSetValue&&(u.onSetValue=t.onSetValue),t.isLocalizable&&(t.serializationProperty="loc"+t.name),t.serializationProperty){u.serializationProperty=t.serializationProperty;u.serializationProperty&&0==u.serializationProperty.indexOf("loc")&&(u.isLocalizable=!0)}t.isLocalizable&&(u.isLocalizable=t.isLocalizable),t.className&&(u.className=t.className),t.baseClassName&&(u.baseClassName=t.baseClassName),t.classNamePart&&(u.classNamePart=t.classNamePart),t.alternativeName&&(u.alternativeName=t.alternativeName)}return u}},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?(e=e.slice(1),this.makePropertyRequired(e),e):e},e.prototype.makePropertyRequired=function(e){this.requiredProperties||(this.requiredProperties=new Array),this.requiredProperties.push(e)},e.requiredSymbol="!",e.typeSymbol=":",e}(),u=function(){function e(){this.classes={},this.childrenClasses={},this.classProperties={},this.classRequiredProperties={}}return e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e=e.toLowerCase();var o=new s(e,t,r,n);if(this.classes[e]=o,n){n=n.toLowerCase();this.childrenClasses[n]||(this.childrenClasses[n]=[]),this.childrenClasses[n].push(o)}return o},e.prototype.overrideClassCreatore=function(e,t){e=e.toLowerCase();var r=this.findClass(e);r&&(r.creator=t)},e.prototype.getProperties=function(e){e=e.toLowerCase();var t=this.classProperties[e];return t||(t=new Array,this.fillProperties(e,t),this.classProperties[e]=t),t},e.prototype.getDynamicProperties=function(e){if(e.getDynamicProperties&&e.getDynamicType){var t=e.getDynamicProperties();return g.metaData.findProperties(e.getDynamicType(),t)}return[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t=[],r=this.getProperties(e.getType()),n=0;n<r.length;n++)t.push(r[n]);var o=this.getDynamicProperties(e);if(o&&o.length>0)for(var n=0;n<o.length;n++)t.push(o[n]);return t},e.prototype.findProperty=function(e,t){return e=e.toLowerCase(),this.findPropertyCore(this.getProperties(e),t)},e.prototype.findProperties=function(e,t){e=e.toLowerCase();for(var r=[],n=this.getProperties(e),o=0;o<t.length;o++){var i=this.findPropertyCore(n,t[o]);i&&r.push(i)}return r},e.prototype.findPropertyCore=function(e,t){for(var r=0;r<e.length;r++)if(e[r].name==t)return e[r];return null},e.prototype.createClass=function(e){e=e.toLowerCase();var t=this.findClass(e);if(!t)return null;if(t.creator)return t.creator();for(var r=t.parentName;r;){if(!(t=this.findClass(r)))return null;if(r=t.parentName,t.creator)return this.createCustomType(e,t.creator)}return null},e.prototype.createCustomType=function(e,t){e=e.toLowerCase();var r=t();return r.customTypeName=e,r.customTemplateName=r.getTemplate?r.getTemplate():r.getType(),r.getType=function(){return r.customTypeName},r.getTemplate=function(){return r.customTemplateName},a.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=[];return this.fillChildrenClasses(e,t,r),r},e.prototype.getRequiredProperties=function(e){e=e.toLowerCase();var t=this.classRequiredProperties[e];return t||(t=new Array,this.fillRequiredProperties(e,t),this.classRequiredProperties[e]=t),t},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var r=this.findClass(e),n=0;n<t.length;n++)this.addCustomPropertyCore(r,t[n])},e.prototype.addProperty=function(e,t){e=e.toLowerCase(),this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(e){var r=e.createProperty(t);r&&(this.addPropertyToClass(e,r),this.emptyClassPropertiesHash(e),a.addProperty(e.name,r))}},e.prototype.removeProperty=function(e,t){e=e.toLowerCase();var r=this.findClass(e);if(!r)return!1;var n=r.find(t);n&&(this.removePropertyFromClass(r,n),this.emptyClassPropertiesHash(r),a.removeProperty(e,t))},e.prototype.addPropertyToClass=function(e,t){null==e.find(t.name)&&e.properties.push(t)},e.prototype.removePropertyFromClass=function(e,t){var r=e.properties.indexOf(t);r<0||(e.properties.splice(r,1),e.requiredProperties&&(r=e.requiredProperties.indexOf(t.name))>=0&&e.requiredProperties.splice(r,1))},e.prototype.emptyClassPropertiesHash=function(e){this.classProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),r=0;r<t.length;r++)this.classProperties[t[r].name]=null},e.prototype.fillChildrenClasses=function(e,t,r){var n=this.childrenClasses[e];if(n)for(var o=0;o<n.length;o++)t&&!n[o].creator||r.push(n[o]),this.fillChildrenClasses(n[o].name,t,r)},e.prototype.findClass=function(e){return e=e.toLowerCase(),this.classes[e]},e.prototype.fillProperties=function(e,t){var r=this.findClass(e);if(r){r.parentName&&this.fillProperties(r.parentName,t);for(var n=0;n<r.properties.length;n++)this.addPropertyCore(r.properties[n],t,t.length)}},e.prototype.addPropertyCore=function(e,t,r){for(var n=-1,o=0;o<r;o++)if(t[o].name==e.name){n=o;break}n<0?t.push(e):(e.mergeWith(t[n]),t[n]=e)},e.prototype.fillRequiredProperties=function(e,t){var r=this.findClass(e);r&&(r.requiredProperties&&Array.prototype.push.apply(t,r.requiredProperties),r.parentName&&this.fillRequiredProperties(r.parentName,t))},e}(),l=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),c=function(e){function t(t,r){var n=e.call(this,"unknownproperty","The property '"+t+"' in class '"+r+"' is unknown.")||this;n.propertyName=t,n.className=r;var o=g.metaData.getProperties(r);if(o){n.description="The list of available properties are: ";for(var i=0;i<o.length;i++)i>0&&(n.description+=", "),n.description+=o[i].name;n.description+="."}return n}return n.b(t,e),t}(l),p=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;o.baseClassName=t,o.type=r,o.message=n,o.description="The following types are available: ";for(var i=g.metaData.getChildrenClasses(t,!0),a=0;a<i.length;a++)a>0&&(o.description+=", "),o.description+="'"+i[a].name+"'";return o.description+=".",o}return n.b(t,e),t}(l),h=function(e){function t(t,r){var n=e.call(this,r,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return n.b(t,e),t}(p),d=function(e){function t(t,r){var n=e.call(this,r,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return n.b(t,e),t}(p),f=function(e){function t(t,r){var n=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+r+"'.")||this;return n.propertyName=t,n.className=r,n}return n.b(t,e),t}(l),g=function(){function e(){this.errors=new Array}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!0,configurable:!0}),e.prototype.toJsonObject=function(e){return this.toJsonObjectCore(e,null)},e.prototype.toObject=function(t,r){if(t){var n=null;if(r.getType&&(n=e.metaData.getProperties(r.getType())),n){r.startLoadingFromJson&&r.startLoadingFromJson(),n=this.addDynamicProperties(r,t,n);for(var o in t)if(o!=e.typePropertyName)if(o!=e.positionPropertyName){var i=this.findProperty(n,o);i?this.valueToObj(t[o],r,o,i):this.addNewError(new c(o.toString(),r.getType()),t)}else r[o]=t[o];r.endLoadingFromJson&&r.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,r){if(!t.getType)return t;var n={};return null==r||r.className||(n[e.typePropertyName]=r.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),n),this.propertiesToJson(t,this.getDynamicProperties(t),n),n},e.prototype.getDynamicProperties=function(t){if(t.getDynamicProperties&&t.getDynamicType){var r=t.getDynamicProperties();return e.metaData.findProperties(t.getDynamicType(),r)}return[]},e.prototype.addDynamicProperties=function(e,t,r){if(!e.getDynamicPropertyName)return r;var n=e.getDynamicPropertyName();if(!n)return r;t[n]&&(e[n]=t[n]);for(var o=this.getDynamicProperties(e),i=[],a=0;a<r.length;a++)i.push(r[a]);for(var a=0;a<o.length;a++)i.push(o[a]);return i},e.prototype.propertiesToJson=function(e,t,r){for(var n=0;n<t.length;n++)this.valueToJson(e,r,t[n])},e.prototype.valueToJson=function(e,t,r){if(!1!==r.isSerializable){var n=r.getValue(e);if(!r.isDefaultValue(n)){if(this.isValueArray(n)){for(var o=[],i=0;i<n.length;i++)o.push(this.toJsonObjectCore(n[i],r));n=o.length>0?o:null}else n=this.toJsonObjectCore(n,r);r.isDefaultValue(n)||(t[r.name]=n)}}},e.prototype.valueToObj=function(e,t,r,n){if(null!=e){if(null!=n&&n.hasToUseSetValue)return void n.setValue(t,e,this);if(this.isValueArray(e))return void this.valueToArray(e,t,n.name,n);var o=this.createNewObj(e,n);o.newObj&&(this.toObject(e,o.newObj),e=o.newObj),o.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,r){var n={newObj:null,error:null},o=t[e.typePropertyName];return!o&&null!=r&&r.className&&(o=r.className),o=r.getClassName(o),n.newObj=o?e.metaData.createClass(o):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,r,o),n},e.prototype.checkNewObjectOnErrors=function(t,r,n,o){var i=null;if(t){var a=e.metaData.getRequiredProperties(o);if(a)for(var s=0;s<a.length;s++)if(!r[a[s]]){i=new f(a[s],o);break}}else n.baseClassName&&(i=o?new d(n.name,n.baseClassName):new h(n.name,n.baseClassName));return i&&this.addNewError(i,r),i},e.prototype.addNewError=function(t,r){r&&r[e.positionPropertyName]&&(t.at=r[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,r,n){t[r]&&e.length>0&&t[r].splice(0,t[r].length),t[r]||(t[r]=[]);for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],n);i.newObj?(t[r].push(i.newObj),this.toObject(e[o],i.newObj)):i.error||t[r].push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var r=0;r<e.length;r++){var n=e[r];if(n.name==t||n.alternativeName==t)return n}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new u,e}()},function(e,t,r){"use strict";var n=r(38);r.d(t,"a",function(){return o}),r.d(t,"b",function(){return i});var o={currentLocale:"",defaultLocale:"en",locales:{},localeNames:{},supportedLocales:[],getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];return t&&t[e]||(t=this.locales[this.defaultLocale]),t[e]},getLocales:function(){var e=[];if(e.push(""),this.supportedLocales&&this.supportedLocales.length>0)for(var t=0;t<this.supportedLocales.length;t++)e.push(this.supportedLocales[t]);else for(var r in this.locales)e.push(r);return e.sort(),e}},i=n.a;o.locales.en=n.a,o.localeNames.en="english"},function(e,t,r){"use strict";var n=r(2);r.d(t,"a",function(){return o}),r.d(t,"b",function(){return i});var o=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[n.a.getString("choices_Item")+"1",n.a.getString("choices_Item")+"2",n.a.getString("choices_Item")+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=n.a.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=n.a.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!0,configurable:!0}),e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}(),i=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=o.Instance.getAllTypes();for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return null==r?o.Instance.createQuestion(e,t):r(t)},e.Instance=new e,e}()},function(e,t,r){"use strict";var n=r(0),o=r(15),i=r(5),a=r(11),s=r(1);r.d(t,"a",function(){return u}),r.d(t,"d",function(){return l}),r.d(t,"c",function(){return c}),r.d(t,"b",function(){return p});var u=function(){function e(){this.propertyHash={},this.localizableStrings={},this.arraysInfo={},this.onPropChangeFunctions=[],this.isLoadingFromJsonValue=!1,this.onPropertyChanged=new p,s.a.createProperties(this)}return e.prototype.isValueEmpty=function(e){return i.a.isValueEmpty(e)},e.prototype.IsPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.getType=function(){return"base"},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue},enumerable:!0,configurable:!0}),e.prototype.startLoadingFromJson=function(){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.locStrsChanged=function(){for(var e in this.arraysInfo){var t=this.arraysInfo[e];if(t&&t.isItemValues){var r=this.getPropertyValue(e);r&&a.a.locStrsChanged(r)}}for(var e in this.localizableStrings){var t=this.getLocalizableString(e);t&&t.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var r=this.propertyHash[e];return this.IsPropertyEmpty(r)&&null!=t?t:r},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.setPropertyValueCoreHandler(e,t,r):e[t]=r},e.prototype.setPropertyValue=function(e,t){var r=this.propertyHash[e];if(r&&Array.isArray(r)){if(this.isTwoValueEquals(r,t))return;var n=this.arraysInfo[e];this.setArray(r,t,!!n&&n.isItemValues,n?n.onPush:null),this.propertyValueChanged(e,r,r)}else this.setPropertyValueCore(this.propertyHash,e,t),this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t)},e.prototype.propertyValueChanged=function(e,t,r){if(!this.isLoadingFromJson){this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:r});for(var n=0;n<this.onPropChangeFunctions.length;n++)this.onPropChangeFunctions[n].name==e&&this.onPropChangeFunctions[n].func(r)}},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,r){if(void 0===r&&(r=null),r)for(var n=0;n<this.onPropChangeFunctions.length;n++){var o=this.onPropChangeFunctions[n];if(o.name==e&&o.key==r)return void(o.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:r})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,r){void 0===r&&(r=null);for(var n=0;n<e.length;n++)this.registerFunctionOnPropertyValueChanged(e[n],t,r)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){void 0===t&&(t=null);for(var r=0;r<this.onPropChangeFunctions.length;r++){var n=this.onPropChangeFunctions[r];if(n.name==e&&n.key==t)return void this.onPropChangeFunctions.splice(r,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null);for(var r=0;r<e.length;r++)this.unRegisterFunctionOnPropertyValueChanged(e[r],t)},e.prototype.createCustomLocalizableObj=function(e){!this.getLocalizableString(e)&&this.getLocale&&this.createLocalizableString(e,this)},e.prototype.createLocalizableString=function(e,t,r){void 0===r&&(r=!1);var n=new o.a(t,r);return this.localizableStrings[e]=n,n},e.prototype.getLocalizableString=function(e){return this.localizableStrings[e]},e.prototype.getLocalizableStringText=function(e,t){void 0===t&&(t="");var r=this.getLocalizableString(e);if(!r)return"";var n=r.text;return n||t},e.prototype.setLocalizableStringText=function(e,t){var r=this.getLocalizableString(e);if(r){var n=r.text;n!==t&&(r.text=t,this.propertyValueChanged(e,n,t))}},e.prototype.createItemValues=function(e){var t=this,r=this.createNewArray(e,function(e){e.locOwner=t});return this.arraysInfo[e].isItemValues=!0,r},e.prototype.createNewArray=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=new Array;this.setPropertyValueCore(this.propertyHash,e,n),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return n.push=function(r){var i=Array.prototype.push.call(n,r);return t&&t(r),o.propertyValueChanged(e,n,n),i},n.pop=function(){var t=Array.prototype.pop.call(n);return r&&r(t),o.propertyValueChanged(e,n,n),t},n.splice=function(i,a){for(var s=[],u=2;u<arguments.length;u++)s[u-2]=arguments[u];i||(i=0),a||(a=0);var l=(p=Array.prototype.splice).call.apply(p,[n,i,a].concat(s));if(s||(s=[]),r&&l)for(var c=0;c<l.length;c++)r(l[c]);if(t)for(var c=0;c<s.length;c++)t(s[c],i+c);return o.propertyValueChanged(e,n,n),l;var p},n},e.prototype.setArray=function(e,t,r,n){if(e.length=0,t)for(var o=0;o<t.length;o++){if(r){var i=t[o];i=new a.a(null),i.setData(t[o]),Array.prototype.push.call(e,i)}else Array.prototype.push.call(e,t[o]);n&&n(e[o])}},e.prototype.isTwoValueEquals=function(e,t){return i.a.isTwoValueEquals(e,t)},e.commentPrefix="-Comment",e}(),l=function(){function e(){}return e.prototype.getText=function(){throw new Error("This method is abstract")},e}(),c=function(e){function t(t){var r=e.call(this)||this;return r.name=t,r.selectedElementInDesignValue=r,r.errorsValue=[],r}return n.b(t,e),t.ScrollElementToTop=function(e){if(!e)return!1;var t=document.getElementById(e);if(!t||!t.scrollIntoView)return!1;var r=t.getBoundingClientRect().top;return r<0&&t.scrollIntoView(),r<0},t.GetFirstNonTextElement=function(e){if(e&&e.length){for(var t=0;t<e.length;t++)if("#text"!=e[t].nodeName&&"#comment"!=e[t].nodeName)return e[t];return null}},t.FocusElement=function(e){if(!e)return!1;var t=document.getElementById(e);return!!t&&(t.focus(),!0)},t.prototype.setSurveyImpl=function(e){this.surveyImplValue=e,this.surveyImplValue&&(this.surveyDataValue=this.surveyImplValue.geSurveyData(),this.surveyValue=this.surveyImplValue.getSurvey(),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData())},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this.survey&&this.survey.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoadingFromJson",{get:function(){return this.survey?this.survey.isLoadingFromJson:this.isLoadingFromJsonValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.errorsValue},set:function(e){this.errorsValue=e},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!0,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.setPage=function(e,t){this.getPage(e)!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.copyCssClasses=function(e,t){if(t)if("string"==typeof t||t instanceof String)e.root=t;else for(var r in t)e[r]=t[r]},t}(u),p=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null==this.callbacks||0==this.callbacks.length},enumerable:!0,configurable:!0}),e.prototype.fire=function(e,t){if(null!=this.callbacks)for(var r=0;r<this.callbacks.length;r++){this.callbacks[r](e,t)}},e.prototype.clear=function(){this.callbacks=[]},e.prototype.add=function(e){null==this.callbacks&&(this.callbacks=new Array),this.callbacks.push(e)},e.prototype.remove=function(e){if(null!=this.callbacks){var t=this.callbacks.indexOf(e,0);void 0!=t&&this.callbacks.splice(t,1)}},e}()},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(){}return e.isValueEmpty=function(e){return!(!Array.isArray(e)||0!==e.length)||(e&&("string"==typeof e||e instanceof String)&&(e=e.trim()),!e&&0!==e&&!1!==e)},e.isArrayContainsEqual=function(t,r){if(!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++){for(var o=0;o<r.length&&!e.isTwoValueEquals(t[n],r[o]);o++);if(o===r.length)return!1}return!0},e.isArraysEqual=function(t,r,n){if(void 0===n&&(n=!1),!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;if(n){for(var o=[],i=[],a=0;a<t.length;a++)o.push(t[a]),i.push(r[a]);o.sort(),i.sort(),t=o,r=i}for(var a=0;a<t.length;a++)if(!e.isTwoValueEquals(t[a],r[a]))return!1;return!0},e.isTwoValueEquals=function(t,r,n){if(void 0===n&&(n=!1),t===r)return!0;if(t&&!r||!t&&r)return!1;if(!(t instanceof Object||r instanceof Object))return t==r;if(!(t instanceof Object&&r instanceof Object))return!1;if(t.equals)return t.equals(r);if(Array.isArray(t)&&Array.isArray(r))return e.isArraysEqual(t,r,n);for(var o in t)if(t.hasOwnProperty(o)){if(!r.hasOwnProperty(o))return!1;if(t[o]!==r[o]){if("object"!=typeof t[o])return!1;if(!this.isTwoValueEquals(t[o],r[o]))return!1}}for(o in r)if(r.hasOwnProperty(o)&&!t.hasOwnProperty(o))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e},e.getUnbindValue=function(e){return e&&e instanceof Object?JSON.parse(JSON.stringify(e)):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,r){return void 0!==e[r]?e[r]:t})})},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(22)),a=r(4),s=r(5);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;r.question=t,r.isValueChangedPerforming=!1;var n=r;return t.valueChangedCallback=function(){n.onValueChanged()},t.commentChangedCallback=function(){n.onCommentChanged()},t.errorsChangedCallback=function(){n.onErrorsChanged()},t.registerFunctionOnPropertyValueChanged("visibleIndex",function(){n.onVisibleIndexChanged()}),t.registerFunctionOnPropertyValueChanged("isReadOnly",function(){n.onReadOnlyChanged()}),r.koDummy=o.observable(0),r.koValue=r.createkoValue(),r.koComment=o.observable(r.question.comment),r.koErrors(r.question.errors),r.koIsReadOnly=o.observable(r.question.isReadOnly),r.koValue.subscribe(function(e){n.updateValue(e)}),r.koComment.subscribe(function(e){n.updateComment(e)}),r.question.koValue=r.koValue,r.question.koComment=r.koComment,r.question.koIsReadOnly=r.koIsReadOnly,r.question.koQuestionAfterRender=function(e,t){n.koQuestionAfterRender(e,t)},r}return n.b(t,e),t.prototype.updateQuestion=function(){this.updateKoDummy()},t.prototype.onValueChanged=function(){var e=this.question.value;s.a.isTwoValueEquals(e,this.koValue())||(this.isValueChangedPerforming=!0,this.setkoValue(e),this.isValueChangedPerforming=!1)},t.prototype.onCommentChanged=function(){var e=this.question.comment;s.a.isTwoValueEquals(e,this.koValue())||this.koComment(e)},t.prototype.onVisibleIndexChanged=function(){this.updateKoDummy()},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onReadOnlyChanged()},t.prototype.onReadOnlyChanged=function(){this.koIsReadOnly(this.question.isReadOnly)},t.prototype.onErrorsChanged=function(){this.koErrors(this.question.errors)},t.prototype.createkoValue=function(){return o.observable(this.question.value)},t.prototype.setkoValue=function(e){this.koValue(e)},t.prototype.updateValue=function(e){this.isValueChangedPerforming||s.a.isTwoValueEquals(this.question.value,e)||(this.question.value=s.a.getUnbindValue(e))},t.prototype.updateComment=function(e){this.question.comment=e},t.prototype.getNo=function(){return this.question.visibleIndex>-1?this.question.visibleIndex+1+". ":""},t.prototype.updateKoDummy=function(){this.koDummy(this.koDummy()+1),this.question.locTitle.onChanged()},t.prototype.koQuestionAfterRender=function(e,t){var r=a.c.GetFirstNonTextElement(e),n=e[0];"#text"===n.nodeName&&(n.data=""),n=e[e.length-1],"#text"===n.nodeName&&(n.data=""),r&&this.question.customWidget&&this.question.customWidget.afterRender(this.question,r)},t}(i.a)},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(27),a=r(4),s=r(2),u=r(9),l=r(29),c=r(17),p=r(10);r.d(t,"a",function(){return h});var h=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isvalueChangedCallbackFiring=!1,r.isValueChangedInSurvey=!1;var n=r;r.validatorsValue=r.createNewArray("validators",function(e){e.locOwner=n}),r.createLocalizableString("title",r,!0).onRenderedHtmlCallback=function(e){return n.fullTitle};r.createLocalizableString("description",r,!0);return r.createLocalizableString("commentText",r,!0),r.createLocalizableString("requiredErrorText",r),r}return n.b(t,e),t.prototype.getValueName=function(){return this.valueName?this.valueName:this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescription",{get:function(){return""!=this.description},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation","default")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("questionTitleLocation",e.toLowerCase()),t&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){if("default"!==this.titleLocation)return this.titleLocation;var e="top";return this.parent?e=this.parent.getQuestionTitleLocation():this.survey&&(e=this.survey.questionTitleLocation),e},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.name)},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText",s.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitleHtml",{get:function(){var e=this.locTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){var e=this.calcFullTitle();return this.survey?this.survey.getUpdatedQuestionTitle(this,e):e},enumerable:!0,configurable:!0}),t.prototype.calcFullTitle=function(){if(this.survey&&this.survey.getQuestionTitleTemplate()){if(!this.textPreProcessor){var e=this;this.textPreProcessor=new c.a,this.textPreProcessor.onProcess=function(t){e.getProcessedTextValue(t)}}return this.textPreProcessor.process(this.survey.getQuestionTitleTemplate())}var t=this.requiredText;t&&(t+=" ");var r=this.no;return r&&(r+=". "),r+t+this.processedTitle},t.prototype.focus=function(e){void 0===e&&(e=!1),a.c.ScrollElementToTop(this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();a.c.FocusElement(t)&&this.fireCallback(this.focusCallback)},t.prototype.updateCssClasses=function(t,r){e.prototype.updateCssClasses.call(this,t,r),this.isRequired&&(r.question.required&&(t.root+=" "+r.question.required),r.question.titleRequired&&(t.title+=" "+r.question.titleRequired))},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var r=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(r)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[r]||e.name]},t.prototype.supportComment=function(){return!1},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.isRequired!=e&&(this.setPropertyValue("isRequired",e),this.locTitle.strChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.getPropertyValue("hasComment",!1)},set:function(e){this.supportComment()&&(this.setPropertyValue("hasComment",e),this.hasComment&&(this.hasOther=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.getPropertyValue("hasOther",!1)},set:function(e){this.supportOther()&&this.hasOther!=e&&(this.setPropertyValue("hasOther",e),this.hasOther&&(this.hasComment=!1),this.hasOtherChanged())},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly||null!=this.survey&&this.survey.isDisplayMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.onReadOnlyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,r){this.isDesignMode||(e.prototype.runCondition.call(this,t,r),this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new p.a(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.readOnly=!this.conditionEnabelRunner.run(t,r)))},t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isReadOnly",this.isReadOnly)},Object.defineProperty(t.prototype,"no",{get:function(){if(this.visibleIndex<0)return"";var e=1,t=!0,r="";return this.survey&&this.survey.questionStartIndex&&(r=this.survey.questionStartIndex,parseInt(r)?e=parseInt(r):1==r.length&&(t=!1)),t?(this.visibleIndex+e).toString():String.fromCharCode(r.charCodeAt(0)+this.visibleIndex)},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.defaultValue&&this.updateValueWithDefaults()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onSurveyValueChanged(this.value),this.defaultValue&&this.updateValueWithDefaults()},Object.defineProperty(t.prototype,"value",{get:function(){return this.valueFromData(this.getValueCore())},set:function(e){this.setNewValue(e),this.isvalueChangedCallbackFiring||(this.isvalueChangedCallbackFiring=!0,this.fireCallback(this.valueChangedCallback),this.isvalueChangedCallbackFiring=!1)},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){this.value=null,this.comment=null},t.prototype.canClearValueAsInvisible=function(){return(!this.isVisible||!this.isParentVisible)&&(!this.survey||!this.valueName||!this.survey.hasVisibleQuestionByValueName(this.valueName))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!0,configurable:!0}),t.prototype.clearValueIfInvisible=function(){this.canClearValueAsInvisible()&&this.clearValue()},t.prototype.getDisplayValue=function(e){if(this.customWidget){var t=this.customWidget.getDisplayValue(this);if(t)return t}return this.getDisplayValueCore(e)},t.prototype.getDisplayValueCore=function(e){return this.value},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",e)},enumerable:!0,configurable:!0}),t.prototype.isAnswerCorrect=function(){return!this.isValueEmpty(this.value)&&!this.isValueEmpty(this.correctAnswer)&&this.isTwoValueEquals(this.value,this.correctAnswer)},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isValueEmpty(this.defaultValue)||(this.isDesignMode||this.isEmpty())&&this.setDefaultValue()},t.prototype.setDefaultValue=function(){this.value=this.defaultValue},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getComment()},set:function(e){this.comment!=e&&(this.setComment(e),this.fireCallback(this.commentChangedCallback))},enumerable:!0,configurable:!0}),t.prototype.getComment=function(){return null!=this.data?this.data.getComment(this.getValueName()):this.questionComment},t.prototype.setComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"validators",{get:function(){return this.validatorsValue},set:function(e){this.setPropertyValue("validators",e)},enumerable:!0,configurable:!0}),t.prototype.addConditionNames=function(e){e.push(this.name)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=(new o.b).toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e){return void 0===e&&(e=!0),this.checkForErrors(e),this.errors.length>0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!0,configurable:!0}),t.prototype.addError=function(e){this.errors.push(e),this.fireCallback(this.errorsChangedCallback)},t.prototype.checkForErrors=function(e){var t=this.errors?this.errors.length:0;this.errors=[],this.isVisible&&!this.isReadOnly&&this.collectErrors(),e&&(t!=this.errors.length||t>0)&&this.fireCallback(this.errorsChangedCallback)},t.prototype.collectErrors=function(){if(this.onCheckForErrors(this.errors),0==this.errors.length&&!this.isEmpty()){var e=this.runValidators();e&&(this.errors=[],this.errors.push(e))}if(this.survey&&0==this.errors.length){var e=this.fireSurveyValidation();e&&this.errors.push(e)}},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e){this.hasRequiredError()&&this.errors.push(new u.c(this.requiredErrorText))},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},t.prototype.runValidators=function(){return(new l.a).run(this)},t.prototype.setNewValue=function(e){this.setNewValueInData(e),this.onValueChanged()},t.prototype.setNewValueInData=function(e){this.isValueChangedInSurvey||(e=this.valueToData(e),this.setValueCore(e))},t.prototype.getValueCore=function(){return null!=this.data?this.data.getValue(this.getValueName()):this.questionValue},t.prototype.setValueCore=function(e){null!=this.data?this.data.setValue(this.getValueName(),e):this.questionValue=e},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){null!=this.data?this.data.setComment(this.getValueName(),e):this.questionComment=e},t.prototype.onSurveyValueChanged=function(e){this.isValueChangedInSurvey=!0,this.value=this.valueFromData(e),this.fireCallback(this.commentChangedCallback),this.isValueChangedInSurvey=!1},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t}(i.a);o.b.metaData.addClass("question",[{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"commentText",serializationProperty:"locCommentText"},"valueName","enableIf:condition","defaultValue:value","correctAnswer:value","isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"]}],null,"questionbase")},function(e,t,r){"use strict";var n=r(0),o=r(2),i=r(4);r.d(t,"c",function(){return a}),r.d(t,"b",function(){return s}),r.d(t,"d",function(){return u}),r.d(t,"e",function(){return l}),r.d(t,"a",function(){return c});var a=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.customErrorText=t,r}return n.b(t,e),t.prototype.getText=function(){return this.customErrorText?this.customErrorText:o.a.getString("requiredError")},t}(i.d),s=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.customErrorText=t,r}return n.b(t,e),t.prototype.getText=function(){return this.customErrorText?this.customErrorText:o.a.getString("requiredErrorInPanel")},t}(i.d),u=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getText=function(){return o.a.getString("numericError")},t}(i.d),l=function(e){function t(t){var r=e.call(this)||this;return r.maxSize=t,r}return n.b(t,e),t.prototype.getText=function(){return o.a.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],t=[0,0,2,3,3];if(0==this.maxSize)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,r)).toFixed(t[r])+" "+e[r]},t}(i.d),c=function(e){function t(t){var r=e.call(this)||this;return r.text=t,r}return n.b(t,e),t.prototype.getText=function(){return this.text},t}(i.d)},function(e,t,r){"use strict";var n=r(0),o=r(5),i=r(35),a=r(37),s=r(14);r.d(t,"d",function(){return u}),r.d(t,"e",function(){return l}),r.d(t,"f",function(){return c}),r.d(t,"g",function(){return p}),r.d(t,"c",function(){return h}),r.d(t,"b",function(){return d}),r.d(t,"h",function(){return f}),r.d(t,"a",function(){return g});var u=function(){function e(e){this.origionalValue=e}return e.prototype.getValue=function(t){if(Array.isArray(this.origionalValue)){for(var r=[],n=0;n<this.origionalValue.length;n++){var o=new e(this.origionalValue[n]);r.push(o.getValue(t))}return r}var i=this.getSimpleValue(this.origionalValue);if(i.isSimple)return i.value;var a=this.removeQuotesAndEscapes(this.origionalValue);if(t){var s=this.getValueName(a);if(s)return t.hasValue(s)?(a=t.getValue(s),this.getSimpleValue(a).value):null}return a},Object.defineProperty(e.prototype,"isBoolean",{get:function(){return this.isBooleanValue(this.origionalValue)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var e=this.origionalValue;return!e||this.isNumeric(e)||this.isBooleanValue(e)||(e="'"+e+"'"),e},e.prototype.removeQuotesAndEscapes=function(e){e.length>0&&("'"==e[0]||'"'==e[0])&&(e=e.substr(1));var t=e.length;return t>0&&("'"==e[t-1]||'"'==e[t-1])&&(e=e.substr(0,t-1)),e&&(e=e.replace("\\'","'"),e=e.replace('\\"','"')),e},e.prototype.getValueName=function(e){return e.length<3||"{"!=e[0]||"}"!=e[e.length-1]?null:e.substr(1,e.length-2)},e.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.prototype.isNumeric=function(e){if(e&&(e.indexOf("-")>-1||e.indexOf("+")>1||e.indexOf("*")>-1||e.indexOf("/")>-1||e.indexOf("%")>-1))return!1;var t=Number(e);return!isNaN(t)&&isFinite(t)},e.prototype.getSimpleValue=function(e){var t={isSimple:!1,value:e};return void 0===e||"undefined"===e?(t.value=null,t.isSimple=!0,t):e&&"string"==typeof e?this.isNumeric(e)?(t.isSimple=!0,t.value=parseFloat(e),t):this.isBooleanValue(e)?(t.value="true"==e.toLowerCase(),t.isSimple=!0,t):t:(t.isSimple=!0,t)},e}(),l=function(e){function t(t){var r=e.call(this,t)||this;return r.origionalValue=t,r.parameters=new Array,r}return n.b(t,e),t.prototype.getValue=function(e){for(var t=[],r=0;r<this.parameters.length;r++)t.push(this.parameters[r].getValue(e));return a.a.Instance.run(this.origionalValue,t,e.properties)},t.prototype.toString=function(){for(var e=this.origionalValue+"(",t=0;t<this.parameters.length;t++)t>0&&(e+=", "),e+=this.parameters[t].toString();return e},t}(u),c=function(e){function t(){return e.call(this,null)||this}return n.b(t,e),t.prototype.getValue=function(e){if(!this.left||!this.right)return null;var t=this.left.getValue(e),r=this.right.getValue(e);return"+"==this.operator?t+r:"-"==this.operator?t-r:"*"==this.operator?t*r:"/"==this.operator?r?t/r:null:"%"==this.operator&&r?t%r:null},t.prototype.toString=function(){var e=this.left?this.left.toString():"";return e+=" "+this.operator+" ",this.right&&(e+=this.right.toString()),e},t}(u),p=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this,null)||this;return t&&(r.root=t),r}return n.b(t,e),t.prototype.getValue=function(e){return!!this.root&&(this.processValue=e,this.runNode(this.root))},t.prototype.toString=function(){return this.root?this.root.toString():""},t.prototype.runNode=function(e){for(var t="and"==e.connective,r=0;r<e.children.length;r++){var n=this.runNodeCondition(e.children[r]);if(!n&&t)return e.isNot;if(n&&!t)return!e.isNot}return e.isNot?!t:t},t.prototype.runNodeCondition=function(e){return e.children?this.runNode(e):!!e.left&&this.runCondition(e)},t.prototype.runCondition=function(e){return e.performExplicit(e.left,e.right,this.processValue)},t}(u),h=function(){function e(){this.opValue="equal",this.leftValue=null,this.rightValue=null}return Object.defineProperty(e,"operators",{get:function(){return null!=e.operatorsValue?e.operatorsValue:(e.operatorsValue={empty:function(e,t){return null==e||!e},notempty:function(e,t){return null!=e&&!!e},equal:function(e,t){return o.a.isTwoValueEquals(e,t,!0)},notequal:function(e,t){return!o.a.isTwoValueEquals(e,t,!0)},contains:function(t,r){return e.operatorsValue.containsCore(t,r,!0)},notcontains:function(t,r){return e.operatorsValue.containsCore(t,r,!1)},containsCore:function(e,t,r){if(!e)return!1;if(e.length||(e=e.toString()),"string"==typeof e||e instanceof String){if(!t)return!1;t=t.toString();var n=e.indexOf(t)>-1;return r?n:!n}for(var o=0;o<e.length;o++)if(e[o]==t)return r;return!r},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(e,t){return null!=e&&null!=t&&e>=t},lessorequal:function(e,t){return null!=e&&null!=t&&e<=t}},e.operatorsValue)},enumerable:!0,configurable:!0}),e.getOperator=function(t){return e.operators[t]},e.setOperator=function(t,r){e.operators[t]=r},e.isCorrectOperator=function(t){return!!t&&(t=t.toLowerCase(),void 0!=e.operators[t])},e.isNoRightOperation=function(e){return"empty"==e||"notempty"==e},Object.defineProperty(e.prototype,"left",{get:function(){return this.leftValue},set:function(e){this.leftValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.rightValue},set:function(e){this.rightValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operator",{get:function(){return this.opValue},set:function(t){t&&(t=t.toLowerCase(),e.operators[t]&&(this.opValue=t))},enumerable:!0,configurable:!0}),e.prototype.perform=function(e,t,r){return void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=null),e||(e=this.left),t||(t=this.right),this.performExplicit(e,t,r)},e.prototype.performExplicit=function(t,r,n){var o=t?t.getValue(n):null;if(!r&&(!0===o||!1===o))return o;var i=r?r.getValue(n):null;return e.operators[this.operator](o,i)},e.prototype.toString=function(){if(!this.right||!this.operator)return"";var t=this.left.toString(),r=t+" "+this.operationToString();return e.isNoRightOperation(this.operator)?r:r+" "+this.right.toString()},e.prototype.operationToString=function(){var e=this.operator;return"equal"==e?"=":"notequal"==e?"!=":"greater"==e?">":"less"==e?"<":"greaterorequal"==e?">=":"lessorequal"==e?"<=":e},e.operatorsValue=null,e}(),d=function(){function e(){this.connectiveValue="and",this.isNot=!1,this.children=[]}return Object.defineProperty(e.prototype,"connective",{get:function(){return this.connectiveValue},set:function(e){e&&(e=e.toLowerCase(),"&"!=e&&"&&"!=e||(e="and"),"|"!=e&&"||"!=e||(e="or"),"and"!=e&&"or"!=e||(this.connectiveValue=e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.children.length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.children=[],this.connective="and"},e.prototype.toString=function(){if(this.isEmpty)return"";for(var e="",t=0;t<this.children.length;t++){var r=this.children[t],n=r.toString();r.children&&r.children.length>0&&(n="("+n+")"),n&&(e&&(e+=" "+this.connective+" "),e+=n)}return e},e}(),f=function(){function e(e){this.expression=e,this.processValue=new s.a}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!=e&&(this.expressionValue=e,this.operand=(new i.a).parseExpression(this.expressionValue))},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){return void 0===t&&(t=null),this.operand?(this.processValue.values=e,this.processValue.properties=t,this.operand.getValue(this.processValue)):null},e}(),g=function(){function e(e){this.root=new d,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!=e&&(this.expressionValue=e,(new i.a).parse(this.expressionValue,this.root))},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){void 0===t&&(t=null);var r=new p(this.root),n=new s.a;return n.values=e,n.properties=t,r.getValue(n)},e}()},function(e,t,r){"use strict";var n=r(15),o=r(1),i=r(5),a=r(10);r.d(t,"a",function(){return s});var s=function(){function e(e,t){void 0===t&&(t=null),this.visibleIfValue="",this.isVisibleValue=!0,this.locTextValue=new n.a(null,!0);var r=this;this.locTextValue.onGetTextCallback=function(e){return e||(r.isValueEmpty?null:r.value.toString())},t&&(this.locText.text=t),this.value=e}return e.createArray=function(t){var r=[];return e.setupArray(r,t),r},e.setupArray=function(e,t){e.push=function(e){var r=Array.prototype.push.call(this,e);return e.locOwner=t,r},e.splice=function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i=(s=Array.prototype.splice).call.apply(s,[this,e,r].concat(n));n||(n=[]);for(var a=0;a<n.length;a++)n[a].locOwner=t;return i;var s}},e.setData=function(t,r){t.length=0;for(var n=0;n<r.length;n++){var o=r[n],i=new e(null);i.setData(o),t.push(i)}},e.getData=function(e){for(var t=new Array,r=0;r<e.length;r++)t.push(e[r].getData());return t},e.getItemByValue=function(e,t){for(var r=0;r<e.length;r++)if(i.a.isTwoValueEquals(e[r].value,t))return e[r];return null},e.getTextOrHtmlByValue=function(t,r){var n=e.getItemByValue(t,r);return null!==n?n.locText.textOrHtml:""},e.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locText.strChanged()},e.prototype.getType=function(){return"itemvalue"},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),e.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(e.prototype,"locOwner",{get:function(){return this.locText.owner},set:function(e){this.locText.owner=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.itemValue},set:function(t){if(this.itemValue=t,this.itemValue){var r=this.itemValue.toString(),n=r.indexOf(e.Separator);n>-1&&(this.itemValue=r.slice(0,n),this.text=r.slice(n+1))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.locText.text},set:function(e){this.locText.text=e},enumerable:!0,configurable:!0}),e.prototype.getData=function(){var e=this.getCustomAttributes(),t=this.locText.getJson();if(!e&&!t&&!this.visibleIf)return this.value;var r=this.value;r&&r.pos&&delete r.pos;var n={value:r};if(t&&(n.text=t),this.visibleIf&&(n.visibleIf=this.visibleIf),e)for(var o in e)n[o]=e[o];return n},e.prototype.setData=function(t){if(void 0!==t.value){var r=null;this.isObjItemValue(t)&&(t.itemValue=t.itemValue,this.locText.setJson(t.locText.getJson()),t.visibleIf&&(this.visibleIf=t.visibleIf),r=e.itemValueProp),this.copyAttributes(t,r)}else this.value=t},Object.defineProperty(e.prototype,"visibleIf",{get:function(){return this.visibleIfValue},set:function(e){this.visibleIfValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isVisibleValue},enumerable:!0,configurable:!0}),e.prototype.setIsVisible=function(e){this.isVisibleValue=e},e.prototype.getConditionRunner=function(){return this.visibleIf?(this.conditionRunner||(this.conditionRunner=new a.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.conditionRunner):null},Object.defineProperty(e.prototype,"isValueEmpty",{get:function(){return!this.itemValue&&0!==this.itemValue&&!1!==this.itemValue},enumerable:!0,configurable:!0}),e.prototype.isObjItemValue=function(e){return void 0!==e.getType&&"itemvalue"==e.getType()},e.prototype.copyAttributes=function(e,t){for(var r in e)"function"!=typeof e[r]&&(t&&t.indexOf(r)>-1||("text"==r?this.locText.setJson(e[r]):this[r]=e[r]))},e.prototype.getCustomAttributes=function(){var t=null;for(var r in this)"function"==typeof this[r]||e.itemValueProp.indexOf(r)>-1||"itemValue"==r||(null==t&&(t={}),t[r]=this[r]);return t},e.Separator="|",e.itemValueProp=["text","value","visibleIfValue","visibleIf","hasText","locOwner","locText","isValueEmpty","isVisible","isVisibleValue","locTextValue","conditionRunner","pos","survey"],e}();o.b.metaData.addClass("itemvalue",["!value",{name:"text",onGetValue:function(e){return e.locText.pureText}},{name:"visibleIf:condition",visible:!1}])},function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return o});var n={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e}},o={root:"sv_main sv_default_css",header:"sv_header",body:"sv_body",footer:"sv_nav",navigationButton:"",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",page:{root:"sv_p_root",title:"",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",title:"sv_q_title",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer"},panel:{title:"sv_p_title",description:"",container:"sv_p_container"},error:{root:"sv_q_erbox",icon:"",item:""},boolean:{root:"sv_qcbc sv_qbln",item:"sv_q_checkbox",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",label:"sv_q_checkbox_label",itemControl:"sv_q_checkbox_control_item",controlLabel:"sv_q_checkbox_control_label",materialDecorator:"checkbox-material",other:"sv_q_other sv_q_checkbox_other"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected"},matrixdropdown:{root:"sv_q_matrix_dropdown"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:""},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",row:"sv_q_mt_row",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",label:"sv_q_radiogroup_label",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",materialDecorator:"circle",other:"sv_q_other sv_q_radiogroup_other"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text"},text:"sv_q_text_root",expression:"",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};n.standard=o},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(7));r.d(t,"a",function(){return a}),r.d(t,"b",function(){return s});var a=function(e){function t(t){var r=e.call(this,t)||this,n=r;return r.koOtherVisible=o.computed(function(){return n.koValue(),n.isOtherSelected}),r.koVisibleChoices=o.observableArray(n.question.visibleChoices),t.choicesChangedCallback=function(){n.koVisibleChoices(n.question.visibleChoices)},r.question.koOtherVisible=r.koOtherVisible,r.question.koVisibleChoices=r.koVisibleChoices,r}return n.b(t,e),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.question.isOtherSelected},enumerable:!0,configurable:!0}),t}(i.a),s=function(e){function t(t){var r=e.call(this,t)||this;r.koWidth=o.observable(r.colWidth),r.question.koWidth=r.koWidth,r.question.koAfterRender=r.koAfterRender;var n=r;return r.question.colCountChangedCallback=function(){n.onColCountChanged()},r}return n.b(t,e),t.prototype.onColCountChanged=function(){this.question.koWidth=o.observable(this.colWidth)},Object.defineProperty(t.prototype,"colWidth",{get:function(){var e=this.question.colCount;return e>0?100/e+"%":""},enumerable:!0,configurable:!0}),t.prototype.koAfterRender=function(e,t){var r=e[0];"#text"==r.nodeName&&(r.data=""),r=e[e.length-1],"#text"==r.nodeName&&(r.data="")},t}(a)},function(e,t,r){"use strict";var n=r(5);r.d(t,"a",function(){return o});var o=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e){if(!e)return e;for(var t="",r=0;r<e.length;r++){var n=e[r];if("."==n||"["==n)break;t+=n}return t},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.getValueCore=function(e,t){var r={hasValue:!1,value:null},o=t;if(!o)return r;for(var i=!0;e&&e.length>0;){if(!i&&"["==e[0]){if(!Array.isArray(o))return r;for(var a=1,s="";a<e.length&&"]"!=e[a];)s+=e[a],a++;if(e=a<e.length?e.substr(a+1):"",(a=this.getIntValue(s))<0||a>=o.length)return r;o=o[a]}else{i||(e=e.substr(1));var u=this.getFirstName(e);if(!u)return r;if(n.a.isValueEmpty(o[u]))return r;o=o[u],e=e.substr(u.length)}i=!1}return r.value=o,r.hasValue=!0,r},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},function(e,t,r){"use strict";var n=r(5);r.d(t,"a",function(){return o});var o=function(){function e(e,t){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.values={},this.htmlValues={},this.renderedText=null,this.calculatedText=null,this.onGetTextCallback=null,this.onCreating()}return Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner?this.owner.getLocale():""},enumerable:!0,configurable:!0}),e.prototype.strChanged=function(){null!==this.renderedText&&(this.calculatedText=this.calText(),this.renderedText!==this.calculatedText&&this.onChanged())},Object.defineProperty(e.prototype,"text",{get:function(){return this.renderedText=null!==this.calculatedText?this.calculatedText:this.calText(),this.calculatedText=null,this.renderedText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!0,configurable:!0}),e.prototype.calText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},Object.defineProperty(e.prototype,"pureText",{get:function(){var t=this.locale;t||(t=e.defaultLocale);var r=this.values[t];return r||t===e.defaultLocale||(r=this.values[e.defaultLocale]),r||(r=""),r},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){var e=this.textOrHtml;return this.onRenderedHtmlCallback?this.onRenderedHtmlCallback(e):e},enumerable:!0,configurable:!0}),e.prototype.getLocaleText=function(t){t||(t=e.defaultLocale);var r=this.values[t];return r||""},e.prototype.setLocaleText=function(t,r){r!=this.getLocaleText(t)&&(r&&t&&t!=e.defaultLocale&&!this.values[t]&&r==this.getLocaleText(e.defaultLocale)||(t||(t=e.defaultLocale),delete this.htmlValues[t],r?"string"==typeof r&&(t!=e.defaultLocale&&r==this.getLocaleText(e.defaultLocale)?this.setLocaleText(t,null):(this.values[t]=r,t==e.defaultLocale&&this.deleteValuesEqualsToDefault(r))):this.values[t]&&delete this.values[t],this.strChanged()))},e.prototype.getJson=function(){var t=Object.keys(this.values);return 0==t.length?null:1==t.length&&t[0]==e.defaultLocale?this.values[t[0]]:this.values},e.prototype.setJson=function(e){if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.strChanged()}},e.prototype.equals=function(e){return!(!e||!e.values)&&n.a.isTwoValueEquals(this.values,e.values)},e.prototype.onChanged=function(){this.onStrChanged&&this.onStrChanged()},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.text;if(!t)return!1;var r=this.locale;return r||(r=e.defaultLocale),r in this.htmlValues||(this.htmlValues[r]=this.owner.getMarkdownHtml(t)),!!this.htmlValues[r]},e.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=e.defaultLocale),this.htmlValues[t]},e.prototype.deleteValuesEqualsToDefault=function(t){for(var r=Object.keys(this.values),n=0;n<r.length;n++)r[n]!=e.defaultLocale&&this.values[r[n]]==t&&delete this.values[r[n]]},e.defaultLocale="default",e}()},function(e,t,r){"use strict";function n(e,t,r,n){e.hasOther&&(e.storeOthersAsComment=!1),e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=r.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(n)}var o=r(0),i=r(1),a=r(8),s=r(5),u=r(4),l=r(17),c=r(14),p=r(11),h=r(2),d=r(3);r.d(t,"e",function(){return f}),r.d(t,"d",function(){return g}),r.d(t,"c",function(){return m}),r.d(t,"b",function(){return y}),r.d(t,"a",function(){return v});var f={dropdown:{properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText"],onCellQuestionUpdate:function(e,t,r,o){n(e,t,r,o),e.optionsCaption||(e.optionsCaption=r.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText"],onCellQuestionUpdate:function(e,t,r,o){n(e,t,r,o),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText"],onCellQuestionUpdate:function(e,t,r,o){n(e,t,r,o),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},text:{properties:["placeHolder","inputType"],onCellQuestionUpdate:function(e,t,r,n){}},comment:{properties:["placeHolder"],onCellQuestionUpdate:function(e,t,r,n){}},boolean:{properties:["defaultValue"],onCellQuestionUpdate:function(e,t,r,n){e.showTitle=!0}},expression:{properties:["expression"],onCellQuestionUpdate:function(e,t,r,n){}}},g=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.colOwnerValue=null,n.indexValue=-1,n.updateTemplateQuestion(),n.name=t,r&&(n.title=r),n}return o.b(t,e),t.getColumnTypes=function(){var e=[];for(var t in f)e.push(t);return e},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.calcCellQuestionType()},t.prototype.getDynamicProperties=function(){var e=this.calcCellQuestionType(),t=f[e];return t?t.properties:[]},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,this.updateTemplateQuestion()},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!0,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType","default")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("cellType",e),this.updateTemplateQuestion()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.getFullTitle(this.locTitle.textOrHtml)},enumerable:!0,configurable:!0}),t.prototype.getFullTitle=function(e){if(e||(e=this.name),this.isRequired){var t=this.colOwner?this.colOwner.getRequiredText():"";t&&(t+=" "),e=t+e}return e},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",-1)},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.colOwner?this.colOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(),r=this.createNewQuestion(t);return this.updateCellQuestion(r,e),r},t.prototype.updateCellQuestion=function(e,t){this.setQuestionProperties(e);var r=this.calcCellQuestionType(),n=f[r];n&&n.onCellQuestionUpdate&&n.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(){return"default"!==this.cellType?this.cellType:this.colOwner?this.colOwner.getCellType():"dropdown"},t.prototype.updateTemplateQuestion=function(){var e=this.templateQuestion?this.templateQuestion.getType():"",t=this.calcCellQuestionType();if(t!==e){this.templateQuestion&&this.removeProperties(e),this.templateQuestionValue=this.createNewQuestion(t),this.templateQuestion.locOwner=this,this.addProperties(t);var r=this;this.templateQuestion.locTitle.onGetTextCallback=function(e){return r.getFullTitle(e)},this.templateQuestion.onPropertyChanged.add(function(){r.doColumnPropertiesChanged()})}},t.prototype.createNewQuestion=function(e){var t=i.b.metaData.createClass(e);return this.setQuestionProperties(t),t},t.prototype.setQuestionProperties=function(e){if(this.templateQuestion){var t=(new i.b).toJsonObject(this.templateQuestion);t.type=e.getType(),(new i.b).toObject(t,e)}},t.prototype.propertyValueChanged=function(t,r,n){e.prototype.propertyValueChanged.call(this,t,r,n),this.doColumnPropertiesChanged()},t.prototype.doColumnPropertiesChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertiesChanged(this)},t.prototype.getProperties=function(e){var t=f[e];return t&&t.properties?i.b.metaData.findProperties(e,t.properties):[]},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),r=0;r<t.length;r++){var n=t[r];delete this[n.name],n.serializationProperty&&delete this[n.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,r=this.getProperties(e),n=0;n<r.length;n++){var o=r[n];this.addProperty(t,o.name,!1),o.serializationProperty&&this.addProperty(t,o.serializationProperty,!0)}},t.prototype.addProperty=function(e,t,r){var n={configurable:!0,get:function(){return e[t]}};r||(n.set=function(r){e[t]=r}),Object.defineProperty(this,t,n)},t}(u.a),m=function(){function e(e,t,r){var n=this;this.column=e,this.row=t,this.data=r,this.questionValue=r.createQuestion(this.row,this.column),this.questionValue.validateValueCallback=function(){return r.validateCell(t,e.name,t.value)},i.a.getProperties(e.getType()).forEach(function(t){var r=t.name;void 0!==e[r]&&null==n.questionValue.getPropertyValue(r,null)&&(n.questionValue[r]=e[r])}),Object.keys(e).forEach(function(e){}),this.questionValue.updateCustomWidget()}return Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!0,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),y=function(){function e(t,r){this.rowValues={},this.isSettingValue=!1,this.cells=[],this.data=t,this.value=r,this.textPreProcessor=new l.a;var n=this;this.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)};for(var o=0;o<this.data.columns.length;o++)void 0===this.rowValues[this.data.columns[o].name]&&(this.rowValues[this.data.columns[o].name]=null);this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.rowValues},set:function(e){if(this.isSettingValue=!0,this.rowValues={},null!=e)for(var t in e)this.rowValues[t]=e[t];for(var r=0;r<this.cells.length;r++)this.cells[r].question.onSurveyValueChanged(this.getValue(this.cells[r].column.name));this.isSettingValue=!1},enumerable:!0,configurable:!0}),e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){return this.getAllValues()},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},e.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].question.onReadOnlyChanged()},e.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question.onAnyValueChanged(e)},e.prototype.getValue=function(e){return this.rowValues[e]},e.prototype.setValue=function(e,t){this.isSettingValue||(""===t&&(t=null),null!=t?this.rowValues[e]=t:delete this.rowValues[e],this.data.onRowChanged(this,e,this.value),this.onAnyValueChanged("row"))},e.prototype.getComment=function(e){var t=this.getValue(e+u.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+u.a.commentPrefix,t)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.a.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!0,configurable:!0}),e.prototype.getQuestionByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t].question;return null},e.prototype.getQuestionByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t].question;return null},e.prototype.clearIncorrectValues=function(){var e=this.value;for(var t in e){var r=this.getQuestionByColumnName(t);if(r){var n=r.value;r.clearIncorrectValues(),s.a.isTwoValueEquals(n,r.value)||this.setValue(t,r.value)}else this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e){return this.data?this.data.getMarkdownHtml(e):null},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].question.locStrsChanged()},e.prototype.runCondition=function(e,t){e.row=this.value;for(var r=0;r<this.cells.length;r++)this.cells[r].runCondition(e,t)},e.prototype.buildCells=function(){for(var e=this.data.columns,t=0;t<e.length;t++){var r=e[t];this.cells.push(this.createCell(r))}},e.prototype.createCell=function(e){return new m(e,this,this.data)},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getProcessedTextValue=function(e){var t=(new c.a).getFirstName(e.name);if(e.isExists="row"==t,e.canProcess=e.isExists,e.isExists){var r={row:this.value};e.value=(new c.a).getValue(e.name,r)}},e.prototype.getTextProcessor=function(){return this},e.prototype.processText=function(e,t){return e=this.textPreProcessor.process(e,t),this.getSurvey()?this.getSurvey().processText(e,t):e},e.prototype.processTextEx=function(e,t){if(e=this.processText(e,t),!this.getSurvey())return e;var r=this.textPreProcessor.hasAllValuesOnLastRun,n=this.getSurvey().processTextEx(e,t);return n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.idCounter=1,e}(),v=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isRowChanging=!1,r.generatedVisibleRows=null;var n=r;return r.columnsValue=r.createNewArray("columns",function(e){e.colOwner=n}),r.choicesValue=r.createItemValues("choices"),r.createLocalizableString("optionsCaption",r),r.registerFunctionOnPropertyValueChanged("columns",function(e){n.updateColumnsIndexes(e),n.generatedVisibleRows=null,n.fireCallback(n.columnsChangedCallback)}),r.registerFunctionOnPropertiesValueChanged(["columnsLocation","addRowLocation"],function(){n.fireCallback(n.columnsLocationChangedCallback)}),r.registerFunctionOnPropertyValueChanged("cellType",function(){n.generatedVisibleRows=null,n.fireCallback(n.columnsChangedCallback)}),r}return o.b(t,e),t.addDefaultColumns=function(e){for(var t=d.a.DefaultColums,r=0;r<t.length;r++)e.addColumn(t[r])},t.prototype.getType=function(){return"matrixdropdownbase"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.columnsValue},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.getPropertyValue("columnsLocation","horizontal")},set:function(e){this.setPropertyValue("columnsLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isColumnsLocationHorizontal",{get:function(){return"vertical"!=this.columnsLocation},enumerable:!0,configurable:!0}),t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){t.column=this.columns[r],t.columnName=t.column.name;var n=e.cells[r];t.cell=n,t.cellQuestion=n.question,t.value=n.value,this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType","dropdown")},set:function(e){e=e.toLowerCase(),this.cellType!=e&&(this.setPropertyValue("cellType",e),this.updateColumnsCellType(),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount",0)},set:function(e){e<0||e>4||(this.setPropertyValue("columnColCount",e),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!0,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.onColumnPropertiesChanged=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t],n=0;n<r.cells.length;n++)if(r.cells[n].column===e){e.updateCellQuestion(r.cells[n].question,r);break}},t.prototype.getCellType=function(){return this.cellType},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);for(var n="",o=r.length-1;o>=0&&"."!=r[o];o--)n=r[o]+n;var i=this.getColumnByName(n);if(!i)return null;var a=i.createCellQuestion(null);return a?a.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runCellsCondition(t,r)},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){var r={};e&&e instanceof Object&&(r=JSON.parse(JSON.stringify(e))),r.row={};for(var n=this.generatedVisibleRows,o=0;o<n.length;o++)n[o].runCondition(r,t)}},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,r=0;r<t.length;r++)t[r].locStrsChanged();var n=this.generatedVisibleRows;if(n)for(var r=0;r<n.length;r++)n[r].locStrsChanged()},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){return e.minWidth?e.minWidth:this.columnMinWidth},Object.defineProperty(t.prototype,"choices",{get:function(){return this.choicesValue},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",h.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var r=new g(e,t);return this.columnsValue.push(r),r},Object.defineProperty(t.prototype,"visibleRows",{get:function(){if(!this.isLoadingFromJson){if(!this.generatedVisibleRows&&(this.generatedVisibleRows=this.generateRows(),this.data)){var e={survey:this.survey};this.runCellsCondition(this.data.getAllValues(),e)}return this.generatedVisibleRows}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader",!0)},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.generatedVisibleRows=null},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var r=this.createNewValue(this.value);return this.getRowValueCore(t[e],r)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;this.onRowChanged(r[e],"",t),this.onValueChanged()},t.prototype.generateRows=function(){return null},t.prototype.createNewValue=function(e){return e||{}},t.prototype.getRowValueCore=function(e,t,r){void 0===r&&(r=!1);var n=t[e.rowName]?t[e.rowName]:null;return!n&&r&&(n={},t[e.rowName]=n),n},t.prototype.getRowDisplayValue=function(e,t){for(var r=0;r<this.columns.length;r++){var n=this.columns[r];t[n.name]&&(t[n.name]=e.cells[r].question.displayValue)}return t},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onValueChanged=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(this.value),t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++){var o=r[n].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var r=this.hasErrorInColumns(t);return e.prototype.hasErrors.call(this,t)||r},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=this.generatedVisibleRows,n=0;n<r.length;n++)for(var o=r[n],i=0;i<o.cells.length;i++){var a=o.cells[i].question.getAllErrors();a&&a.length>0&&(t=t.concat(a))}return t},t.prototype.hasErrorInColumns=function(e){if(!this.generatedVisibleRows)return!1;for(var t=!1,r=0;r<this.generatedVisibleRows.length;r++){var n=this.generatedVisibleRows[r].cells;if(n)for(var o=0;o<this.columns.length;o++)if(n[o]){var i=n[o].question;t=i&&i.visible&&i.hasErrors(e)||t}}return t},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t].cells,n=0;n<this.columns.length;n++){if(!e)return r[n].question;if(r[n].question.currentErrorCount>0)return r[n].question}return null},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var r=t.createCellQuestion(e);return this.isReadOnly&&(r.readOnly=!0),r.setSurveyImpl(e),r},t.prototype.deleteRowValue=function(e,t){return delete e[t.rowName],0==Object.keys(e).length?null:e},t.prototype.onReadOnlyChanged=function(){if(!this.isLoadingFromJson)for(var e=this.visibleRows,t=0;t<e.length;t++)e[t].onReadOnlyChanged()},t.prototype.onAnyValueChanged=function(e){if(!this.isLoadingFromJson)for(var t=this.visibleRows,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},t.prototype.onCellValueChanged=function(e,t,r){if(this.survey){var n=this,o=function(t){for(var r=0;n.columns.length;r++)if(n.columns[r].name==t)return e.cells[r].question;return null},i={row:e,columnName:t,rowValue:r,value:r[t],getCellQuestion:o};this.survey.matrixCellValueChanged(this,i)}},t.prototype.validateCell=function(e,t,r){if(this.survey){var n={row:e,columnName:t,rowValue:r,value:r[t]};return this.survey.matrixCellValidate(this,n)}},t.prototype.onRowChanged=function(e,t,r){var n=this.createNewValue(this.value);this.isMatrixValueEmpty(n)&&(n=null);var o=this.createNewValue(this.value),i=this.getRowValueCore(e,o,!0);i||(i={});for(var a in i)delete i[a];if(r){r=JSON.parse(JSON.stringify(r));for(var a in r)this.isValueEmpty(r[a])||(i[a]=r[a])}0==Object.keys(i).length&&(o=this.deleteRowValue(o,e)),this.isTwoValueEquals(n,o)||(this.isRowChanging=!0,this.setNewValue(o),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,i))},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},t.prototype.getSurvey=function(){return this.survey},t}(a.a);i.b.metaData.addClass("matrixdropdowncolumn",["!name",{name:"title",serializationProperty:"locTitle"},{name:"cellType",default:"default",choices:function(){var e=g.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","hasOther:boolean","readOnly:boolean","minWidth","visibleIf:condition","enableIf:condition",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new g("")}),i.b.metaData.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},"horizontalScroll:boolean",{name:"choices:itemvalues",onGetValue:function(e){return p.a.getData(e.choices)},onSetValue:function(e,t){e.choices=t}},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"dropdown",choices:function(){return g.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"showHeader:boolean",default:!0}],function(){return new v("")},"question")},function(e,t,r){"use strict";r.d(t,"a",function(){return i});var n=function(){function e(){}return e}(),o=function(){function e(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0}return e}(),i=function(){function e(){this.hasAllValuesOnLastRunValue=!1}return e.prototype.process=function(e,t){if(void 0===t&&(t=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var r=this.getItems(e),n=r.length-1;n>=0;n--){var i=r[n],a=this.getName(e.substring(i.start+1,i.end));if(a){var s=new o(a,t);this.onProcess(s),s.isExists?(null==s.value&&(s.value="",this.hasAllValuesOnLastRunValue=!1),e=e.substr(0,i.start)+s.value+e.substr(i.end+1)):s.canProcess&&(this.hasAllValuesOnLastRunValue=!1)}}return e},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return this.hasAllValuesOnLastRunValue},enumerable:!0,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],r=e.length,o=-1,i="",a=0;a<r;a++)if(i=e[a],"{"==i&&(o=a),"}"==i){if(o>-1){var s=new n;s.start=o,s.end=a,t.push(s)}o=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}()},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(28)),a=r(4),s=r(21),u=r(12),l=r(33),c=r(24),p=r(15);r.d(t,"a",function(){return h}),c.a.Instance.onCustomWidgetAdded.add(function(e){e.widgetJson.isDefaultRender||(e.htmlTemplate||(e.htmlTemplate="<div>'htmlTemplate' attribute is missed.</div>"),(new l.a).replaceText(e.htmlTemplate,"widget",e.name))});var h=function(e){function t(t,r,n){void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null);var i=e.call(this,t)||this;if(i.onRendered=new a.b,i.isFirstRender=!0,n&&(i.css=n),r&&(i.renderedElement=r),void 0===o)throw new Error("knockoutjs library is not loaded.");var s=i;return i.registerFunctionOnPropertyValueChanged("timeSpent",function(){s.onTimeSpentChanged()}),i.render(r),i}return n.b(t,e),Object.defineProperty(t,"cssType",{get:function(){return u.b.currentType},set:function(e){u.b.currentType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.complete)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.prev)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.start)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.next)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedCss",{get:function(){var e=u.b.getCss();return e.body+" "+e.completedPage},enumerable:!0,configurable:!0}),t.prototype.getNavigationCss=function(e,t){var r="";return e&&(r=e),t&&(r+=" "+t),r},Object.defineProperty(t.prototype,"css",{get:function(){return u.b.getCss()},set:function(e){this.mergeValues(e,this.css)},enumerable:!0,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.updateKoCurrentPage(),this.updateCustomWidgets(this.currentPage);var t=this;e&&"string"==typeof e&&(e=document.getElementById(e)),e&&(this.renderedElement=e),(e=this.renderedElement)&&(e.innerHTML=this.getHtmlTemplate(),t.startTimerFromUI(),t.applyBinding())},t.prototype.clear=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=!0),e.prototype.clear.call(this,t,r),this.render()},t.prototype.koEventAfterRender=function(e,t){t.onRendered.fire(self,{}),t.afterRenderSurvey(e)},t.prototype.loadSurveyFromService=function(t,r,n){void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),n&&(this.renderedElement=n),e.prototype.loadSurveyFromService.call(this,t,r)},t.prototype.setCompleted=function(){e.prototype.setCompleted.call(this),this.updateKoCurrentPage()},t.prototype.start=function(){e.prototype.start.call(this),this.updateKoCurrentPage()},t.prototype.createNewPage=function(e){return new s.b(e)},t.prototype.getHtmlTemplate=function(){return l.b},t.prototype.onBeforeCreating=function(){var e=this,t=this;this.dummyObservable=o.observable(0),this.koCurrentPage=o.observable(this.currentPage),this.koIsNavigationButtonsShowing=o.computed(function(){return e.dummyObservable(),e.isNavigationButtonsShowing}),this.koIsFirstPage=o.computed(function(){return e.dummyObservable(),e.isFirstPage}),this.koIsLastPage=o.computed(function(){return e.dummyObservable(),e.isLastPage}),this.koProgressText=o.computed(function(){return e.dummyObservable(),e.progressText}),this.koProgress=o.computed(function(){return e.dummyObservable(),e.getProgress()}),this.koState=o.observable(this.state),this.koCompletedState=o.observable(""),this.koCompletedStateText=o.observable(""),this.koCompletedStateCss=o.observable(""),this.koTimerInfoText=o.observable(this.timerInfoText),this.koAfterRenderPage=function(e,r){var n=a.c.GetFirstNonTextElement(e);n&&t.afterRenderPage(n)}},t.prototype.currentPageChanged=function(t,r){this.updateKoCurrentPage(),e.prototype.currentPageChanged.call(this,t,r),this.isDesignMode||this.scrollToTopOnPageChange()},t.prototype.pageVisibilityChanged=function(t,r){e.prototype.pageVisibilityChanged.call(this,t,r),this.updateKoCurrentPage()},t.prototype.onLoadSurveyFromService=function(){this.render()},t.prototype.onLoadingSurveyFromService=function(){this.render()},t.prototype.setCompletedState=function(t,r){e.prototype.setCompletedState.call(this,t,r),this.koCompletedState(this.completedState),this.koCompletedStateText(this.completedStateText),this.koCompletedStateCss(""!==this.completedState?this.css.saveData[this.completedState]:"")},t.prototype.onTimeSpentChanged=function(){this.koTimerInfoText(this.timerInfoText)},t.prototype.applyBinding=function(){this.renderedElement&&(this.updateKoCurrentPage(),o.cleanNode(this.renderedElement),this.isFirstRender||this.updateCurrentPageQuestions(),this.isFirstRender=!1,o.applyBindings(this,this.renderedElement))},t.prototype.updateKoCurrentPage=function(){this.isLoadingFromJson||(this.dummyObservable(this.dummyObservable()+1),this.currentPage!==this.koCurrentPage()&&this.koCurrentPage(this.currentPage),this.koState(this.state))},t.prototype.updateCurrentPageQuestions=function(){for(var e=this.currentPage?this.currentPage.questions:[],t=0;t<e.length;t++){var r=e[t];r.visible&&r.updateQuestion()}},t}(i.a);p.a.prototype.onCreating=function(){var e=this;this.koReRender=o.observable(0),this.koRenderedHtml=o.pureComputed(function(){return e.koReRender(),e.renderedHtml})},p.a.prototype.onChanged=function(){this.koReRender(this.koReRender()+1)},o.components.register("survey",{viewModel:{createViewModel:function(e,t){return o.unwrap(e.survey).render(),e.survey}},template:l.b}),o.bindingHandlers.surveyProp={update:function(e,t,r){var n=o.utils.unwrapObservable(t())||{};for(var i in n)if("string"==typeof i){var a=o.utils.unwrapObservable(n[i]);e[i]=a}}},i.a.platform="knockout"},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(4),a=r(10),s=r(3),u=r(12),l=r(9);r.d(t,"c",function(){return c}),r.d(t,"a",function(){return p}),r.d(t,"b",function(){return h});var c=function(){function e(e){this.panel=e,this.elements=[],this.visibleValue=e.isDesignMode}return Object.defineProperty(e.prototype,"questions",{get:function(){return this.elements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.visibleValue},set:function(e){e!=this.visible&&(this.visibleValue=e,this.onVisibleChanged())},enumerable:!0,configurable:!0}),e.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},e.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},e.prototype.onVisibleChanged=function(){this.visibilityChangedCallback&&this.visibilityChangedCallback()},e.prototype.setWidth=function(){var e=this.getVisibleCount();if(0!=e)for(var t=0,r=0;r<this.elements.length;r++)if(this.elements[r].isVisible){var n=this.elements[r];n.renderWidth=n.width?n.width:(100/e).toFixed(6)+"%",n.rightIndent=t<e-1?1:0,t++}else this.elements[r].renderWidth=""},e.prototype.getVisibleCount=function(){for(var e=0,t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e++;return e},e.prototype.calcVisible=function(){return this.getVisibleCount()>0},e}(),p=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;n.name=r,n.rowValues=null,n.conditionRunner=null,n.isQuestionsReady=!1,n.questionsValue=new Array,n.childVisibilityChangeHandler=function(){n.getIsPageVisible(null)!==n.getPropertyValue("isVisible")&&n.onVisibleChanged()},n.elementsValue=n.createNewArray("elements",function(e){o.onAddElement(e,o.elementsValue.length)},function(e){o.onRemoveElement(e)}),n.registerFunctionOnPropertyValueChanged("elements",function(){o.onRowsChanged()}),n.id=t.getPanelId();var o=n;n.createLocalizableString("title",n,!0),n.createLocalizableString("description",n,!0);return n.createLocalizableString("requiredErrorText",n),n}return n.b(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescription",{get:function(){return""!=this.description},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e={error:{}};return this.copyCssClasses(e,this.css),this.copyCssClasses(e.error,this.css.error),this.survey&&this.survey.updatePanelCssClasses(this,e),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return u.b.getCss()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var r=t.questions,n=0;n<r.length;n++)this.questionsValue.push(r[n]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!0,configurable:!0}),t.prototype.getQuestionByName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].name==e)return t[r];return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].getValueName()==e)return t[r];return null},t.prototype.getValue=function(){for(var e={},t=0;t<this.questions.length;t++){var r=this.questions[t];r.isEmpty()||(e[r.getValueName()]=r.value)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];if(r==e)return!0;if(r.isPanel&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var r={fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1};return this.hasErrorsCore(r),r.firstErrorQuestion&&r.firstErrorQuestion.focus(!0),r.result},t.prototype.hasErrorsInPanels=function(e){var t=this.errors.length;if(this.errors=[],this.hasRequiredError(e),this.survey){var r=this.survey.validatePanel(this);r&&(this.errors.push(r),e.result=!0)}e.fireCallback&&(t!=this.errors.length||t>0)&&this.errorsChangedCallback&&this.errorsChangedCallback()},t.prototype.hasRequiredError=function(e){if(this.isRequired){var t=[];if(this.addQuestionsToList(t,!0),0!=t.length){for(var r=0;r<t.length;r++)if(!t[r].isEmpty())return;e.result=!0,this.errors.push(new l.b(this.requiredErrorText)),e.firstErrorQuestion||(e.firstErrorQuestion=t[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=0;t<this.elements.length;t++)if(this.elements[t].isVisible)if(this.elements[t].isPanel)this.elements[t].hasErrorsCore(e);else{var r=this.elements[t];if(r.isReadOnly)continue;r.hasErrors(e.fireCallback)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=r),e.result=!0)}this.hasErrorsInPanels(e)},t.prototype.addQuestionsToList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!1)},t.prototype.addPanelsIntoList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!0)},t.prototype.addElementsToList=function(e,t,r,n){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,r,n)},t.prototype.addElementsToListCore=function(e,t,r,n,o){for(var i=0;i<t.length;i++){var a=t[i];r&&!a.visible||((o&&a.isPanel||!o&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,r,n,o):n&&this.addElementsToListCore(e,a.getElementsInDesign(!1),r,n,o))}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.rowValues||(this.rowValues=this.buildRows()),this.rowValues},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.survey||this.survey.currentPage==this.root},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation","default")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),t.prototype.createRow=function(){var e=new c(this);return e.visibilityChangedCallback=this.childVisibilityChangeHandler,e},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.rowsChangedCallback&&this.rowsChangedCallback()},t.prototype.onRowsChanged=function(){this.rowValues=null,this.rowsChangedCallback&&!this.isLoadingFromJson&&this.rowsChangedCallback()},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),e.isPanel){var r=e;this.survey&&this.survey.panelAdded(r,t,this,this.root)}else if(this.survey){var n=e;this.survey.questionAdded(n,t,this,this.root)}var o=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],function(){o.onElementVisibilityChanged(e)},this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",function(){o.onElementStartWithNewLineChanged(e)},this.id)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e)},t.prototype.onElementVisibilityChanged=function(e){this.rowValues&&this.updateRowsVisibility(e),this.parent&&this.parent.onElementVisibilityChanged(this)},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=0;t<this.rowValues.length;t++){var r=this.rowValues[t];if(r.elements.indexOf(e)>-1){r.updateVisible();break}}},t.prototype.buildRows=function(){for(var e=new Array,t=0;t<this.elements.length;t++){var r=this.elements[t],n=0==t||r.startWithNewLine,o=n?this.createRow():e[e.length-1];n&&e.push(o),o.addElement(r)}for(var t=0;t<e.length;t++)e[t].updateVisible();return e},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!0,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.isDesignMode||this.getIsPageVisible(null)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.questions.length;t++)if(this.questions[t]!=e&&this.questions[t].visible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0){for(var t=0;t<this.elements.length;t++)this.elements[t].setVisibleIndex(-1);return 0}for(var r=e,t=0;t<this.elements.length;t++)e+=this.elements[t].setVisibleIndex(e);return e-r},t.prototype.addElement=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e))},t.prototype.addQuestion=function(e,t){void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t){void 0===t&&(t=null);var r=s.a.Instance.createQuestion(e,t);return this.addQuestion(r),r},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t),t},t.prototype.createNewPanel=function(e){return new h(e)},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode){for(var r=this.elements.slice(),n=0;n<r.length;n++)r[n].runCondition(e,t);this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new a.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.visible=this.conditionRunner.run(e,t))}},t.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].onAnyValueChanged(e)},t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onReadOnlyChanged()},t.panelCounter=100,t}(i.c),h=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;r.name=t;var n=r;return r.registerFunctionOnPropertyValueChanged("state",function(){n.stateChangedCallback&&n.stateChangedCallback()}),r}return n.b(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","default")},set:function(e){this.setPropertyValue("state",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){if(!this.isDesignMode)return"expanded"==this.state},enumerable:!0,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent",0)},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.setPropertyValue("isVisible",this.isVisible),null!=this.survey&&this.survey.panelVisibilityChanged(this,this.visible)},t}(p);o.b.metaData.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1},{name:"visible:boolean",default:!0},"visibleIf:condition",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new p}),o.b.metaData.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,choices:function(e){var t=e?e.survey:null;return t?t.pages:[]}}],function(){return new h},"panelbase")},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(8),a=r(11),s=r(5),u=r(2),l=r(9),c=r(34),p=r(10);r.d(t,"b",function(){return h}),r.d(t,"a",function(){return d});var h=function(e){function t(t){var r=e.call(this,t)||this;r.visibleChoicesCache=null,r.filteredChoicesValue=null,r.otherItemValue=new a.a("other"),r.choicesFromUrl=null,r.cachedValueForUrlRequests=null,r.isSettingComment=!1,r.isFirstLoadChoicesFromUrl=!0;var n=r;r.choicesValues=r.createItemValues("choices"),r.choicesByUrl=r.createRestfull(),r.choicesByUrl.owner=r;var o=r.createLocalizableString("otherText",r,!0);return r.createLocalizableString("otherErrorText",r,!0),r.otherItemValue.locOwner=r,r.otherItemValue.setLocText(o),o.onGetTextCallback=function(e){return e||u.a.getString("otherItemText")},r.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},r.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},r}return n.b(t,e),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.getStoreOthersAsComment()?this.getHasOther(this.value):this.getHasOther(this.cachedValue)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsCondition(t,r)},t.prototype.filterItems=function(){return!(this.isLoadingFromJson||!this.data||this.isDesignMode)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runItemsCondition=function(e,t){var r=e.item;this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=null),r?e.item=r:delete e.item,n&&(this.filteredChoicesValue&&this.clearIncorrectValues(),this.onVisibleChoicesChanged()),n},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.a(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];for(var r=this.activeChoices,n=!1,o=0;o<r.length;o++){var i=r[o];e.item=i.value;var a=this.getConditionRunnerByItem(i);if(a){var s=a.run(e,t);s&&this.filteredChoicesValue.push(i),s!=i.isVisible&&(n=!0,i.setIsVisible(s))}else this.filteredChoicesValue.push(i)}return n},t.prototype.getConditionRunnerByItem=function(e){var t=e.getConditionRunner();return t||this.conditionChoicesVisibleIfRunner},t.prototype.getHasOther=function(e){return e==this.otherItem.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.valueToDataCore(this.value)},enumerable:!0,configurable:!0}),t.prototype.createRestfull=function(){return new c.a},t.prototype.getComment=function(){return this.getStoreOthersAsComment()?e.prototype.getComment.call(this):this.commentValue},t.prototype.setComment=function(t){this.getStoreOthersAsComment()?e.prototype.setComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&this.setNewValueInData(this.cachedValue),this.isSettingComment=!1)},t.prototype.setNewValue=function(t){(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){return this.getStoreOthersAsComment()?e.prototype.valueFromData.call(this,t):(this.cachedValue=this.valueFromDataCore(t),this.cachedValue)},t.prototype.valueToData=function(t){return this.getStoreOthersAsComment()?e.prototype.valueToData.call(this,t):(this.cachedValue=t,this.valueToDataCore(t))},t.prototype.valueFromDataCore=function(e){return this.hasUnknownValue(e,!0)?(this.comment=e,this.otherItem.value):e},t.prototype.valueToDataCore=function(e){return e==this.otherItem.value&&this.getComment()&&(e=this.getComment()),e},t.prototype.hasUnknownValue=function(e,t){return void 0===t&&(t=!1),!!e&&((!t||e!=this.otherItem.value)&&null==a.a.getItemByValue(this.filteredChoices,e))},Object.defineProperty(t.prototype,"choices",{get:function(){return this.choicesValues},set:function(e){this.setPropertyValue("choices",e),this.filterItems()||this.onVisibleChoicesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment",!0)},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder","none")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText",u.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText",u.a.getString("otherRequiredError"))},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.hasOther||"none"!=this.choicesOrder?(this.visibleChoicesCache||(this.visibleChoicesCache=this.sortVisibleChoices(this.filteredChoices.slice()),this.hasOther&&this.visibleChoicesCache.push(this.otherItem)),this.visibleChoicesCache):this.filteredChoices},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e){return this.isEmpty()?"":this.getChoicesDisplayValue(this.visibleChoices,this.value)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:this.locOtherText.textOrHtml;var r=a.a.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},Object.defineProperty(t.prototype,"filteredChoices",{get:function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choicesFromUrl?this.choicesFromUrl:this.choices},enumerable:!0,configurable:!0}),t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasOther&&this.isOtherSelected&&!this.comment&&t.push(new l.a(this.otherErrorText))},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl()},t.prototype.getStoreOthersAsComment=function(){return this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.runChoicesByUrl(),this.onVisibleChoicesChanged()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl()},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&this.choicesByUrl.run(e)}},t.prototype.onLoadChoicesFromUrl=function(e){var t=this.errors.length;this.errors=[],this.choicesByUrl&&this.choicesByUrl.error&&this.errors.push(this.choicesByUrl.error),(t>0||this.errors.length>0)&&this.fireCallback(this.errorsChangedCallback);var r=null,n=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,n=!1),this.isFirstLoadChoicesFromUrl=!1;var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,n);if(e&&e.length>0&&(r=new Array,a.a.setData(r,e)),this.choicesFromUrl=r,this.onVisibleChoicesChanged(),r){var i=this.updateCachedValueForUrlRequests(o);i&&(this.value=i.value)}},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(this.createCachedValueForUrlRequests(e[n],!0));return r}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var t=[],r=0;r<e.length;r++){var n=this.updateCachedValueForUrlRequests(e[r]);n&&!this.isValueEmpty(n.value)&&t.push(n.value)}return{value:t}}return{value:e.isExists&&this.hasUnknownValue(e.value)?null:e.value}},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.visibleChoicesCache=null,this.fireCallback(this.choicesChangedCallback))},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort(function(e,r){return e.text<r.text?-1*t:e.text>r.text?1*t:0})},t.prototype.randomizeArray=function(e){return s.a.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){var e=this.value;this.hasUnknownValue(e,!0)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment=null)},t}(i.a),d=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.colCountValue=1,r}return n.b(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.colCountValue},set:function(e){e<0||e>5||(this.colCountValue=e,this.fireCallback(this.colCountChangedCallback))},enumerable:!0,configurable:!0}),t}(h);o.b.metaData.addClass("selectbase",["hasComment:boolean","hasOther:boolean",{name:"choices:itemvalues",onGetValue:function(e){return a.a.getData(e.choices)},onSetValue:function(e,t){e.choices=t}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"]},{name:"choicesByUrl:restfull",className:"ChoicesRestfull",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"choicesVisibleIf:condition",{name:"otherText",serializationProperty:"locOtherText"},{name:"otherErrorText",serializationProperty:"locOtherErrorText"},{name:"storeOthersAsComment:boolean",default:!0}],null,"question"),o.b.metaData.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5]}],null,"selectbase")},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(23)),a=r(19),s=r(1),u=r(4),l=r(3);r.d(t,"a",function(){return c}),r.d(t,"c",function(){return h}),r.d(t,"b",function(){return d});var c=function(e){function t(t){var r=e.call(this,t)||this;r.panel=t,r.koVisible=o.observable(r.visible),r.koElements=o.observableArray();var n=r;return r.koGetType=function(e){return n.getElementType(e)},r.koElementAfterRender=function(e,t){return n.elementAfterRender(e,t)},r}return n.b(t,e),t.prototype.addElement=function(t){e.prototype.addElement.call(this,t),this.koElements(this.elements)},t.prototype.onVisibleChanged=function(){this.koVisible(this.visible),e.prototype.onVisibleChanged.call(this)},t.prototype.getElementType=function(e){return e.isPanel?"survey-panel":"survey-question"},t.prototype.koAfterRender=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];"#text"==n.nodeName&&(n.data="")}},t.prototype.elementAfterRender=function(e,t){if(this.panel&&this.panel.survey){var r=u.c.GetFirstNonTextElement(e);if(r){t.isPanel?this.panel.survey.afterRenderPanel(t,r):this.panel.survey.afterRenderQuestion(t,r)}}},t}(a.c),p=function(){function e(e){this.panel=e;var t=this;this.koRows=o.observableArray(),this.panel.rowsChangedCallback=function(){t.koRows(t.panel.rows)},this.panel.koRows=this.koRows}return e}(),h=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;new p(r),r.onCreating();var n=r;return r.koElementType=o.observable("survey-panel"),r.koVisible=o.observable(r.isVisible),r.koRenderWidth=o.observable(r.renderWidth),r.koErrors=o.observable(r.errors),r.koCss=o.pureComputed(function(){return n.cssClasses}),r.koIsCollapsed=o.observable(r.isCollapsed),r.koIsExpanded=o.observable(r.isExpanded),r.stateChangedCallback=function(){n.onStateChanged()},r.errorsChangedCallback=function(){n.koErrors(n.errors)},r.doExpand=function(){n.changeExpanded()},r.registerFunctionOnPropertiesValueChanged(["renderWidth","innerIndent","rightIndent"],function(){n.onRenderWidthChanged()}),r.koInnerMargin=o.observable(r.getIndentSize(r.innerIndent)),r}return n.b(t,e),t.prototype.createRow=function(){var e=new c(this);return e.visibilityChangedCallback=this.childVisibilityChangeHandler,e},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t.prototype.onRenderWidthChanged=function(){this.koRenderWidth(this.renderWidth),this.koInnerMargin(this.getIndentSize(this.innerIndent))},t.prototype.onStateChanged=function(){this.koIsCollapsed(this.isCollapsed),this.koIsExpanded(this.isExpanded)},t.prototype.changeExpanded=function(){(this.isCollapsed||this.isExpanded)&&(this.isCollapsed?this.expand():this.collapse())},t.prototype.getTitleStyle=function(){var e=this.cssClasses.panel.title;return(this.koIsCollapsed()||this.koIsExpanded())&&(e+=" sv_p_title_expandable"),e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.koVisible(this.isVisible),this.onStateChanged()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.koVisible(this.isVisible)},t.prototype.getIndentSize=function(e){if(e<1)return"";if(!this.data)return"";var t=this.survey.css;return t?e*t.question.indent+"px":""},t}(a.b),d=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return new p(r),r.onCreating(),r}return n.b(t,e),t.prototype.createRow=function(){return new c(this)},t.prototype.createNewPanel=function(e){return new h(e)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t}(i.a);s.b.metaData.overrideClassCreatore("panel",function(){return new h}),s.b.metaData.overrideClassCreatore("page",function(){return new d}),l.b.Instance.registerElement("panel",function(e){return new h(e)})},function(e,t,r){"use strict";var n=r(6);r.n(n);r.d(t,"a",function(){return o});var o=function(){function e(e){this.question=e;var t=this;e.registerFunctionOnPropertyValueChanged("isVisible",function(){t.onVisibilityChanged()}),e.registerFunctionOnPropertiesValueChanged(["renderWidth","indent","rightIndent"],function(){t.onRenderWidthChanged()}),e.surveyLoadCallback=function(){t.onSurveyLoad()},this.koTemplateName=n.pureComputed(function(){return t.getTemplateName()}),this.koElementType=n.observable("survey-question"),this.koVisible=n.observable(this.question.isVisible),this.koRenderWidth=n.observable(this.question.renderWidth),this.koErrors=n.observableArray(),this.koPaddingLeft=n.observable(t.getIndentSize(t.question.indent)),this.koPaddingRight=n.observable(t.getIndentSize(t.question.rightIndent)),this.question.koElementType=this.koElementType,this.question.koTemplateName=this.koTemplateName,this.question.koVisible=this.koVisible,this.question.koRenderWidth=this.koRenderWidth,this.question.koErrors=this.koErrors,this.question.koPaddingLeft=this.koPaddingLeft,this.question.koPaddingRight=this.koPaddingRight,this.question.updateQuestion=function(){t.updateQuestion()},this.question.koCss=n.pureComputed(function(){return t.question.cssClasses}),this.question.koRootClass=n.pureComputed(function(){var e=t.question.cssClasses.mainRoot;return"left"===t.question.survey.questionTitleLocation&&(e+=" sv_qstn_left"),t.koErrors().length>0&&(e+=" "+t.question.cssClasses.hasError),e})}return e.prototype.updateQuestion=function(){},e.prototype.onSurveyLoad=function(){this.onVisibilityChanged()},e.prototype.onVisibilityChanged=function(){this.koVisible(this.question.isVisible)},e.prototype.onRenderWidthChanged=function(){this.koRenderWidth(this.question.renderWidth),this.koPaddingLeft(this.getIndentSize(this.question.indent)),this.koPaddingRight(this.getIndentSize(this.question.rightIndent))},e.prototype.getQuestionTemplate=function(){return this.question.getTemplate()},e.prototype.getIndentSize=function(e){return e<1?"":e*this.question.cssClasses.indent+"px"},e.prototype.getTemplateName=function(){return this.question.customWidget&&!this.question.customWidget.widgetJson.isDefaultRender?"survey-widget-"+this.question.customWidget.name:"survey-question-"+this.getQuestionTemplate()},e}()},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(5),a=r(4),s=r(19);r.d(t,"a",function(){return u});var u=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;r.name=t,r.hasShownValue=!1;var n=r;return r.locTitle.onGetTextCallback=function(e){return n.getRenderedTitle(e)},r}return n.b(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(t){return!this.isStarted&&e.prototype.getIsPageVisible.call(this,t)},Object.defineProperty(t.prototype,"num",{get:function(){return this.getPropertyValue("num",-1)},set:function(e){this.num!=e&&(this.setPropertyValue("num",e),this.onNumChanged(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility","inherit")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getRenderedTitle=function(t){return t=e.prototype.getRenderedTitle.call(this,t),this.num>0&&(t=this.num+". "+t),t},Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!0,configurable:!0}),t.prototype.setWasShown=function(e){this.isDesignMode||e!=this.hasShownValue&&(1==e&&this.areQuestionsRandomized&&this.randomizeElements(),this.hasShownValue=e)},t.prototype.randomizeElements=function(){for(var e=[],t=0;t<this.elements.length;t++)e.push(this.elements[t]);var r=i.a.randomizeArray(e);this.elements.splice(0,this.elements.length);for(var t=0;t<r.length;t++)this.elements.push(r[t])},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder","default")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){for(var e=0;e<this.questions.length;e++){var t=this.questions[e];if(t.visible&&t.hasInput){this.questions[e].focus();break}}},t.prototype.focusFirstErrorQuestion=function(){for(var e=0;e<this.questions.length;e++)if(this.questions[e].visible&&0!=this.questions[e].currentErrorCount){this.questions[e].focus(!0);break}},t.prototype.scrollToTop=function(){a.c.ScrollElementToTop(this.id)},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.getPropertyValue("timeSpent",0)},set:function(e){this.setPropertyValue("timeSpent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.visible)},t}(s.a);o.b.metaData.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"maxTimeToFinish:number",default:0}],function(){return new u},"panelbase")},function(e,t,r){"use strict";var n=r(4);r.d(t,"b",function(){return o}),r.d(t,"a",function(){return i});var o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){this.widgetJson.afterRender&&this.widgetJson.afterRender(e,t)},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e){return this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e):null},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!0,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new n.b}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!0,configurable:!0}),e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var r=e.name;r||(r="widget_"+this.widgets.length+1);var n=new o(r,e);this.widgetsValues.push(n),this.widgetsActivatedBy[r]=t,n.activatedByChanged(t),this.onCustomWidgetAdded.fire(n,null)},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var r=this.getCustomWidgetByName(e);r&&(this.widgetsActivatedBy[e]=t,r.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(3),a=r(20),s=r(2);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("optionsCaption",r),r}return n.b(t,e),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",s.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"dropdown"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t}(a.b);o.b.metaData.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"}],function(){return new u("")},"selectbase"),i.a.Instance.registerQuestion("dropdown",function(e){var t=new u(e);return t.choices=i.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),o=r(3),i=r(1),a=r(8),s=r(5);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("placeHolder",r),r}return n.b(t,e),t.prototype.getType=function(){return"text"},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType","text")},set:function(e){e=e.toLowerCase(),"datetime_local"==e&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength",-1)},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size",25)},set:function(e){this.setPropertyValue("size",e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return e&&("number"==this.inputType||"range"==this.inputType)?this.isNumber(e)?parseFloat(e):"":e},t.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t}(a.a);i.b.metaData.addClass("text",[{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"size:number",default:25},{name:"maxLength:number",default:-1},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new u("")},"question"),o.a.Instance.registerQuestion("text",function(e){return new u(e)})},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(1),a=r(10),s=r(12),u=r(24);r.d(t,"a",function(){return l});var l=function(e){function t(r){var n=e.call(this,r)||this;return n.name=r,n.conditionRunner=null,n.isCustomWidgetRequested=!1,n.customWidgetData={isNeedRender:!0},n.locOwner=null,n.id=t.getQuestionId(),n.onCreating(),n}return n.b(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.getType=function(){return"questionbase"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.isDesignMode&&this.onVisibleChanged(),this.data&&!this.isLoadingFromJson&&(this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){return this.data?this.data.getFilteredProperties():null},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!0,configurable:!0}),t.prototype.isAnswerCorrect=function(){return!1},t.prototype.getValueName=function(){return this.name},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.survey&&this.survey.questionVisibilityChanged(this,this.visible))},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[],this.fireCallback(this.errorsChangedCallback))},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible||this.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e){return void 0===e&&(e=!0),!1},t.prototype.isEmpty=function(){return!0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescription",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return[]},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=u.a.Instance.getCustomWidget(this)},Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e=this.css,t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),t},enumerable:!0,configurable:!0}),t.prototype.getRootCss=function(e){return e.question.root},t.prototype.updateCssClasses=function(e,t){var r=t[this.getType()];if(void 0!==r&&null!==r)if("string"==typeof r||r instanceof String)e.root=r;else for(var n in r)e[n]=r[n]},Object.defineProperty(t.prototype,"css",{get:function(){return s.b.getCss()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),t.prototype.focus=function(e){void 0===e&&(e=!1)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.runCondition=function(e,t){this.isDesignMode||this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new a.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.visible=this.conditionRunner.run(e,t))},t.prototype.onSurveyValueChanged=function(e){},t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback)},t.prototype.setVisibleIndex=function(e){return this.isVisible&&this.hasTitle||(e=-1),this.setPropertyValue("visibleIndex",e),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionNames=function(e){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t.prototype.clearIncorrectValues=function(){},t.prototype.clearUnusedValues=function(){},t.prototype.getDisplayValue=function(e){return""},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.getDisplayValue(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return null},set:function(e){},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){},t.prototype.clearValueIfInvisible=function(){},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this)},t.prototype.onReadOnlyChanged=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getMarkdownHtml(e):this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,!0):this.locOwner?this.locOwner.getProcessedText(e):e},t.questionCounter=100,t}(o.c);i.b.metaData.addClass("questionbase",["!name",{name:"visible:boolean",default:!0},"visibleIf:condition",{name:"width"},{name:"startWithNewLine:boolean",default:!0},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,choices:function(e){var t=e?e.survey:null;return t?t.pages:[]}}])},function(e,t,r){"use strict";var n=r(0),o=r(5),i=r(1),a=r(4),s=r(23),u=r(17),l=r(14),c=r(36),p=r(2),h=r(9),d=r(53),f=r(55);r.d(t,"a",function(){return g});var g=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;r.currentPageValue=null,r.valuesHash={},r.variablesHash={},r.localeValue="",r.isCompleted=!1,r.isStartedState=!1,r.isCompletedBefore=!1,r.isLoading=!1,r.completedStateValue="",r.completedStateTextValue="",r.isTimerStarted=!1,r.onComplete=new a.b,r.onStarted=new a.b,r.onPartialSend=new a.b,r.onCurrentPageChanging=new a.b,r.onCurrentPageChanged=new a.b,r.onValueChanged=new a.b,r.onVisibleChanged=new a.b,r.onPageVisibleChanged=new a.b,r.onPanelVisibleChanged=new a.b,r.onQuestionAdded=new a.b,r.onQuestionRemoved=new a.b,r.onPanelAdded=new a.b,r.onPanelRemoved=new a.b,r.onPageAdded=new a.b,r.onValidateQuestion=new a.b,r.onValidatePanel=new a.b,r.onProcessHtml=new a.b,r.onGetQuestionTitle=new a.b,r.onTextMarkdown=new a.b,r.onSendResult=new a.b,r.onGetResult=new a.b,r.onUploadFiles=new a.b,r.onDownloadFile=new a.b,r.onLoadChoicesFromServer=new a.b,r.onUpdateQuestionCssClasses=new a.b,r.onUpdatePanelCssClasses=new a.b,r.onAfterRenderSurvey=new a.b,r.onAfterRenderPage=new a.b,r.onAfterRenderQuestion=new a.b,r.onAfterRenderPanel=new a.b,r.onMatrixRowAdded=new a.b,r.onMatrixRowRemoved=new a.b,r.onMatrixCellCreated=new a.b,r.onMatrixAfterCellRender=new a.b,r.onMatrixCellValueChanged=new a.b,r.onMatrixCellValidate=new a.b,r.onDynamicPanelAdded=new a.b,r.onDynamicPanelRemoved=new a.b,r.onTimer=new a.b,r.onTimerPanelInfoText=new a.b,r.onDynamicPanelItemValueChanged=new a.b,r.onIsAnswerCorrect=new a.b,r.jsonErrors=null,r.origionalPages=null,r.timerFunc=null;var n=r;return r.createLocalizableString("title",r,!0),r.createLocalizableString("completedHtml",r),r.createLocalizableString("completedBeforeHtml",r),r.createLocalizableString("loadingHtml",r),r.createLocalizableString("startSurvey",r),r.createLocalizableString("pagePrev",r),r.createLocalizableString("pageNext",r),r.createLocalizableString("complete",r),r.createLocalizableString("questionTitleTemplate",r,!0),r.textPreProcessor=new u.a,r.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)},r.pagesValue=r.createNewArray("pages",function(e){n.doOnPageAdded(e)}),r.triggersValue=r.createNewArray("triggers",function(e){e.setOwner(n)}),r.registerFunctionOnPropertyValueChanged("firstPageIsStarted",function(){n.onFirstPageIsStartedChanged()}),r.registerFunctionOnPropertyValueChanged("isSinglePage",function(){n.onIsSinglePageChanged()}),r.onBeforeCreating(),t&&(("string"==typeof t||t instanceof String)&&(t=JSON.parse(t)),t&&t.clientId&&(r.clientId=t.clientId),r.setJsonObject(t),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),r}return n.b(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return a.a.commentPrefix},set:function(e){a.a.commentPrefix=e},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"survey"},Object.defineProperty(t.prototype,"pages",{get:function(){return this.pagesValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggers",{get:function(){return this.triggersValue},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic",!0)},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons",!0)},set:function(e){this.setPropertyValue("showNavigationButtons",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton",!0)},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle",!0)},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles",!0)},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage",!0)},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment",!0)},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength",0)},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength",0)},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic",!1)},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode","onNextPage")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues","onComplete")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!0,configurable:!0}),t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].clearIncorrectValues()},Object.defineProperty(t.prototype,"locale",{get:function(){return this.localeValue},set:function(e){this.localeValue=e,this.setPropertyValue("locale",e),p.a.currentLocale=e,this.locStrsChanged()},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.currentPage&&this.currentPage.locStrsChanged()},t.prototype.getMarkdownHtml=function(e){var t={text:e,html:null};return this.onTextMarkdown.fire(this,t),t.html},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return p.a.getString(e)},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocString("emptySurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurvey",this.getLocString("startSurveyText"))},set:function(e){this.setLocalizableStringText("startSurvey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrev",this.getLocString("pagePrevText"))},set:function(e){this.setLocalizableStringText("pagePrev",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrev")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNext",this.getLocString("pageNextText"))},set:function(e){this.setLocalizableStringText("pageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNext")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("complete",this.getLocString("completeText"))},set:function(e){this.setLocalizableStringText("complete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("complete")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleTemplate=function(){return this.locQuestionTitleTemplate.textOrHtml},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!0,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var r={question:e,title:t};return this.onGetQuestionTitle.fire(this,r),r.title},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers",!1)},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers","on")},set:function(e){e=e.toLowerCase(),(e="onpage"===e?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar","off")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation","top")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation","top")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode","edit")},set:function(e){if((e=e.toLowerCase())!=this.mode&&("edit"==e||"display"==e)){this.setPropertyValue("mode",e);for(var t=0;t<this.pages.length;t++)this.pages[t].onReadOnlyChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){var e={};for(var t in this.valuesHash)e[t]=this.valuesHash[t];return e},set:function(e){if(this.valuesHash={},e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]),this.checkTriggers(t,e[t],!1);this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];for(var t in this.valuesHash)e[t]=this.valuesHash[t];return e},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.setDataValueCore=function(e,t,r){e[t]=r},t.prototype.deleteDataValueCore=function(e,t){delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){var e={};for(var t in this.valuesHash)t.indexOf(this.commentPrefix)>0&&(e[t]=this.valuesHash[t]);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.pages[t].isVisible&&e.push(this.pages[t]);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){return this.firstPageIsStarted&&this.pages.length>0?this.pages[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){var e=this.visiblePages;return null!=this.currentPageValue&&e.indexOf(this.currentPageValue)<0&&(this.currentPage=null),null==this.currentPageValue&&e.length>0&&(this.currentPage=e[0]),this.currentPageValue},set:function(e){var t=this.getPageByObject(e);if(!e||t){var r=this.visiblePages;if(!(null!=t&&r.indexOf(t)<0)&&t!=this.currentPageValue){var n=this.currentPageValue;this.currentPageChanging(t,n),this.currentPageValue=t,t&&(t.updateCustomWidgets(),t.setWasShown(!0)),this.currentPageChanged(t,n)}}},enumerable:!0,configurable:!0}),t.prototype.getPageByObject=function(e){if(!e)return null;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[e])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder","initial")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){var e=this.currentPage;e&&(e.scrollToTop(),e.focusFirstQuestion())},t.prototype.scrollToTopOnPageChange=function(){var e=this.currentPage;e&&(e.scrollToTop(),this.focusFirstQuestionAutomatic&&e.focusFirstQuestion())},Object.defineProperty(t.prototype,"state",{get:function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.currentPage?"running":"empty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.completedStateValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.completedStateTextValue},enumerable:!0,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.completedStateValue=e,t||("saving"==e&&(t=this.getLocString("savingData")),"error"==e&&(t=this.getLocString("savingDataError")),"success"==e&&(t=this.getLocString("savingDataSuccess"))),this.completedStateTextValue=t},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),e&&(this.data=null,this.variablesHash={}),this.timeSpent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1);this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.isStartedState=this.firstPageIsStarted,t&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0])},t.prototype.mergeValues=function(e,t){if(t&&e)for(var r in e){var n=e[r];n&&"object"==typeof n?(t[r]||(t[r]={}),this.mergeValues(n,t[r])):t[r]=n}},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){this.onCurrentPageChanging.fire(this,{oldCurrentPage:t,newCurrentPage:e})},t.prototype.currentPageChanged=function(e,t){this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e})},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;var e=this.visiblePages.indexOf(this.currentPage)+1;return Math.ceil(100*e/this.visiblePageCount)},Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return!1;var e=this.currentPage;return!!e&&("show"==e.navigationButtonsVisibility||"hide"!=e.navigationButtonsVisibility&&this.showNavigationButtons)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this.getPropertyValue("isDesignMode",!1)},enumerable:!0,configurable:!0}),t.prototype.setDesignMode=function(e){this.setPropertyValue("isDesignMode",e),this.onIsSinglePageChanged()},Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!0,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&((!this.isEditMode||!this.isCurrentPageHasErrors)&&(!this.doServerValidation()&&(this.doNextPage(),!0)))},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return null==this.currentPage||this.currentPage.hasErrors(!0,!0)},enumerable:!0,configurable:!0}),t.prototype.prevPage=function(){if(this.isFirstPage)return!1;var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t-1]},t.prototype.completeLastPage=function(){return(!this.isEditMode||!this.isCurrentPageHasErrors)&&(!this.doServerValidation()&&(this.doComplete(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.getPropertyValue("isSinglePage",!1)},set:function(e){this.setPropertyValue("isSinglePage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!0,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>0&&this.pages[0]===e},t.prototype.onFirstPageIsStartedChanged=function(){0!=this.pages.length&&(this.isStartedState=this.firstPageIsStarted,this.pageVisibilityChanged(this.pages[0],!this.firstPageIsStarted))},t.prototype.onIsSinglePageChanged=function(){if(!this.isSinglePage||this.isDesignMode){if(this.origionalPages){this.pages.splice(0,this.pages.length);for(var e=0;e<this.origionalPages.length;e++)this.pages.push(this.origionalPages[e])}this.origionalPages=null}else{this.origionalPages=this.pages.slice(0,this.pages.length);var t=this.firstPageIsStarted?1:0,r=this.createSinglePage(t),n=this.pages.length-t;this.pages.splice(t,n,r)}this.updateVisibleIndexes()},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var r=e;r<this.pages.length;r++){var n=this.pages[r],o=i.b.metaData.createClass("panel"),a=(new i.b).toJsonObject(n);(new i.b).toObject(a,o),t.addPanel(o)}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return null==this.currentPage||0==this.visiblePages.indexOf(this.currentPage)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){if(this.isFirstPage||!this.showPrevButton)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){if(null==this.currentPage)return!0;var e=this.visiblePages;return e.indexOf(this.currentPage)==e.length-1},enumerable:!0,configurable:!0}),t.prototype.doComplete=function(){var e=this.hasCookie;this.stopTimer(),this.clearUnusedValues(),this.setCookie(),this.setCompleted();var t=this,r={showDataSaving:function(e){t.setCompletedState("saving",e)},showDataSavingError:function(e){t.setCompletedState("error",e)},showDataSavingSuccess:function(e){t.setCompletedState("success",e)},showDataSavingClear:function(e){t.setCompletedState("","")}};this.onComplete.fire(this,r),!e&&this.surveyPostId&&this.sendResult()},t.prototype.start=function(){this.firstPageIsStarted&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!0,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(){if(!this.onServerValidateQuestions)return!1;for(var e=this,t={data:{},errors:{},survey:this,complete:function(){e.completeServerValidation(t)}},r=0;r<this.currentPage.questions.length;r++){var n=this.currentPage.questions[r];if(n.visible){var o=this.getValue(n.getValueName());this.isValueEmpty(o)||(t.data[n.getValueName()]=o)}}return this.setIsValidatingOnServer(!0),this.onServerValidateQuestions(this,t),!0},t.prototype.completeServerValidation=function(e){if(this.setIsValidatingOnServer(!1),e||e.survey){var t=e.survey,r=!1;if(e.errors)for(var n in e.errors){var o=t.getQuestionByName(n);o&&o.errors&&(r=!0,o.addError(new h.a(e.errors[n])))}r||(t.isLastPage?t.doComplete():t.doNextPage())}},t.prototype.doNextPage=function(){if(this.checkOnPageTriggers(),this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),!this.isCompleted){var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t+1]}},t.prototype.setCompleted=function(){this.isCompleted=!0},Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){return this.completedHtml?this.processHtml(this.completedHtml):"<h3>"+this.getLocString("completingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.completedBeforeHtml?this.processHtml(this.completedBeforeHtml):"<h3>"+this.getLocString("completingSurveyBefore")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.loadingHtml?this.processHtml(this.loadingHtml):"<h3>"+this.getLocString("loadingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){if(null==this.currentPage)return"";var e=this.visiblePages,t=e.indexOf(this.currentPage)+1;return this.getLocString("progressText").format(t,e.length)},enumerable:!0,configurable:!0}),t.prototype.afterRenderSurvey=function(e){this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.afterRenderPage=function(e){this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.currentPage,htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.matrixRowAdded=function(e){this.onMatrixRowAdded.fire(this,{question:e})},t.prototype.matrixRowRemoved=function(e,t,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:r})},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.a(t.error):null},t.prototype.dynamicPanelAdded=function(e){this.onDynamicPanelAdded.fire(this,{question:e})},t.prototype.dynamicPanelRemoved=function(e,t){this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t})},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.uploadFiles=function(e,t,r){this.onUploadFiles.isEmpty?r("error",t):this.onUploadFiles.fire(this,{name:e,files:t||[],callback:r}),this.surveyPostId&&this.uploadFilesCore(e,t,r)},t.prototype.downloadFile=function(e,t,r){this.onDownloadFile.isEmpty&&!!r&&r("success",t),this.onDownloadFile.fire(this,{name:name,content:t,callback:r})},t.prototype.updateChoicesFromServer=function(e,t,r){var n={question:e,choices:t,serverResult:r};return this.onLoadChoicesFromServer.fire(this,n),n.choices},t.prototype.createSurveyService=function(){return new c.a},t.prototype.uploadFilesCore=function(e,t,r){var n=this,o=[];t.forEach(function(e){r&&r("uploading",e),n.createSurveyService().sendFile(n.surveyPostId,e,function(n,i){n?(o.push({content:i,file:e}),o.length===t.length&&r&&r("success",o)):r&&r("error",{response:i,file:e})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e){null!=e&&(this.pages.push(e),this.updateVisibleIndexes())},t.prototype.addNewPage=function(e){void 0===e&&(e=null);var t=this.createNewPage(e);return this.addPage(t),t},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPageValue==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null),this.updateVisibleIndexes())},t.prototype.getQuestionByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllQuestions();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var o=r[n].name;if(t&&(o=o.toLowerCase()),o==e)return r[n]}return null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var r=this.getAllQuestions();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var o=r[n].getValueName();if(t&&(o=o.toLowerCase()),o==e)return r[n]}return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var r=[];if(!e)return r;for(var n=0;n<e.length;n++)if(e[n]){var o=this.getQuestionByName(e[n],t);o&&r.push(o)}return r},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var r=0;r<e.length;r++)if(e[r]){var n=this.getPageByName(e[r]);n&&t.push(n)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addQuestionsToList(r,e,t);return r},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.firstPageIsStarted?1:0,r=t;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var n=this.pages[r].questions,o=0;o<n.length;o++){var i=n[o];i.isVisible&&i.hasInput&&e.push(i)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllPanels();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var o=r[n].name;if(t&&(o=o.toLowerCase()),o==e)return r[n]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addPanelsIntoList(r,e,t);return r},t.prototype.createNewPage=function(e){return new s.a(e)},t.prototype.notifyQuestionOnValueChanged=function(e,t){for(var r=this.getAllQuestions(),n=null,o=0;o<r.length;o++)r[o].getValueName()==e&&(n=r[o],"onValueChanged"==this.checkErrorsMode&&n.hasErrors(!0),this.doSurveyValueChanged(n,t),this.onValueChanged.fire(this,{name:e,question:n,value:t}));n||this.onValueChanged.fire(this,{name:e,question:null,value:t}),this.notifyElementsOnAnyValueOrVariableChanged(e)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.locStrsChanged()},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)this.doSurveyValueChanged(e[t],this.getValue(e[t].getValueName()))},t.prototype.doSurveyValueChanged=function(e,t){e.onSurveyValueChanged(t)},t.prototype.checkOnPageTriggers=function(){for(var e=this.getCurrentPageQuestions(),t=0;t<e.length;t++){var r=e[t],n=this.getValue(r.getValueName());this.checkTriggers(r.getValueName(),n,!0)}},t.prototype.getCurrentPageQuestions=function(){var e=[],t=this.currentPage;if(!t)return e;for(var r=0;r<t.questions.length;r++){var n=t.questions[r];n.visible&&n.name&&e.push(n)}return e},t.prototype.checkTriggers=function(e,t,r){for(var n=new l.a,o=0;o<this.triggers.length;o++){var i=this.triggers[o],a=n.getFirstName(i.name);if(a==e&&i.isOnNextPage==r){var s={};s[a]=t,i.check(n.getValue(i.name,s))}}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},t.prototype.runConditions=function(){for(var e=this.pages,t=this.getFilteredValues(),r=this.getFilteredProperties(),n=0;n<e.length;n++)e[n].runCondition(t,r)},t.prototype.sendResult=function(e,t,r){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=!1),this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!r||this.clientId))){var n=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,function(e,t){n.surveyShowDataSaving&&(e?n.setCompletedState("success",""):n.setCompletedState("error","")),n.onSendResult.fire(n,{success:e,response:t})},this.clientId,r)}},t.prototype.getResult=function(e,t){var r=this;this.createSurveyService().getResult(e,t,function(e,t,n,o){r.onGetResult.fire(r,{success:e,data:t,dataList:n,response:o})})},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(e,t,n,o){r.isLoading=!1,e&&(r.isCompletedBefore="completed"==n,r.loadSurveyFromServiceJson(t))}):this.createSurveyService().loadSurvey(this.surveyId,function(e,t,n){r.isLoading=!1,e&&r.loadSurveyFromServiceJson(t)})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.setJsonObject(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService())},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.checkPageVisibility=function(e,t){var r=this.getPageByQuestion(e);if(r){var n=r.isVisible;(n!=r.getIsPageVisible(e)||t)&&this.pageVisibilityChanged(r,n)}},t.prototype.updateVisibleIndexes=function(){if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else for(var r="on"==this.showQuestionNumbers?0:-1,t=0;t<this.pages.length;t++)r+=this.pages[t].setVisibleIndex(r)},t.prototype.updatePageVisibleIndexes=function(e){for(var t=0,r=0;r<this.pages.length;r++)this.pages[r].visibleIndex=this.pages[r].visible?t++:-1,this.pages[r].num=e&&this.pages[r].visible?this.pages[r].visibleIndex+1:-1},t.prototype.setJsonObject=function(e){if(e){this.jsonErrors=null;var t=new i.b;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors)}},t.prototype.endLoadingFromJson=function(){this.isStartedState=this.firstPageIsStarted,this.onIsSinglePageChanged(),this.runConditions(),this.updateVisibleIndexes(),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad()},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){var t=e.name.toLocaleLowerCase();if("pageno"===t){e.isExists=!0;var r=this.currentPage;return void(e.value=null!=r?this.visiblePages.indexOf(r)+1:0)}if("pagecount"===t)return e.isExists=!0,void(e.value=this.visiblePageCount);if("correctedanswers"===t||"correctedanswercount"===t)return e.isExists=!0,void(e.value=this.getCorrectedAnswerCount());if("incorrectedanswers"===t||"incorrectedanswercount"===t)return e.isExists=!0,void(e.value=this.getInCorrectedAnswerCount());if("questioncount"===t)return e.isExists=!0,void(e.value=this.getQuizQuestions().length);var n=(new l.a).getFirstName(t),o=this.getVariable(t);if(void 0!==o)return e.isExists=!0,void(e.value=o);var i=this.getQuestionByValueName(n,!0);if(i){e.isExists=!0,t=i.getValueName()+t.substr(n.length),t=t.toLocaleLowerCase();var a={};return a[n]=e.returnDisplayValue?i.getDisplayValue(!1):i.value,void(e.value=(new l.a).getValue(t,a))}var s=this.getValue(e.name);void 0!==s&&(e.isExists=!0,e.value=s)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();"none"!=this.clearInvisibleValues&&this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){for(var t=this.getAllQuestions(),r=0;r<t.length;r++)if(t[r].getValueName()==e&&t[r].isVisible)return!0;return!1},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearValueIfInvisible()},t.prototype.getVariable=function(e){return e?(e=e.toLowerCase(),this.variablesHash[e]):null},t.prototype.setVariable=function(e,t){e&&(e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditions())},t.prototype.getUnbindValue=function(e){return o.a.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.valuesHash[e];return this.getUnbindValue(t)},t.prototype.setValue=function(e,t){this.isValueEqual(e,t)||(this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,e):(t=this.getUnbindValue(t),this.setDataValueCore(this.valuesHash,e,t)),this.notifyQuestionOnValueChanged(e,t),this.checkTriggers(e,t,!1),this.runConditions(),this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var r=this.getValue(e);return null===t||null===r?t===r:this.isTwoValueEquals(t,r)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page"));var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.generateNewName=function(e,t){for(var r={},n=0;n<e.length;n++)r[e[n].name]=!0;for(var o=1;r[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){if(this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(!t||t.visible&&t.supportGoNextPageAutomatic()){for(var r=this.getCurrentPageQuestions(),n=0;n<r.length;n++){var o=this.getValue(r[n].getValueName());if(r[n].hasInput&&this.isValueEmpty(o))return}this.currentPage.hasErrors(!0,!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.completeLastPage():this.nextPage())}}},t.prototype.getComment=function(e){var t=this.data[e+this.commentPrefix];return null==t&&(t=""),t},t.prototype.setComment=function(e,t){var r=e+this.commentPrefix;""===t||null===t?this.deleteDataValueCore(this.valuesHash,r):(this.setDataValueCore(this.valuesHash,r,t),this.tryGoNextPageAutomatic(e));var n=this.getQuestionByName(e);n&&this.onValueChanged.fire(this,{name:r,question:n,value:t})},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible:t}),this.checkPageVisibility(e,!t),e&&!e.visible&&"onHidden"==this.clearInvisibleValues&&e.clearValue()},t.prototype.pageVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t})},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),this.updateVisibleIndexes(),this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parentPanel:r,rootPanel:n})},t.prototype.questionRemoved=function(e){this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name})},t.prototype.panelAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parentPanel:r,rootPanel:n})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name})},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.a(t.error):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.a(t.error):null},t.prototype.processHtml=function(e){var t={html:e};return this.onProcessHtml.fire(this,t),this.processText(t.html,!0)},t.prototype.processText=function(e,t){return this.textPreProcessor.process(e,t)},t.prototype.processTextEx=function(e,t){var r={text:this.textPreProcessor.process(e,t),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},t.prototype.getCorrectedAnswerCount=function(){for(var e=this.getQuizQuestions(),t=0,r={question:null,result:!1},n=0;n<e.length;n++)r.question=e[n],r.result=r.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,r),r.result&&t++;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getQuizQuestions().length-this.getCorrectedAnswerCount()},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel","none")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.isTimerStarted&&"top"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.isTimerStarted&&"bottom"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode","all")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};return this.onTimerPanelInfoText.fire(this,e),e.text},enumerable:!0,configurable:!0}),t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),n=this.getPageMaxTimeToFinish(e),o=this.getDisplayTime(n),i=this.getDisplayTime(this.maxTimeToFinish);if("page"==this.showTimerPanelMode)return this.getTimerInfoPageText(e,t,o);if("survey"==this.showTimerPanelMode)return this.getTimerInfoSurveyText(r,i);if("all"==this.showTimerPanelMode){if(n<=0&&this.maxTimeToFinish<=0)return this.getLocString("timerSpentAll").format(t,r);if(n>0&&this.maxTimeToFinish>0)return this.getLocString("timerLimitAll").format(t,o,r,i);return this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(r,i)}return""},t.prototype.getTimerInfoPageText=function(e,t,r){return this.getPageMaxTimeToFinish(e)>0?this.getLocString("timerLimitPage").format(t,r):this.getLocString("timerSpentPage").format(t,r)},t.prototype.getTimerInfoSurveyText=function(e,t){return this.maxTimeToFinish>0?this.getLocString("timerLimitSurvey").format(e,t):this.getLocString("timerSpentSurvey").format(e,t)},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),r=e%60,n="";return t>0&&(n+=t+" "+this.getLocString("timerMin")),n&&0==r?n:(n&&(n+=" "),n+r+" "+this.getLocString("timerSec"))},t.prototype.startTimer=function(){if(!this.isTimerStarted&&!this.isDesignMode){var e=this;this.timerFunc=function(){e.doTimer()},this.isTimerStarted=!0,f.a.instance.start(this.timerFunc)}},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.isTimerStarted&&(this.isTimerStarted=!1,f.a.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.getPropertyValue("timeSpent",0)},set:function(e){this.setPropertyValue("timeSpent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!0,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(){var e=this.currentPage;if(e&&(e.timeSpent=e.timeSpent+1),this.timeSpent=this.timeSpent+1,this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(t)),r},t.prototype.setTriggerValue=function(e,t,r){e&&(r?this.setVariable(e,t):this.setValue(e,t))},t.stylesManager=new d.a,t.platform="unknown",t}(a.a);i.b.metaData.addClass("survey",[{name:"locale",choices:function(){return p.a.getLocales()}},{name:"title:text",serializationProperty:"locTitle"},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages",className:"page",visible:!1},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,onGetValue:function(e){return null},onSetValue:function(e,t,r){var n=e.addNewPage("");r.toObject({questions:t},n)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons:boolean",default:!0},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0},{name:"maxOthersLength:number",default:0},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged"]},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"requiredText",default:"*"},"questionStartIndex",{name:"questionTitleTemplate",serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1},{name:"maxTimeToFinish:number",default:0},{name:"maxTimeToFinishPage:number",default:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]}])},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(9),a=r(2),s=r(1),u=r(10);r.d(t,"h",function(){return l}),r.d(t,"f",function(){return c}),r.d(t,"a",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"g",function(){return d}),r.d(t,"b",function(){return f}),r.d(t,"e",function(){return g}),r.d(t,"c",function(){return m});var l=function(){function e(e,t){void 0===t&&(t=null),this.value=e,this.error=t}return e}(),c=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return n.b(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!0,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t){return void 0===t&&(t=null),null},t.prototype.validateAllValues=function(e,t,r,n){return void 0===n&&(n=null),null},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(o.a),p=function(){function e(){}return e.prototype.run=function(e){for(var t=0;t<e.validators.length;t++){var r=null,n=e.validators[t];if(null!=(r=n.isValidateAllValues?n.validateAllValues(e.validatedValue,e.getDataFilteredValues(),e.getDataFilteredProperties(),e.getValidatorTitle()):n.validate(e.validatedValue,e.getValidatorTitle()))){if(r.error)return r.error;r.value&&(e.validatedValue=r.value)}}return null},e}(),h=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minValue=t,n.maxValue=r,n}return n.b(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),!this.isNumber(e))return new l(null,new i.d);var r=new l(parseFloat(e));return null!==this.minValue&&this.minValue>r.value?(r.error=new i.a(this.getErrorText(t)),r):null!==this.maxValue&&this.maxValue<r.value?(r.error=new i.a(this.getErrorText(t)),r):"number"==typeof e?null:r},t.prototype.getDefaultErrorText=function(e){var t=e||a.a.getString("value");return null!==this.minValue&&null!==this.maxValue?a.a.getString("numericMinMax").format(t,this.minValue,this.maxValue):null!==this.minValue?a.a.getString("numericMin").format(t,this.minValue):a.a.getString("numericMax").format(t,this.maxValue)},t.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t}(c),d=function(e){function t(t,r,n){void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=!0);var o=e.call(this)||this;return o.minLength=t,o.maxLength=r,o.allowDigits=n,o}return n.b(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),!this.allowDigits){if(!/^[A-Za-z\s]*$/.test(e))return new l(null,new i.a(this.getErrorText(t)))}return this.minLength>0&&e.length<this.minLength?new l(null,new i.a(this.getErrorText(t))):this.maxLength>0&&e.length>this.maxLength?new l(null,new i.a(this.getErrorText(t))):null},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?a.a.getString("textMinMaxLength").format(this.minLength,this.maxLength):this.minLength>0?a.a.getString("textMinLength").format(this.minLength):a.a.getString("textMaxLength").format(this.maxLength)},t}(c),f=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minCount=t,n.maxCount=r,n}return n.b(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),null==e||e.constructor!=Array)return null;var r=e.length;return this.minCount&&r<this.minCount?new l(null,new i.a(this.getErrorText(a.a.getString("minSelectError").format(this.minCount)))):this.maxCount&&r>this.maxCount?new l(null,new i.a(this.getErrorText(a.a.getString("maxSelectError").format(this.maxCount)))):null},t.prototype.getDefaultErrorText=function(e){return e},t}(c),g=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.regex=t,r}return n.b(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),!this.regex||!e)return null;var r=new RegExp(this.regex);if(Array.isArray(e))for(var n=0;n<e.length;n++){var o=this.hasError(r,e[n],t);if(o)return o}return this.hasError(r,e,t)},t.prototype.hasError=function(e,t,r){return e.test(t)?null:new l(t,new i.a(this.getErrorText(r)))},t}(c),m=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,t}return n.b(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t){return void 0===t&&(t=null),e?this.re.test(e)?null:new l(e,new i.a(this.getErrorText(t))):null},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidEmail")},t}(c),y=function(e){function t(){var t=e.call(this)||this;return t.conditionRunner=null,t}return n.b(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.validateAllValues=function(e,t,r,n){return void 0===n&&(n=null),this.expression?(this.conditionRunner||(this.conditionRunner=new u.a(this.expression)),this.conditionRunner.expression=this.expression,this.conditionRunner.run(t,r)?null:new l(e,new i.a(this.getErrorText(n)))):null},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidExpression").format(this.expression)},t}(c);s.b.metaData.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.b.metaData.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new h},"surveyvalidator"),s.b.metaData.addClass("textvalidator",["minLength:number","maxLength:number","allowDigits:boolean"],function(){return new d},"surveyvalidator"),s.b.metaData.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new f},"surveyvalidator"),s.b.metaData.addClass("regexvalidator",["regex"],function(){return new g},"surveyvalidator"),s.b.metaData.addClass("emailvalidator",[],function(){return new m},"surveyvalidator"),s.b.metaData.addClass("expressionvalidator",["expression:condition"],function(){return new y},"surveyvalidator")},function(e,t){},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(4)),a=r(47),s=r(16),u=r(1),l=r(3),c=r(7);r.d(t,"b",function(){return p}),r.d(t,"a",function(){return h});var p=function(e){function t(t){var r=e.call(this,t)||this,n=r;r.koCellAfterRender=function(e,t){return n.cellAfterRender(e,t)},r.koRecalc=o.observable(0),r.koRows=o.pureComputed(function(){return this.koRecalc(),this.question.visibleRows},r);var n=r;return r.koAddRowClick=function(){n.addRow()},r.koRemoveRowClick=function(e){n.removeRow(e)},r.koIsAddRowOnTop=o.pureComputed(function(){return n.koRecalc(),n.isAddRowTop()}),r.koIsAddRowOnBottom=o.pureComputed(function(){return n.koRecalc(),n.isAddRowBottom()}),r.koCanRemoveRow=o.pureComputed(function(){return n.koRecalc(),n.canRemoveRow()}),r.koIsHorizontalColumnsLocation=o.observable(r.question.isColumnsLocationHorizontal),r.question.koRows=r.koRows,r.question.koCellAfterRender=r.koCellAfterRender,r.question.koAddRowClick=r.koAddRowClick,r.question.koRemoveRowClick=r.koRemoveRowClick,r.question.koIsAddRowOnTop=r.koIsAddRowOnTop,r.question.koIsAddRowOnBottom=r.koIsAddRowOnBottom,r.question.koCanRemoveRow=r.koCanRemoveRow,r.question.koIsHorizontalColumnsLocation=r.koIsHorizontalColumnsLocation,r.question.hasRowText=r.hasRowText(),r.question.columnsChangedCallback=function(){n.onColumnChanged()},r.question.updateCellsCallback=function(){n.onUpdateCells()},r.question.columnsLocationChangedCallback=function(){n.onColumnsLocationChanged()},r}return n.b(t,e),t.prototype.getQuestionTemplate=function(){return"matrixdynamic"},t.prototype.cellAfterRender=function(e,t){if(this.question.survey){var r=i.c.GetFirstNonTextElement(e);if(r){var n=t;n.question.customWidget&&n.question.customWidget.afterRender(n.question,r);var o={cell:n,cellQuestion:n.question,htmlElement:r,row:n.row,column:n.column};this.question.survey.matrixAfterCellRender(this.question,o)}}},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onColumnsLocationChanged()},t.prototype.hasRowText=function(){return!0},t.prototype.onColumnsLocationChanged=function(){this.koIsHorizontalColumnsLocation(this.question.isColumnsLocationHorizontal),this.koRecalc(this.koRecalc()+1)},t.prototype.isAddRowTop=function(){return!1},t.prototype.isAddRowBottom=function(){return!1},t.prototype.canRemoveRow=function(){return!1},t.prototype.onColumnChanged=function(){this.question.visibleRows;this.onRowCountChanged()},t.prototype.onRowCountChanged=function(){this.koRecalc(this.koRecalc()+1)},t.prototype.addRow=function(){},t.prototype.removeRow=function(e){},t.prototype.onUpdateCells=function(){},t}(c.a),h=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new p(r),r}return n.b(t,e),t}(a.a);u.b.metaData.overrideClassCreatore("matrixdropdown",function(){return new h("")}),l.a.Instance.registerQuestion("matrixdropdown",function(e){var t=new h(e);return t.choices=[1,2,3,4,5],t.rows=l.a.DefaultRows,s.a.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),o=r(26),i=r(1),a=r(3),s=r(7),u=r(5);r.d(t,"a",function(){return c});var l=function(e){function t(t){var r=e.call(this,t)||this;return r.question=t,r}return n.b(t,e),t.prototype.updateValue=function(t){e.prototype.updateValue.call(this,t),u.a.isTwoValueEquals(t,this.question.value)||this.koValue(this.question.value)},t}(s.a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new l(r),r}return n.b(t,e),t}(o.a);i.b.metaData.overrideClassCreatore("text",function(){return new c("")}),a.a.Instance.registerQuestion("text",function(e){return new c(e)})},function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return o});var n=r(103),o=function(){function e(){}return e.prototype.addText=function(e,t,r){t=this.getId(t,r),this.text=this.text+'<script type="text/html" '+t+">"+e+"<\/script>"},e.prototype.replaceText=function(e,t,r){void 0===r&&(r=null);var n=this.getId(t,r),o=this.text.indexOf(n);if(o<0)return void this.addText(e,t,r);if(!((o=this.text.indexOf(">",o))<0)){var i=o+1;o=this.text.indexOf("<\/script>",i),o<0||(this.text=this.text.substr(0,i)+e+this.text.substr(o))}},e.prototype.getId=function(e,t){var r='id="survey-'+e;return t&&(r+="-"+t),r+'"'},Object.defineProperty(e.prototype,"text",{get:function(){return n},set:function(e){n=e},enumerable:!0,configurable:!0}),e}()},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(11),a=r(1),s=r(2),u=r(9);r.d(t,"a",function(){return c});var l=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,r){Array.isArray(e[t])?e[t].push(r):void 0!==e[t]?e[t]=[e[t]].concat(r):"object"==typeof r&&1===Object.keys(r).length&&Object.keys(r)[0]===t?e[t]=r[t]:e[t]=r},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var r=0;r<e.children.length;r++){var n=e.children[r],o={};this.xml2Json(n,o),this.assignValue(t,n.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),r={};return this.xml2Json(t,r),r},e}(),c=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.error=null,t}return n.b(t,e),t.getCachedItemsResult=function(e){var r=e.objHash,n=t.itemsResult[r];return!!n&&(e.getResultCallback&&e.getResultCallback(n),!0)},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return void this.doEmptyResultCallback({});this.lastObjHash!=this.objHash&&(this.lastObjHash=this.objHash,this.useChangedItemsResults()||(this.error=null,this.sendRequest()))}},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!0,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){if(e){var t=e.processTextEx(this.url,!1),r=e.processTextEx(this.path,!1);t.hasAllValuesOnLastRun&&r.hasAllValuesOnLastRun?(this.processedUrl=t.text,this.processedPath=r.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=this.url,this.processedPath=this.path},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<")){var r=new l;t=r.parseXmlString(e)}else try{t=JSON.parse(e)}catch(r){t=(e||"").split("\n").map(function(e){return e.trim(" ")}).filter(function(e){return!!e})}return t},t.prototype.sendRequest=function(){this.isRunningValue=!0;var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var r=this;e.onload=function(){r.isRunningValue=!1,200===e.status?r.onLoad(r.parseResponse(e.response)):r.onError(e.statusText,e.responseText)};var n={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,n),n.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName)},enumerable:!0,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,r=0;r<e.length;r++)t.push(this.getCustomPropertyName(e[r].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=a.b.metaData.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&"visibleIf"!==e[r].name&&t.push(e[r]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)e[t[r]]&&(this[t[r]]=e[t[r]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)this[t[r]]&&(e[t[r]]=this[t[r]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=a.b.metaData.findProperty(this.owner.getType(),"choices");return e?"itemvalues"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.onLoad=function(e){var r=[],n=this.getResultAfterPath(e);if(n&&n.length)for(var o=0;o<n.length;o++){var a=n[o];if(a){var l=this.getValue(a),c=this.getTitle(a),p=new i.a(l,c);this.setCustomProperties(p,a),r.push(p)}}else this.error=new u.a(s.a.getString("urlGetChoicesError"));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),t.itemsResult[this.objHash]=r,this.getResultCallback(r)},t.prototype.setCustomProperties=function(e,t){for(var r=this.getCustomProperties(),n=0;n<r.length;n++){var o=r[n],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,t){this.error=new u.a(s.a.getString("urlRequestError").format(e,t)),this.doEmptyResultCallback(t)},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),r=0;r<t.length;r++)if(!(e=e[t[r]]))return null;return e},t.prototype.getPathes=function(){var e=[];return e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(","),0==e.length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.getTitle=function(e){var t=this.titleName?this.titleName:"title";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var r=t.split("."),n=0;n<r.length;n++)if(!(e=e[r[n]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName},enumerable:!0,configurable:!0}),t.itemsResult={},t}(o.a);a.b.metaData.addClass("choicesByUrl",["url","path","valueName","titleName"],function(){return new c})},function(e,t,r){"use strict";var n=r(10);r.d(t,"a",function(){return i});var o=function(){function e(e,t){this.at=e,this.code=t}return e}(),i=function(){function e(){this.ERROR_OperatorExpected="OPERATOR_EXPECTED",this.ERROR_RightPartExpected="RIGHTPART_EXPECTED",this.ERROR_ExpressionExpected="EXPRESSION_EXPECTED",this.ERROR_EndExpected="END_EXPECTED"}return e.prototype.parse=function(e,t){return this.setProperties(e,t),this.parseText()},e.prototype.createCondition=function(e){var t=new n.b;return this.parse(e,t)||(t=null),t},e.prototype.parseExpression=function(e){return this.setProperties(e,new n.b),this.readExpressionOperand()},Object.defineProperty(e.prototype,"error",{get:function(){return this.errorValue},enumerable:!0,configurable:!0}),e.prototype.createError=function(e){this.errorValue||(this.errorValue=new o(this.at,e))},e.prototype.setProperties=function(e,t){this.text=e,this.at=0,this.length=this.text.length,this.root=t,this.root.clear(),this.node=this.root,this.expressionNodes=[],this.expressionNodes.push(this.node),this.errorValue=null},e.prototype.toString=function(e){return e.toString()},e.prototype.parseText=function(){var e=this.readConditions();return this.at<this.length&&this.createError(this.ERROR_EndExpected),e&&this.at>=this.length},e.prototype.readConditions=function(){var e=this.readCondition();if(!e)return e;var t=this.readConnective();return!t||(this.addConnective(t),this.readConditions())},e.prototype.readCondition=function(){var e=this.readExpression();if(e<0)return!1;if(1==e)return!0;var t=this.readExpressionOperand();if(!t)return this.createError(this.ERROR_ExpressionExpected),!1;var r=this.readOperator();if(!r){if(t.isBoolean){var o=new n.c;return o.left=t,this.addCondition(o),!0}return this.createError(this.ERROR_OperatorExpected),!1}var o=new n.c;if(o.left=t,o.operator=r,!n.c.isNoRightOperation(r)){var i=this.readExpressionOperand();if(!i)return this.createError(this.ERROR_RightPartExpected),!1;o.right=i}return this.addCondition(o),!0},e.prototype.readOperand=function(){var e=this.readArray();if(e)return new n.d(e);var t=this.readString();if(!t)return null;var r=this.readParameters();if(r){var o=new n.e(t);return o.parameters=r,o}return new n.d(t)},e.prototype.readNotOperand=function(){this.skip();var e=this.at,t=this.readString();return!(!t||"not"!=t.toLowerCase()&&"!"!=t)||(this.at=e,!1)},e.prototype.readExpression=function(){var e=this.readNotOperand();if(this.at>=this.length||"("!=this.ch)return 0;this.at++,this.pushExpression();var t=this.readConditions();return t?(this.skip(),t=")"==this.ch,this.at++,this.popExpression(e),1):-1},e.prototype.readExpressionOperand=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=this.readNotOperand();if(this.at>=this.length)return null;var o=this.isOpenBracket(this.ch);o&&(this.at++,this.pushExpression());var i=this.readOperand();if(!i)return null;var a=this.readOperandOperator();if(!a){if(null!=e&&(e.right=i,i=e),this.isCloseBracket(this.ch)){e=t&&t.length>0?t.pop():null;var s=this.at;this.at++,a=this.readOperandOperator();var u=a||e&&e.isOpenBracket;a||(this.at=s+(u?1:0)),u&&this.popExpression(r)}if(a){var l=new n.f;return l.left=e||i,l.operator=a,this.readExpressionOperand(l,t)}return i}var l=new n.f;if(l.isOpenBracket=o,l.left=i,l.operator=a,t||(t=[]),(0==t.length||o)&&t.push(l),e){if(o||!this.isHighPriorityOperand(e.operator)&&this.isHighPriorityOperand(a))return e.right=this.readExpressionOperand(l,t),e;e.right=i,l.left=e;var c=t.indexOf(e);c>-1&&(t[c]=l)}return this.readExpressionOperand(l,t)},Object.defineProperty(e.prototype,"ch",{get:function(){return this.text.charAt(this.at)},enumerable:!0,configurable:!0}),e.prototype.skip=function(){for(;this.at<this.length&&this.isSpace(this.ch);)this.at++},e.prototype.isSpace=function(e){return" "==e||"\n"==e||"\t"==e||"\r"==e},e.prototype.isQuotes=function(e){return"'"==e||'"'==e},e.prototype.isComma=function(e){return","==e},e.prototype.isOperatorChar=function(e){return">"==e||"<"==e||"="==e||"!"==e||"+"==e||"-"==e||"*"==e||"/"==e||"%"==e},e.prototype.isOpenBracket=function(e){return"("==e},e.prototype.isCloseBracket=function(e){return")"==e},e.prototype.isBrackets=function(e){return this.isOpenBracket(e)||this.isCloseBracket(e)},e.prototype.readArray=function(){if(this.skip(),this.at>=this.length)return null;if("["!==this.ch)return null;this.at++;for(var e=[];this.at<this.length;){var t=this.readString();t&&e.push(t),this.skip();var r=this.ch;if(","==r&&this.at++,"]"==r){this.at++;break}}return e},e.prototype.readString=function(){if(this.skip(),this.at>=this.length)return null;var e=this.at,t=this.isQuotes(this.ch),r="{"==this.ch;t&&this.at++;for(var n=this.isOperatorChar(this.ch),o=!1;this.at<this.length;)if(r){var i="}"==this.ch;if(this.at++,i)break}else{if(!t&&this.isSpace(this.ch))break;if(this.isQuotes(this.ch)&&!o){t&&this.at++;break}if(!t){if("-"!=this.ch&&n!=this.isOperatorChar(this.ch))break;if(this.isBrackets(this.ch)||this.isComma(this.ch))break;if("]"===this.ch)break}o="\\"===this.ch,this.at++}if(this.at<=e)return null;var a=this.text.substr(e,this.at-e);if(a&&a.length>1&&this.isQuotes(a[0])){var s=a.length-1;this.isQuotes(a[a.length-1])&&s--,a=a.substr(1,s)}return a},e.prototype.readParameter=function(){for(var t=0,r=this.at;this.at<this.length&&(this.isOpenBracket(this.ch)&&t++,this.isCloseBracket(this.ch)&&t--,!(t<0))&&(0!==t||","!==this.ch);)this.at++;var o=this.text.substring(r,this.at);if(!o)return null;var i=new e,a=new n.b;return i.parse(o,a)?new n.g(a):i.parseExpression(o)},e.prototype.readParameters=function(){if(!this.isOpenBracket(this.ch))return null;for(var e=[];this.at<this.length&&!this.isCloseBracket(this.ch);){this.at++;var t=this.readParameter();t&&e.push(t)}return this.at++,e},e.prototype.isHighPriorityOperand=function(e){return"*"==e||"/"==e||"%"==e},e.prototype.readOperandOperator=function(){if(this.skip(),"+"==this.ch||"-"==this.ch||"*"==this.ch||"/"==this.ch||"%"==this.ch){var e=this.ch;return this.at++,e}return null},e.prototype.readOperator=function(){this.skip();var e=this.at,t=this.readString();return t?(t=t.toLowerCase(),">"==t&&(t="greater"),"<"==t&&(t="less"),">="!=t&&"=>"!=t||(t="greaterorequal"),"<="!=t&&"=<"!=t||(t="lessorequal"),"="!=t&&"=="!=t||(t="equal"),"<>"!=t&&"!="!=t||(t="notequal"),"equals"==t&&(t="equal"),"notequals"==t&&(t="notequals"),"contain"!=t&&"*="!=t||(t="contains"),"notcontain"==t&&(t="notcontains"),n.c.isCorrectOperator(t)?t:(this.at=e,null)):null},e.prototype.readConnective=function(){var e=this.readString();return e?(e=e.toLowerCase(),"&"!=e&&"&&"!=e||(e="and"),"|"!=e&&"||"!=e||(e="or"),"and"!=e&&"or"!=e&&(e=null),e):null},e.prototype.pushExpression=function(){var e=null;this.expressionNodes.push(e),this.node=e},e.prototype.makeNodeCondition=function(){this.node&&this.node.children||(this.node=new n.b,this.expressionNodes[this.expressionNodes.length-1]=this.node)},e.prototype.popExpression=function(e){var t=this.expressionNodes.pop();this.node=this.expressionNodes[this.expressionNodes.length-1],t&&(t.isNot=e,this.makeNodeCondition(),this.node.children.push(t))},e.prototype.addCondition=function(e){this.makeNodeCondition(),this.node.children.push(e)},e.prototype.addConnective=function(e){if(this.makeNodeCondition(),this.node.children.length<2)this.node.connective=e;else if(this.node.connective!=e){var t=this.node.connective,r=this.node.children;this.node.clear(),this.node.connective=e;var o=new n.b;o.connective=t,o.children=r,this.node.children.push(o);var i=new n.b;this.node.children.push(i),this.node=i}},e}()},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(){}return e.prototype.loadSurvey=function(t,r){var n=new XMLHttpRequest;n.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);r(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,r,n){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+r),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response),t=e?e.survey:null,r=e?e.isCompleted:null;n(200==o.status,t,r,o.response)},o.send()},e.prototype.sendResult=function(t,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=!1);var a=new XMLHttpRequest;a.open("POST",e.serviceUrl+"/post/"),a.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:t,surveyResult:JSON.stringify(r)};o&&(s.clientId=o),i&&(s.isPartialCompleted=!0);var u=JSON.stringify(s);a.onload=a.onerror=function(){n&&n(200==a.status,a.response)},a.send(u)},e.prototype.sendFile=function(t,r,n){var o=new XMLHttpRequest;o.onload=o.onerror=function(){n&&n(200==o.status,JSON.parse(o.response))},o.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",r),i.append("postId",t),o.send(i)},e.prototype.getResult=function(t,r,n){var o=new XMLHttpRequest,i="resultId="+t+"&name="+r;o.open("GET",e.serviceUrl+"/getResult?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");o.onload=function(){var e=null,t=null;if(200==o.status){e=JSON.parse(o.response),t=[];for(var r in e.QuestionResult){var i={name:r,value:e.QuestionResult[r]};t.push(i)}}n(200==o.status,e,t,o.response)},o.send()},e.prototype.isCompleted=function(t,r,n){var o=new XMLHttpRequest,i="resultId="+t+"&clientId="+r;o.open("GET",e.serviceUrl+"/isCompleted?"+i),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded");o.onload=function(){var e=null;200==o.status&&(e=JSON.parse(o.response)),n(200==o.status,e,o.response)},o.send()},e.serviceUrl="https://dxsurveyapi.azurewebsites.net/api/Survey",e}()},function(e,t,r){"use strict";function n(e){for(var t=0,r=0;r<e.length;r++)t+=e[r];return t}function o(e){for(var t=0,r=0;r<e.length;r++)t+=e[r];return e.length>0?t/e.length:0}function i(e){if(2!=e.length)return 0;var t=e[0];if(Array.isArray(t)){var r=e[1];if("string"!=typeof r&&!(r instanceof String))return 0;for(var n=0,o=0;o<t.length;o++){var i=t[o];i&&i[r]&&(n+=i[r])}return n}}function a(e){return e||3===e.length?e[0]?e[1]:e[2]:""}function s(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),r=Date.now()-t.getTime(),n=new Date(r);return Math.abs(n.getUTCFullYear()-1970)}function u(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],r=this.survey.getPageByName(t);if(r||(r=this.survey.getPanelByName(t)),!r)return!1;for(var n=r.questions,o=0;o<n.length;o++)if(n[o].hasErrors(!1))return!1;return!0}r.d(t,"a",function(){return l});var l=function(){function e(){this.functionHash={}}return e.prototype.register=function(e,t){this.functionHash[e]=t},e.prototype.unregister=function(e){delete this.functionHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,r){void 0===r&&(r=null);var n=this.functionHash[e];if(!n)return null;var o={func:n};if(r)for(var i in r)o[i]=r[i];return o.func(t)},e.Instance=new e,e}();l.Instance.register("sum",n),l.Instance.register("avg",o),l.Instance.register("sumInArray",i),l.Instance.register("iif",a),l.Instance.register("age",s),l.Instance.register("isContainerReady",u)},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",startSurveyText:"Start",otherItemText:"Other (describe)",progressText:"Page {0} of {1}",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Thank you for completing the survey!",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Survey is loading...",optionsCaption:"Choose...",value:"value",requiredError:"Please answer the question.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Please answer questions in all rows.",numericError:"The value should be numeric.",textMinLength:"Please enter at least {0} characters.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Please enter more than {0} and less than {1} characters.",minRowCountError:"Please fill in at least {0} rows.",minSelectError:"Please select at least {0} variants.",maxSelectError:"Please select no more than {0} variants.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"The '{0}' should be equal or more than {1}",numericMax:"The '{0}' should be equal or less than {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Please enter the other value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add column",addRow:"Add row",removeRow:"Remove",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",savingData:"The results are saving on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",cleanCaption:"Clean"}},function(e,t,r){"use strict";var n=r(0),o=r(3),i=r(1),a=r(8);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("label",r,!0),r}return n.b(t,e),t.prototype.getType=function(){return"boolean"},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.showTitle},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isValueEmpty(e)?this.value=null:this.value=1==e?this.getValueTrue():this.getValueFalse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue","indeterminate")},set:function(e){this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this.getLocalizableStringText("label")},set:function(e){this.setLocalizableStringText("label",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabel",{get:function(){return this.getLocalizableString("label")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDisplayLabel",{get:function(){return this.locLabel.text?this.locLabel:this.showTitle?this.locLabel:this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueTrue",{get:function(){return this.getPropertyValue("valueTrue")},set:function(e){this.setPropertyValue("valueTrue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueFalse",{get:function(){return this.getPropertyValue("valueFalse")},set:function(e){this.setPropertyValue("valueFalse",e)},enumerable:!0,configurable:!0}),t.prototype.getValueTrue=function(){return!this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return!!this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){"true"==this.defaultValue&&(this.checkedValue=!0),"false"==this.defaultValue&&(this.checkedValue=!1),"indeterminate"==this.defaultValue&&(this.value=null)},t}(a.a);i.b.metaData.addClass("boolean",[{name:"defaultValue:dropdown",alternativeName:"booleanDefaultValue",default:"indeterminate",choices:["indeterminate","false","true"]},{name:"label:text",serializationProperty:"locLabel"},"showTitle:boolean","valueTrue","valueFalse"],function(){return new s("")},"question"),o.a.Instance.registerQuestion("boolean",function(e){return new s(e)})},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(3),a=r(20),s=r(5);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return n.b(t,e),t.prototype.getDisplayValueCore=function(e){if(this.isEmpty())return"";for(var t=this.visibleChoices,r=this.value,n="",o=0;o<r.length;o++){var i=this.getChoicesDisplayValue(t,r[o]);i&&(n&&(n+=", "),n+=i)}return n},t.prototype.clearIncorrectValues=function(){var e=this.value;if(e){if(!Array.isArray(e)||0==e.length)return void this.clearValue();for(var t=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||t.push(e[r]);t.length!=e.length&&(0==t.length?this.clearValue():this.value=t)}},t.prototype.getConditionJson=function(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(n.type="radiogroup"),n},t.prototype.getValueCore=function(){return e.prototype.getValueCore.call(this)||[]},t.prototype.isAnswerCorrect=function(){return s.a.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.getHasOther=function(e){return!(!e||!Array.isArray(e))&&e.indexOf(this.otherItem.value)>=0},t.prototype.valueFromData=function(t){return t?Array.isArray(t)?e.prototype.valueFromData.call(this,t):[t]:t},t.prototype.valueFromDataCore=function(e){for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t])){this.comment=e[t];var r=e.slice();return r[t]=this.otherItem.value,r}}return e},t.prototype.valueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.getComment()){var r=e.slice();return r[t]=this.getComment(),r}return e},t.prototype.getType=function(){return"checkbox"},t}(a.a);o.b.metaData.addClass("checkbox",[],function(){return new u("")},"checkboxbase"),i.a.Instance.registerQuestion("checkbox",function(e){var t=new u(e);return t.choices=i.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),o=r(8),i=r(1),a=r(3),s=r(5);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("placeHolder",r),r}return n.b(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength",-1)},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return s.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows",4)},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols",50)},set:function(e){this.setPropertyValue("cols",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t}(o.a);i.b.metaData.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new u("")},"question"),a.a.Instance.registerQuestion("comment",function(e){return new u(e)})},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(8);r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return n.b(t,e),t.prototype.getType=function(){return"empty"},t}(i.a);o.b.metaData.addClass("empty",[],function(){return new a("")},"question")},function(e,t,r){"use strict";function n(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZAR","ZMW","ZWL"]}var o=r(0),i=r(8),a=r(1),s=r(3),u=r(10);r.d(t,"a",function(){return l});var l=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.createLocalizableString("format",r);var n=r;return r.registerFunctionOnPropertyValueChanged("expression",function(){n.expressionRunner&&(n.expressionRunner=new u.h(n.expression))}),r}return o.b(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.expression&&!this.expressionIsRunning&&(this.expressionIsRunning=!0,this.expressionRunner||(this.expressionRunner=new u.h(this.expression)),this.value=this.expressionRunner.run(t,r),this.expressionIsRunning=!1)},t.prototype.getDisplayValueCore=function(e){var t=this.isValueEmpty(this.value)?this.defaultValue:this.value;if(this.isValueEmpty(t))return"";var r=this.getValueAsStr(t);return this.format?this.format.format(r):r},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle","none")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency","USD")},set:function(e){n().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping",!0)},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!0,configurable:!0}),t.prototype.getValueAsStr=function(e){if("none"!=this.displayStyle&&!isNaN(parseFloat(e))&&isFinite(e)){var t=this.getLocale();t||(t="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return e.toLocaleString(t,r)}return e.toString()},t}(i.a);a.b.metaData.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"decimal",choices:["none","decimal","currency","percent"]},{name:"currency",choices:function(){return n()},default:"USD"},{name:"useGrouping:boolean",default:!0},{name:"commentText",visible:!1},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"validators",visible:!1}],function(){return new l("")},"question"),s.a.Instance.registerQuestion("expression",function(e){return new l(e)})},function(e,t,r){"use strict";var n=r(0),o=r(8),i=r(1),a=r(3),s=r(4),u=r(9),l=r(2);r.d(t,"a",function(){return c});var c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.isUploading=!1,r.onStateChanged=new s.b,r.previewValue=[],r}return n.b(t,e),t.prototype.getType=function(){return"file"},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview",!1)},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText",!0)},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload",!1)},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize",0)},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cleanButtonCaption",{get:function(){return l.a.getString("cleanCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?l.a.getString("loadingFile"):this.isEmpty()?l.a.getString("chooseFile"):""},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.value=void 0},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&!e.every(function(e){return t.checkFileForErrors(e)}))if(this.clear(),this.stateChanged("loading"),this.storeDataAsText){var r=[];e.forEach(function(n){var o=new FileReader;o.onload=function(i){r=r.concat([{name:n.name,type:n.type,content:o.result}]),r.length===e.length&&(t.value=r)},o.readAsDataURL(n)})}else this.survey.uploadFiles(this.name,e,function(e,r){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=r.map(function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))})},t.prototype.setNewValue=function(t){var r=this;if(e.prototype.setNewValue.call(this,t),this.previewValue=[],this.stateChanged(t?this.showPreview?"loading":"loaded":"empty"),this.showPreview&&t){var n=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(n.forEach(function(e){var t=e.content||e;r.isFileContentImage(t)&&(r.previewValue=r.previewValue.concat([t]))}),this.stateChanged("loaded")):n.forEach(function(e){var t=e.content||e;r.survey.downloadFile(r.name,t,function(e,t){"success"===e?(r.previewValue=r.previewValue.concat([t]),r.previewValue.length===n.length&&r.stateChanged("loaded")):r.stateChanged("error")})})}},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.isUploading&&this.waitForUpload&&t.push(new u.a(l.a.getString("uploadingFile")))},t.prototype.stateChanged=function(e){"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),this.onStateChanged.fire(this,{state:e})},t.prototype.checkFileForErrors=function(e){var t=this.errors?this.errors.length:0;return this.errors=[],this.maxSize>0&&e.size>this.maxSize&&this.errors.push(new u.e(this.maxSize)),(t!=this.errors.length||this.errors.length>0)&&this.fireCallback(this.errorsChangedCallback),this.errors.length>0},t.prototype.isFileImage=function(e){if(e&&e.type){return 0==e.type.toLowerCase().indexOf("image")}},t.prototype.isFileContentImage=function(e){if(e){return 0==e.toLowerCase().indexOf("data:image")}},t}(o.a);i.b.metaData.addClass("file",["showPreview:boolean","allowMultiple:boolean","imageHeight","imageWidth",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},"maxSize:number"],function(){return new c("")},"question"),a.a.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,r){"use strict";var n=r(0),o=r(27),i=r(1),a=r(3);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("html",r),r}return n.b(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.survey?this.survey.processHtml(this.html):this.html},enumerable:!0,configurable:!0}),t}(o.a);i.b.metaData.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new s("")},"questionbase"),a.a.Instance.registerQuestion("html",function(e){return new s(e)})},function(e,t,r){"use strict";var n=r(0),o=r(11),i=r(8),a=r(1),s=r(2),u=r(9),l=r(3),c=r(15),p=r(25);r.d(t,"a",function(){return h}),r.d(t,"c",function(){return d}),r.d(t,"b",function(){return f});var h=function(){function e(e,t,r,n){this.fullName=t,this.item=e,this.data=r,this.rowValue=n}return Object.defineProperty(e.prototype,"name",{get:function(){return this.item.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.rowValue},set:function(e){this.rowValue=e,this.data&&this.data.onMatrixRowChanged(this),this.onValueChanged()},enumerable:!0,configurable:!0}),e.prototype.onValueChanged=function(){},e}(),d=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!0,configurable:!0}),e.prototype.setCellText=function(e,t,r){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t)if(r)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=r;else if(this.values[e]&&this.values[e][t]){var n=this.values[e][t];n.text="",n.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}},e.prototype.setDefaultCellText=function(t,r){this.setCellText(e.DefaultRowName,t,r)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(t,r){return this.getCellLocText(e.DefaultRowName,t)},e.prototype.getCellDisplayLocText=function(t,r){var n=this.getCellLocText(t,r);return n&&!n.isEmpty?n:(n=this.getCellLocText(e.DefaultRowName,r))&&!n.isEmpty?n:("number"==typeof r&&(r=r>=0&&r<this.columns.length?this.columns[r]:null),r&&r.locText?r.locText:null)},e.prototype.getCellText=function(e,t){var r=this.getCellLocText(e,t);return r?r.text:null},e.prototype.getDefaultCellText=function(t){var r=this.getCellLocText(e.DefaultRowName,t);return r?r.text:null},e.prototype.getCellDisplayText=function(e,t){var r=this.getCellDisplayLocText(e,t);return r?r.text:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!0,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var r={},n=this.values[t];for(var o in n)r[o]=n[o].getJson();e[t]=r}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var r=e[t];this.values[t]={};for(var n in r)if("pos"!=n){var o=this.createString();o.setJson(r[n]),this.values[t][n]=o}}},e.prototype.createString=function(){return new c.a(this.cellsOwner,!0)},e.DefaultRowName="default",e}(),f=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.isRowChanging=!1,r.emptyLocalizableString=new c.a(r),r.columnsValue=r.createItemValues("columns"),r.rowsValue=r.createItemValues("rows"),r.cellsValue=new d(r),r}return n.b(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rowsValue.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.columnsValue},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.rowsValue},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleRows",{get:function(){var e=new Array,t=this.value;t||(t={});for(var r=0;r<this.rows.length;r++)this.rows[r].value&&e.push(this.createMatrixRow(this.rows[r],this.name+"_"+this.rows[r].value.toString(),t[this.rows[r].value]));return 0==e.length&&e.push(this.createMatrixRow(new o.a(null),this.name,t)),this.generatedVisibleRows=e,e},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.columns},Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return!this.cells.isEmpty},enumerable:!0,configurable:!0}),t.prototype.setCellText=function(e,t,r){this.cells.setCellText(e,t,r)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){var r=this.cells.getCellDisplayLocText(e,t);return r||this.emptyLocalizableString},t.prototype.clearIncorrectValues=function(){var e=this.value;if(e){var t={},r=!1;for(var n in e)o.a.getItemByValue(this.rows,n)&&o.a.getItemByValue(this.columns,e[n])?t[n]=e[n]:r=!0;r&&(this.value=t)}},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new u.a(s.a.getString("requiredInAllRowsError")))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){if(!e[t].value)return!1}return!0},t.prototype.createMatrixRow=function(e,t,r){return new h(e,t,this,r)},t.prototype.onValueChanged=function(){if(!this.isRowChanging&&this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var e=this.value;if(e||(e={}),0==this.rows.length)this.generatedVisibleRows[0].value=e;else for(var t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t],n=e[r.name]?e[r.name]:null;this.generatedVisibleRows[t].value=n}this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e){var t=this.value;if(!t)return t;var r={};for(var n in t){var i=e?o.a.getTextOrHtmlByValue(this.rows,n):n;i||(i=n);var a=o.a.getTextOrHtmlByValue(this.columns,t[n]);a||(a=t[n]),r[i]=a}return r},t.prototype.addConditionNames=function(e){for(var t=0;t<this.rows.length;t++)this.rows[t].value&&e.push(this.name+"."+this.rows[t].value)},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=new p.a(r);n.choices=this.columns;var o=(new a.b).toJsonObject(n);return o.type=n.getType(),o},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t}(i.a);a.b.metaData.addClass("matrix",[{name:"columns:itemvalues",onGetValue:function(e){return o.a.getData(e.columns)},onSetValue:function(e,t){e.columns=t}},{name:"rows:itemvalues",onGetValue:function(e){return o.a.getData(e.rows)},onSetValue:function(e,t){e.rows=t}},{name:"cells:cells",serializationProperty:"cells"},"isAllRowRequired:boolean"],function(){return new f("")},"question"),l.a.Instance.registerQuestion("matrix",function(e){var t=new f(e);return t.rows=l.a.DefaultRows,t.columns=l.a.DefaultColums,t})},function(e,t,r){"use strict";var n=r(0),o=r(16),i=r(1),a=r(11),s=r(3);r.d(t,"b",function(){return u}),r.d(t,"a",function(){return l});var u=function(e){function t(t,r,n,o){var i=e.call(this,n,o)||this;return i.name=t,i.item=r,i.buildCells(),i}return n.b(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),t}(o.b),l=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.rowsValue=r.createItemValues("rows");var n=r;return r.registerFunctionOnPropertyValueChanged("rows",function(){n.generatedVisibleRows=null}),r}return n.b(t,e),t.prototype.getType=function(){return"matrixdropdown"},t.prototype.getDisplayValueCore=function(e){var t=this.value;if(!t)return t;for(var r=this.visibleRows,n={},o=0;o<r.length;o++){var i=this.rows[o].value,s=t[i];if(s){if(e){var u=a.a.getTextOrHtmlByValue(this.rows,i);u&&(i=u)}n[i]=this.getRowDisplayValue(r[o],s)}}return t},t.prototype.addConditionNames=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].value)for(var r=this.name+"."+this.rows[t].value+".",n=0;n<this.columns.length;n++)e.push(r+this.columns[n].name)},Object.defineProperty(t.prototype,"rows",{get:function(){return this.rowsValue},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r={},n=!1;for(var o in t)a.a.getItemByValue(this.rows,o)?r[o]=t[o]:n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.generateRows=function(){var e=new Array;if(!this.rows||0===this.rows.length)return e;var t=this.value;t||(t={});for(var r=0;r<this.rows.length;r++)this.rows[r].value&&e.push(this.createMatrixRow(this.rows[r],t[this.rows[r].value]));return e},t.prototype.createMatrixRow=function(e,t){var r=new u(e.value,e,this,t);return this.onMatrixRowCreated(r),r},t}(o.a);i.b.metaData.addClass("matrixdropdown",[{name:"rows:itemvalues",onGetValue:function(e){return a.a.getData(e.rows)},onSetValue:function(e,t){e.rows=t}}],function(){return new l("")},"matrixdropdownbase"),s.a.Instance.registerQuestion("matrixdropdown",function(e){var t=new l(e);return t.choices=[1,2,3,4,5],t.rows=s.a.DefaultColums,o.a.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),o=r(16),i=r(1),a=r(3),s=r(2),u=r(9);r.d(t,"b",function(){return l}),r.d(t,"a",function(){return c});var l=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;return o.index=t,o.buildCells(),o}return n.b(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!0,configurable:!0}),t}(o.b),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.rowCounter=0,r.rowCountValue=2,r.createLocalizableString("confirmDeleteText",r),r.createLocalizableString("keyDuplicationError",r),r.createLocalizableString("addRowText",r),r.createLocalizableString("removeRowText",r),r}return n.b(t,e),t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>t.MaxRowCount)){var r=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(!this.isLoadingFromJson){if(this.generatedVisibleRows){this.generatedVisibleRows.splice(e);for(var o=r;o<e;o++)this.generatedVisibleRows.push(this.createMatrixRow(null))}this.fireCallback(this.rowCountChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount",0)},set:function(e){e<0&&(e=0),e==this.minRowCount||e>this.maxRowCount||(this.setPropertyValue("minRowCount",e),this.rowCount<e&&(this.rowCount=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount",t.MaxRowCount)},set:function(e){e<=0||(e>t.MaxRowCount&&(e=t.MaxRowCount),e==this.maxRowCount||e<this.minRowCount||(this.setPropertyValue("maxRowCount",e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRow",{get:function(){return!this.isReadOnly&&this.rowCount>this.minRowCount},enumerable:!0,configurable:!0}),t.prototype.addRow=function(){if(this.canAddRow){var e=this.rowCount;this.rowCount=this.rowCount+1,this.data&&this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.survey&&e+1==this.rowCount&&this.survey.matrixRowAdded(this)}},t.prototype.removeRowUI=function(e){this.confirmDelete&&!confirm(this.confirmDeleteText)||this.removeRow(e)},t.prototype.removeRow=function(e){if(this.canRemoveRow&&!(e<0||e>=this.rowCount)){if(this.survey){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;this.survey.matrixRowRemoved(this,e,t)}if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.value){var r=this.createNewValue(this.value);r.splice(e,1),r=this.deleteRowValue(r,null),this.value=r}this.rowCountValue--,this.fireCallback(this.rowCountChangedCallback)}},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",s.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",s.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){var e=this.isColumnsLocationHorizontal?"addRow":"addColumn";return this.getLocalizableStringText("addRowText",s.a.getString(e))},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation","default")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnTop",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"vertical"===this.columnsLocation:"bottom"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnBottom",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"horizontal"===this.columnsLocation:"top"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText",s.a.getString("removeRow"))},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e){var t=this.value;if(!t)return t;for(var r=this.visibleRows,n=0;n<r.length&&n<t.length;n++){var o=t[n];o&&(t[n]=this.getRowDisplayValue(r[n],o))}return t},t.prototype.addConditionNames=function(e){for(var t=0;t<this.columns.length;t++)e.push(this.name+"[0]."+this.columns[t].name)},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new u.a(s.a.getString("minRowCountError").format(this.minRowCount)))},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var r=e.prototype.hasErrors.call(this,t);return this.isValueDuplicated()||r},t.prototype.hasErrorInRows=function(){if(this.minRowCount<=0||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++){this.generatedVisibleRows[t].isEmpty||e++}return e<this.minRowCount},t.prototype.isValueDuplicated=function(){if(!this.keyName||!this.generatedVisibleRows)return!1;var e=this.getColumnByName(this.keyName);if(!e)return!1;for(var t=[],r=!1,n=0;n<this.generatedVisibleRows.length;n++)r=this.isValueDuplicatedInRow(this.generatedVisibleRows[n],e,t)||r;return r},t.prototype.isValueDuplicatedInRow=function(e,t,r){var n=e.getQuestionByColumn(t);if(!n||n.isEmpty())return!1;for(var o=n.value,i=0;i<r.length;i++)if(o==r[i])return n.addError(new u.a(this.keyDuplicationError)),!0;return r.push(o),!1},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(this.value),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,r)));return e},t.prototype.createMatrixRow=function(e){var t=new l(this.rowCounter++,this,e);return this.onMatrixRowCreated(t),t},t.prototype.onBeforeValueChanged=function(e){var t=e&&Array.isArray(e)?e.length:0;t<=this.rowCount||(this.rowCountValue=t,this.generatedVisibleRows&&(this.generatedVisibleRows=null,this.generatedVisibleRows=this.visibleRows))},t.prototype.createNewValue=function(e){var t=e;t&&Array.isArray(t)||(t=[]);t.length>this.rowCount&&t.splice(this.rowCount-1);for(var r=t.length;r<this.rowCount;r++)t.push({});return t},t.prototype.deleteRowValue=function(e,t){for(var r=!0,n=0;n<e.length;n++)if(Object.keys(e[n]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,t){return t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,r){return void 0===r&&(r=!1),this.generatedVisibleRows?this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e)):{}},t.MaxRowCount=100,t}(o.a);i.b.metaData.addClass("matrixdynamic",[{name:"rowCount:number",default:2},{name:"minRowCount:number",default:0},{name:"maxRowCount:number",default:c.MaxRowCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"}],function(){return new c("")},"matrixdropdownbase"),a.a.Instance.registerQuestion("matrixdynamic",function(e){var t=new c(e);return t.choices=[1,2,3,4,5],o.a.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(29),a=r(8),s=r(26),u=r(1),l=r(3),c=r(9),p=r(5);r.d(t,"a",function(){return h}),r.d(t,"b",function(){return d});var h=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.validators=new Array,n.editorValue=n.createEditor(t),n.editor.titleLocation="left",r&&(n.title=r),n}return n.b(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!0,configurable:!0}),t.prototype.createEditor=function(e){return new s.a(e)},t.prototype.setData=function(e){this.data=e,e&&this.editor.setSurveyImpl(this)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength",-1)},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return p.a.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.editor.placeHolder},set:function(e){this.editor.placeHolder=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.editor.locPlaceHolder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return p.a.isValueEmpty(this.value)},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.a),d=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.itemsValues=new Array,r.isMultipleItemValueChanging=!1;var n=r;return r.itemsValues=r.createNewArray("items",function(e){e.setData(n)}),r.registerFunctionOnPropertyValueChanged("items",function(){n.fireCallback(n.colCountChangedCallback)}),r.registerFunctionOnPropertyValueChanged("colCount",function(){n.fireCallback(n.colCountChangedCallback)}),r}return n.b(t,e),t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.fireCallback(this.colCountChangedCallback)},Object.defineProperty(t.prototype,"items",{get:function(){return this.itemsValues},set:function(e){this.setPropertyValue("items",e)},enumerable:!0,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var r=this.createTextItem(e,t);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionNames=function(e){for(var t=0;t<this.items.length;t++)e.push(this.name+"."+this.items[t].name)},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=this.getItemByName(r);if(!n)return null;var o=(new u.b).toJsonObject(n);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",1)},set:function(e){e<1||e>4||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize",25)},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,r=[],n=0,o=0;o<t.length;o++)0==n&&r.push([]),r[r.length-1].push(t[o]),++n>=e&&(n=0);return r},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new h(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.runValidators=function(){var t=e.prototype.runValidators.call(this);if(null!=t)return t;for(var r=0;r<this.items.length;r++)if(!this.items[r].isEmpty()&&null!=(t=(new i.a).run(this.items[r])))return t;return null},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t);for(var r=0;r<this.items.length;r++){var n=this.items[r];n.isRequired&&!n.value&&t.push(new c.c)}},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0;var r=this.value;r||(r={}),r[e]=t,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getSurvey=function(){return this.survey},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t}(a.a);u.b.metaData.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new h("")}),u.b.metaData.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",default:25},{name:"colCount:number",default:1,choices:[1,2,3,4]}],function(){return new d("")},"question"),l.a.Instance.registerQuestion("multipletext",function(e){var t=new d(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(2),a=r(17),s=r(14),u=r(8),l=r(19),c=r(1),p=r(3),h=r(9);r.d(t,"b",function(){return d}),r.d(t,"a",function(){return f});var d=function(){function e(e,t){this.data=e,this.panelValue=t;var r=this;this.textPreProcessor=new a.a,this.textPreProcessor.onProcess=function(e){r.getProcessedTextValue(e)},this.setSurveyImpl(),this.panel.updateCustomWidgets()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!0,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.runCondition=function(e,t){this.panel.runCondition(e,t)},e.prototype.getValue=function(e){return this.data.getPanelItemData(this)[e]},e.prototype.setValue=function(e,t){this.data.setPanelItemData(this,e,t)},e.prototype.getComment=function(e){var t=this.getValue(e+o.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+o.a.commentPrefix,t)},e.prototype.onSurveyValueChanged=function(){for(var e=this.panel.questions,t=this.data.getPanelItemData(this),r=0;r<e.length;r++){var n=e[r];n.onSurveyValueChanged(t[n.getValueName()])}},e.prototype.setVisibleIndex=function(e,t){return t?this.panel.setVisibleIndex(e):(this.panel.setVisibleIndex(-1),0)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){return this.getAllValues()},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this},e.prototype.getProcessedTextValue=function(t){if(t){if(t.name==e.IndexVariableName)return t.isExists=!0,void(t.value=this.data.getItemIndex(this)+1);var r=(new s.a).getFirstName(t.name);if(t.isExists=r==e.ItemVariableName,t.canProcess=t.isExists,t.canProcess){t.name=t.name.replace(e.ItemVariableName+".","");var r=(new s.a).getFirstName(t.name),n=this.panel.getQuestionByValueName(r),o={};if(n)o[r]=t.returnDisplayValue?n.displayValue:n.value;else{var i=this.getAllValues();i&&(o[r]=i[r])}t.value=(new s.a).getValue(t.name,o)}}},e.prototype.processText=function(e,t){e=this.textPreProcessor.process(e,t);var r=this.getSurvey();return r?r.processText(e,t):e},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var r=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:e};return this.getSurvey()&&(n=this.getSurvey().processTextEx(e,t)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.prototype.onAnyValueChanged=function(t){this.panel.onAnyValueChanged(t),this.panel.onAnyValueChanged(e.ItemVariableName)},e.ItemVariableName="panel",e.IndexVariableName="panelIndex",e}(),f=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.itemsValue=new Array,r.loadingPanelCount=0,r.currentIndexValue=-1,r.templateValue=r.createAndSetupNewPanelObject(),r.template.renderWidth="100%",r.template.selectedElementInDesign=r;var n=r;return r.oldTemplateRowsChangedCallback=r.template.rowsChangedCallback,r.template.rowsChangedCallback=function(){n.templateOnRowsChanged(),n.oldTemplateRowsChangedCallback&&n.oldTemplateRowsChangedCallback()},r.createLocalizableString("confirmDeleteText",r),r.createLocalizableString("keyDuplicationError",r),r.createLocalizableString("panelAddText",r),r.createLocalizableString("panelRemoveText",r),r.createLocalizableString("panelPrevText",r),r.createLocalizableString("panelNextText",r),r.registerFunctionOnPropertyValueChanged("panelsState",function(){n.setPanelsState()}),r}return n.b(t,e),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.template.setSurveyImpl(this.surveyImpl)},t.prototype.templateOnRowsChanged=function(){this.isLoadingFromJson||this.rebuildPanels()},t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.itemsValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].panel);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:(this.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(e){e>=this.panelCount&&(e=this.panelCount-1),this.currentIndexValue=e,this.fireCallback(this.currentIndexChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){var e=this.currentIndex;return e<0||e>=this.panels.length?null:this.panels[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",i.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",i.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText",i.a.getString("pagePrevText"))},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText",i.a.getString("pageNextText"))},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText",i.a.getString("addPanel"))},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText",i.a.getString("removePanel"))},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.panelCount-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.panelCount>1},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.isDesignMode?this.loadingPanelCount:this.items.length},set:function(e){if(!(e<0)){if(this.isLoadingFromJson||this.isDesignMode)return void(this.loadingPanelCount=e);if(e!=this.items.length&&!this.isDesignMode){for(var t=this.panelCount;t<e;t++){var r=this.createNewItem();this.items.push(r),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?r.panel.expand():r.panel.collapse())}e<this.panelCount&&this.items.splice(e,this.panelCount-e),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState","default")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!0,configurable:!0}),t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.items.length;e++)this.items[e].setSurveyImpl()},t.prototype.setPanelsState=function(){if(!this.isDesignMode&&"list"==this.renderMode)for(var e=0;e<this.items.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.items[e].panel.state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.value=e}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount",0)},set:function(e){e<0&&(e=0),e==this.minPanelCount||e>this.maxPanelCount||(this.setPropertyValue("minPanelCount",e),this.panelCount<e&&(this.panelCount=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount",t.MaxPanelCount)},set:function(e){e<=0||(e>t.MaxPanelCount&&(e=t.MaxPanelCount),e==this.maxPanelCount||e<this.minPanelCount||(this.setPropertyValue("maxPanelCount",e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel",!0)},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel",!0)},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation","default")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers","off")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress",!0)},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode","list")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"==this.renderMode},enumerable:!0,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var r="onSurvey"==this.showQuestionNumbers?t:0,n=0;n<this.items.length;n++){var o=this.items[n].setVisibleIndex(r,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(r+=o)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:r-t},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount)},enumerable:!0,configurable:!0}),t.prototype.rebuildPanels=function(){var e=new Array;if(this.isDesignMode)e.push(new d(this,this.template)),this.oldTemplateRowsChangedCallback&&this.oldTemplateRowsChangedCallback(),this.rebuildTemplateRowsInElements(this.template.elements);else for(var t=0;t<this.panelCount;t++)e.push(this.createNewItem());this.setPanelsState(),this.itemsValue=e,this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)},t.prototype.rebuildTemplateRowsInElements=function(e){for(var t=0;t<e.length;t++)if(e[t].isPanel){var r=e[t];r.rowsChangedCallback&&r.rowsChangedCallback(),this.rebuildTemplateRowsInElements(r.elements)}},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){return this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1),this.survey&&this.survey.dynamicPanelAdded(this),this.items[this.panelCount-1].panel},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!confirm(this.confirmDeleteText)||this.removePanel(e))},t.prototype.removePanel=function(e){var r=this.getPanelIndex(e);if(!(r<0||r>=this.panelCount)){this.items.splice(r,1);var e=this.value;!e||!Array.isArray(e)||r>=e.length||(e.splice(r,1),t.isPanelRemoving=!0,this.value=e,t.isPanelRemoving=!1,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,r))}},t.prototype.getPanelIndex=function(e){if(!isNaN(parseFloat(e))&&isFinite(e))return e;for(var t=0;t<this.items.length;t++)if(this.items[t]===e||this.items[t].panel===e)return t;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,r=0;r<t.length;r++)t[r].locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var r=this.value,n=e<r.length?r[e]:null;if(n){var o=!1;for(var i in n)t.getQuestionByName(i)||(delete n[i],o=!0);o&&(r[e]=n,this.value=r)}},t.prototype.addConditionNames=function(e){for(var t=this.name+"[0].",r=[],n=this.template.questions,o=0;o<n.length;o++)n[o].addConditionNames(r);for(var o=0;o<r.length;o++)e.push(t+r[o])},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t,r);var n=r,o=r.indexOf(".");o>-1&&(n=r.substr(0,o),r=r.substr(o+1));var i=this.template.getQuestionByName(n);return i?i.getConditionJson(t,r):null},t.prototype.onSurveyLoad=function(){this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),e.prototype.onSurveyLoad.call(this)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runPanelsCondition(t,r)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var r={};e&&e instanceof Object&&(r=JSON.parse(JSON.stringify(e)));for(var n=0;n<this.items.length;n++)r[d.ItemVariableName]=this.getPanelItemData(this.items[n]),r[d.IndexVariableName]=n,this.items[n].runCondition(r,t)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].onReadOnlyChanged()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=0;r<this.items.length;r++)this.items[r].onAnyValueChanged(t)},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var r=this.hasErrorInPanels(t);return e.prototype.hasErrors.call(this,t)||r},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this);for(var t=0;t<this.panels.length;t++)for(var r=this.panels[t].questions,n=0;n<r.length;n++)r[n].clearValueIfInvisible()},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.panels.length;r++)for(var n=this.panels[r].questions,o=0;o<n.length;o++){var i=n[o].getAllErrors();i&&i.length>0&&(t=t.concat(i))}return t},t.prototype.hasErrorInPanels=function(e){for(var t=!1,r=this.panels,n=[],o=0;o<r.length;o++){var i=r[o].hasErrors(e);i=this.isValueDuplicated(r[o],n)||i,this.isRenderModeList||!i||t||(this.currentIndex=o),t=i||t}return t},t.prototype.isValueDuplicated=function(e,t){if(!this.keyName)return!1;var r=e.getQuestionByValueName(this.keyName);if(!r||r.isEmpty())return!1;for(var n=r.value,o=0;o<t.length;o++)if(n==t[o])return r.addError(new h.a(this.keyDuplicationError)),!0;return t.push(n),!1},t.prototype.createNewItem=function(){return new d(this,this.createNewPanel())},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=new c.b,r=t.toJsonObject(this.template);return t.toObject(r,e),e.renderWidth="100%",e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject(),t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return new l.b},t.prototype.onValueChanged=function(){if(!this.isValueChangingInternally){var e=this.value,r=e&&Array.isArray(e)?e.length:0;!t.isPanelRemoving&&r<=this.panelCount||(this.panelCount=r)}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.items.length;r++)this.items[r].onSurveyValueChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode&&(this.template.setSurveyImpl(this.surveyImpl),this.isLoadingFromJson||this.rebuildPanels())},t.prototype.getItemIndex=function(e){return this.items.indexOf(e)},t.prototype.getPanelItemData=function(e){var t=this.items.indexOf(e),r=this.value;return t<0&&Array.isArray(r)&&r.length>this.items.length&&(t=this.items.length),t<0?{}:!r||!Array.isArray(r)||r.length<=t?{}:r[t]},t.prototype.setPanelItemData=function(e,t,r){var n=this.items.indexOf(e);n<0&&(n=this.items.length);var o=this.value;if(o&&Array.isArray(o)||(o=[]),o.length<=n)for(var i=o.length;i<=n;i++)o.push({});if(o[n]||(o[n]={}),this.isValueEmpty(r)?delete o[n][t]:o[n][t]=r,this.isValueChangingInternally=!0,this.value=o,this.isValueChangingInternally=!1,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:n,itemValue:o[n],value:r};this.survey.dynamicPanelItemValueChanged(this,a)}},t.prototype.getSurvey=function(){return this.survey},t.MaxPanelCount=100,t.isPanelRemoving=!1,t}(u.a);c.b.metaData.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0},{name:"maxPanelCount:number",default:f.MaxPanelCount},{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom"]},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]}],function(){return new f("")},"question"),p.a.Instance.registerQuestion("paneldynamic",function(e){return new f(e)})},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(3),a=r(20);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return n.b(t,e),t.prototype.getType=function(){return"radiogroup"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t}(a.a);o.b.metaData.addClass("radiogroup",[],function(){return new s("")},"checkboxbase"),i.a.Instance.registerQuestion("radiogroup",function(e){var t=new s(e);return t.choices=i.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),o=r(11),i=r(8),a=r(1),s=r(3);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.rates=r.createItemValues("rates");var n=r;r.registerFunctionOnPropertyValueChanged("rates",function(){n.fireCallback(n.rateValuesChangedCallback)}),r.onPropertyChanged.add(function(e,t){"rateMin"!=t.name&&"rateMax"!=t.name&&"rateStep"!=t.name||n.fireCallback(n.rateValuesChangedCallback)});var o=r.createLocalizableString("minRateDescription",r,!0),i=r.createLocalizableString("maxRateDescription",r,!0);return o.onGetTextCallback=function(e){return e?e+" ":e},i.onGetTextCallback=function(e){return e?" "+e:e},r}return n.b(t,e),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.fireCallback(this.rateValuesChangedCallback)},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.rates},set:function(e){this.setPropertyValue("rates",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin",1)},set:function(e){e>this.rateMax-this.rateStep&&(e=this.rateMax-this.rateStep),this.setPropertyValue("rateMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax",5)},set:function(e){e<this.rateMin+this.rateStep&&(e=this.rateMin+this.rateStep),this.setPropertyValue("rateMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep",1)},set:function(e){e<=0&&(e=1),e>this.rateMax-this.rateMin&&(e=this.rateMax-this.rateMin),this.setPropertyValue("rateStep",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e){if(this.isEmpty())return"";var t=o.a.getTextOrHtmlByValue(this.visibleRateValues,this.value);return t||this.value},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;for(var e=[],r=this.rateMin;r<=this.rateMax&&e.length<t.MaximumRateValueCount;)e.push(new o.a(r)),r+=this.rateStep;return e},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"rating"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!0,configurable:!0}),t.MaximumRateValueCount=20,t}(i.a);a.b.metaData.addClass("rating",["hasComment:boolean",{name:"rateValues:itemvalues",onGetValue:function(e){return o.a.getData(e.rateValues)},onSetValue:function(e,t){e.rateValues=t}},{name:"rateMin:number",default:1},{name:"rateMax:number",default:5},{name:"rateStep:number",default:1},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"}],function(){return new u("")},"question"),s.a.Instance.registerQuestion("rating",function(e){return new u(e)})},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(){this.sheet=null,this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet))}return e.findSheet=function(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode.id===e)return document.styleSheets[t];return null},e.createSheet=function(e){var t=document.createElement("style");return t.id=e,t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},e.applyTheme=function(t,r){void 0===t&&(t="default"),void 0===r&&(r=".sv_main");var n=e.findSheet(t+r);if(!n){n=e.createSheet(t+r);var o=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(e.ThemeCss).forEach(function(t){var i=e.ThemeCss[t];Object.keys(o).forEach(function(e){return i=i.replace(new RegExp("\\"+e,"g"),o[e])}),n.insertRule(r+t+" { "+i+" }",0)})}},e.prototype.initializeStyles=function(t){Object.keys(e.Styles).forEach(function(r){return t.insertRule(r+" { "+e.Styles[r]+" }",0)}),Object.keys(e.Media).forEach(function(r){t.insertRule(e.Media[r].media+" { "+r+" { "+e.Media[r].style+" } }",0)})},e.SurveyJSStylesSheetId="surveyjs",e.Styles={".sv_bootstrap_css .sv_qstn":"padding: 0.5em 1em 1.5em 1em;",".sv_bootstrap_css .sv_qcbc input[type=checkbox], .sv_bootstrap_css .sv_qcbc input[type=radio]":"vertical-align: middle; margin-top: -1px",".sv_bootstrap_css .sv_qstn fieldset":"display: block;",".sv_bootstrap_css .sv_qstn .sv_q_checkbox_inline, .sv_bootstrap_css .sv_qstn .sv_q_radiogroup_inline":"display: inline-block;",".sv_bootstrapmaterial_css .sv_q_radiogroup_control_label":"display: inline; position: static;",".sv_row .sv_qstn":"float: left",".sv_row .sv_qstn:last-child":"float: none",".sv_qstn":"display: inline-block; vertical-align: top; overflow: auto;",".progress":"width: 60%;",".progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_p_container":"display: inline-block; vertical-align: top;",".sv_qbln .checkbox-material":"margin-right: 3px;",".sv_qcbx .checkbox-material":"margin-right: 5px;",".sv_qcbx .checkbox label":"justify-content: left; display: inline-block;",".sv_qstn .radio label":"justify-content: left; display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0;",".sv_qstn td":"position: relative;",".sv_q_mt_item_value":"float: left;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 1em;",".sv_qstn .content-left":"overflow: hidden",".sv_q_radiogroup_inline .sv_q_radiogroup_other":"display: inline-block;",".sv_q_checkbox_inline .sv_q_checkbox_other":"display: inline-block;",".sv_q_checkbox_inline, .sv_q_radiogroup_inline":"line-height: 2.5em;",".form-inline .sv_q_checkbox_inline:not(:last-child)":"margin-right: 1em;",".form-inline .sv_q_radiogroup_inline:not(:last-child)":"margin-right: 1em;",".sv_qstn fieldset":"border: none; margin: 0; padding: 0;",".sv_qstn .sv_q_file_placeholder":"display:none",".sv_p_title":"padding-left: 1em; padding-bottom: 0.3em;",".sv_p_title_expandable":"cursor: pointer;",".sv_p_title .sv_panel_icon":"float: right; margin-right: 1em;",".sv_p_title .sv_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_p_title .sv_panel_icon.sv_expanded::before":"transform: rotate(180deg);",".sv_q_file > input[type=file], .sv_q_file > button":"display: inline-block;",".sv_q_file_preview":"display: inline-block;",".sv_q_file_remove_button":"line-height: normal;",".sv_q_m_cell_text":"cursor: pointer;",".sv_q_dd_other":"margin-top: 1em;",".sv_q_dd_other input":"width: 100%;",".sv_qstn .sv-q-col-1":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-2":"width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-3":"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-4":"width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-5":"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv_q_file_input":"color: transparent;",".sv_qstn .sv_q_file_input::after":"content: attr(title); padding-left: 1em; color: initial;"},e.Media={".sv_qstn fieldset .sv-q-col-1":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-2":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-3":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-4":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-5":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"}},e.ThemeColors={default:{"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},orange:{"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},darkblue:{"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},darkrose:{"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},stone:{"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},winter:{"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},winterstone:{"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#fff","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"}},e.ThemeCss={".sv_default_css":"background-color: $body-container-background-color;",".sv_default_css hr":"border-color: $border-color;",".sv_default_css input[type='button'], .sv_default_css button":"color: $body-background-color; background-color: $main-color;",".sv_default_css input[type='button']:hover, .sv_default_css button:hover":"background-color: $main-hover-color;",".sv_default_css .sv_header":"color: $header-color;",".sv_default_css .sv_custom_header":"background-color: $header-background-color;",".sv_default_css .sv_container":"color: $text-color;",".sv_default_css .sv_body":"background-color: $body-background-color; border-color: $main-color;",".sv_default_css .sv_progress":"background-color: $border-color;",".sv_default_css .sv_progress_bar":"background-color: $main-color;",".sv_default_css .sv_p_root > .sv_row":"border-color: $border-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(odd)":"background-color: $body-background-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(even)":"background-color: $body-container-background-color;",".sv_default_css .sv_q_other input":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input[type='text']":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css select":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css textarea":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_other input:focus":"border-color: $main-color;",".sv_default_css .sv_q_text_root:focus":"border-color: $main-color;",".sv_default_css .sv_q_dropdown_control:focus":"border-color: $main-color;",".sv_default_css input[type='text']:focus":"border-color: $main-color;",".sv_default_css select:focus":"border-color: $main-color;",".sv_default_css textarea:focus":"border-color: $main-color;",".sv_default_css .sv_select_wrapper":"background-color: $body-background-color;",".sv_default_css .sv_select_wrapper::before":"background-color: $main-color;",".sv_default_css .sv_q_rating_item.active .sv_q_rating_item_text":"background-color: $main-hover-color; border-color: $main-hover-color; color: $body-background-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text":"border-color: $border-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text:hover":"border-color: $main-hover-color;",".sv_default_css table.sv_q_matrix tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dropdown tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dynamic tr":"border-color: $border-color;",".sv_default_css .sv_q_m_cell_selected":"color: $body-background-color; background-color: $main-hover-color;"},e}()},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(28);r.d(t,"a",function(){return a});var a=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;n.isExpandedValue=!1,n.closeOnCompleteTimeout=0,n.surveyValue=r||n.createSurvey(t),n.surveyValue.showTitle=!1,"undefined"!=typeof document&&(n.windowElement=document.createElement("div"));var o=n;return n.survey.onComplete.add(function(e,t){o.onSurveyComplete()}),n}return n.b(t,e),t.prototype.getType=function(){return"window"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.isShowingValue},set:function(e){this.isShowing!=e&&(this.isShowingValue=e,this.showingChangedCallback&&this.showingChangedCallback())},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.isExpandedValue},set:function(e){e?this.expand():this.collapse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!0,configurable:!0}),t.prototype.expand=function(){this.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new i.a(e)},t.prototype.expandcollapse=function(e){this.isExpandedValue!=e&&(this.isExpandedValue=e,this.expandedChangedCallback&&this.expandedChangedCallback())},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null,r=function(){e.closeWindowOnComplete(),window.clearInterval(t)};t=window.setInterval(r,1e3*this.closeOnCompleteTimeout)}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(o.a)},function(e,t,r){"use strict";var n=r(4);r.d(t,"a",function(){return i});var o={setInterval:function(e){return window.setInterval(e,1e3)},clearInterval:function(e){window.clearInterval(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new n.b}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!0,configurable:!0}),e.prototype.start=function(e){if(void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0){var t=this;this.timerId=o.setInterval(function(){t.doTimer()})}this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),0==--this.listenerCounter&&this.timerId>-1&&(o.clearInterval(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){this.timerId<0||this.onTimer.fire(this,{})},e.instanceValue=null,e}()},function(e,t,r){"use strict";var n=r(12);r.d(t,"a",function(){return o});var o={root:"sv_bootstrap_css",header:"panel-heading card-header",body:"panel-body card-block mt-4",footer:"panel-footer card-footer",navigationButton:"",completedPage:"",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",title:"",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20},panel:{title:"sv_p_title",description:"small",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:""},boolean:{root:"sv_qbln form-inline checkbox",item:"",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemControl:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other"},matrix:{root:"table",label:"sv_q_m_label",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary"},matrixdropdown:{root:"table"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:""},paneldynamic:{root:"",button:"button",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},multipletext:{root:"table",itemTitle:"",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",label:"",itemControl:"",controlLabel:"",materialDecorator:"circle",other:"sv_q_radiogroup_other"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text"},text:"form-control",expression:"form-control",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};n.b.bootstrap=o},function(e,t,r){"use strict";var n=r(12);r.d(t,"a",function(){return o});var o={root:"sv_bootstrapmaterial_css",header:"panel-heading",body:"panel-body",footer:"panel-footer",navigationButton:"",completedPage:"",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group",title:"",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20},panel:{title:"sv_p_title",description:"small",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:""},boolean:{root:"sv_qbln form-inline checkbox",item:"",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbx form-inline",item:"checkbox",itemControl:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other"},matrix:{root:"table",row:"form-group",label:"sv_q_m_label radio-inline",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",itemValue:"form-control"},matrixdropdown:{root:"table",itemValue:"form-group"},matrixdynamic:{root:"table",button:"button",itemValue:"form-group",buttonAdd:"",buttonRemove:""},paneldynamic:{root:"",button:"button",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},multipletext:{root:"table",itemTitle:"",row:"form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",label:"",itemControl:"",controlLabel:"sv_q_radiogroup_control_label",materialDecorator:"circle",other:"sv_q_radiogroup_other"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text"},text:"form-control",expression:"form-control",file:{root:"form-group is-fileinput sv_q_file",placeholderInput:"",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input"},saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};n.b.bootstrapmaterial=o},function(e,t,r){"use strict";r(105),r(106),r(107),r(108),r(109),r(110),r(111),r(112),r(113),r(114),r(115),r(116),r(117),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(127),r(128),r(129)},function(e,t,r){"use strict";var n=r(30),o=(r.n(n),r(5));r.d(t,"b",function(){return o.a});var i=r(29);r.d(t,"c",function(){return i.b}),r.d(t,"d",function(){return i.c}),r.d(t,"e",function(){return i.d}),r.d(t,"f",function(){return i.e}),r.d(t,"g",function(){return i.f}),r.d(t,"h",function(){return i.g}),r.d(t,"i",function(){return i.h}),r.d(t,"j",function(){return i.a});var a=r(11);r.d(t,"k",function(){return a.a});var s=r(4);r.d(t,"l",function(){return s.a}),r.d(t,"m",function(){return s.b}),r.d(t,"n",function(){return s.d}),r.d(t,"o",function(){return s.c});var u=r(15);r.d(t,"p",function(){return u.a});var l=r(34);r.d(t,"q",function(){return l.a});var c=r(37);r.d(t,"r",function(){return c.a});var p=r(10);r.d(t,"s",function(){return p.c}),r.d(t,"t",function(){return p.b}),r.d(t,"u",function(){return p.a}),r.d(t,"v",function(){return p.h});var h=r(35);r.d(t,"w",function(){return h.a});var d=r(14);r.d(t,"x",function(){return d.a});var f=r(9);r.d(t,"y",function(){return f.a}),r.d(t,"z",function(){return f.e}),r.d(t,"A",function(){return f.d});var g=r(1);r.d(t,"B",function(){return g.c}),r.d(t,"C",function(){return g.d}),r.d(t,"D",function(){return g.e}),r.d(t,"E",function(){return g.f}),r.d(t,"F",function(){return g.g}),r.d(t,"G",function(){return g.h}),r.d(t,"H",function(){return g.b}),r.d(t,"I",function(){return g.i}),r.d(t,"J",function(){return g.j}),r.d(t,"K",function(){return g.k});var m=r(16);r.d(t,"L",function(){return m.c}),r.d(t,"M",function(){return m.d}),r.d(t,"N",function(){return m.e}),r.d(t,"O",function(){return m.b}),r.d(t,"P",function(){return m.a});var y=r(47);r.d(t,"Q",function(){return y.b}),r.d(t,"R",function(){return y.a});var v=r(48);r.d(t,"S",function(){return v.b}),r.d(t,"T",function(){return v.a});var b=r(46);r.d(t,"U",function(){return b.a}),r.d(t,"V",function(){return b.c}),r.d(t,"W",function(){return b.b});var x=r(49);r.d(t,"X",function(){return x.a}),r.d(t,"Y",function(){return x.b});var C=r(19);r.d(t,"Z",function(){return C.b}),r.d(t,"_0",function(){return C.a}),r.d(t,"_1",function(){return C.c});var P=r(23);r.d(t,"_2",function(){return P.a});var V=r(8);r.d(t,"_3",function(){return V.a});var w=r(27);r.d(t,"_4",function(){return w.a});var k=r(42);r.d(t,"_5",function(){return k.a});var T=r(20);r.d(t,"_6",function(){return T.a}),r.d(t,"_7",function(){return T.b});var S=r(40);r.d(t,"_8",function(){return S.a});var q=r(41);r.d(t,"_9",function(){return q.a});var R=r(25);r.d(t,"_10",function(){return R.a});var O=r(3);r.d(t,"_11",function(){return O.a}),r.d(t,"_12",function(){return O.b});var E=r(44);r.d(t,"_13",function(){return E.a});var I=r(45);r.d(t,"_14",function(){return I.a});var L=r(51);r.d(t,"_15",function(){return L.a});var _=r(52);r.d(t,"_16",function(){return _.a});var j=r(43);r.d(t,"_17",function(){return j.a});var N=r(26);r.d(t,"_18",function(){return N.a});var D=r(39);r.d(t,"_19",function(){return D.a});var A=r(50);r.d(t,"_20",function(){return A.a}),r.d(t,"_21",function(){return A.b});var M=r(55);r.d(t,"_22",function(){return M.a});var z=r(28);r.d(t,"_23",function(){return z.a});var F=r(130);r.d(t,"_24",function(){return F.a}),r.d(t,"_25",function(){return F.b}),r.d(t,"_26",function(){return F.c}),r.d(t,"_27",function(){return F.d}),r.d(t,"_28",function(){return F.e});var B=r(54);r.d(t,"_29",function(){return B.a});var Q=r(17);r.d(t,"_30",function(){return Q.a});var H=r(36);r.d(t,"_31",function(){return H.a});var U=r(38);r.d(t,"_32",function(){return U.a});var J=r(2);r.d(t,"_33",function(){return J.a}),r.d(t,"_34",function(){return J.b});var $=r(24);r.d(t,"_35",function(){return $.b}),r.d(t,"_36",function(){return $.a});var W=r(53);r.d(t,"_37",function(){return W.a}),r.d(t,"a",function(){return G});var G;G="1.0.24"},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(54)),a=r(18);r.d(t,"a",function(){return u});var s=r(104),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;n.koExpanded=o.observable(!1),n.koExpandedCss=o.observable(n.getButtonCss());var i=n;return n.expandedChangedCallback=function(){i.koExpanded(i.isExpanded),i.koExpandedCss(i.getButtonCss())},n.showingChangedCallback=function(){i.doShowingChanged()},n.doExpand=function(){i.changeExpanded()},n}return n.b(t,e),t.prototype.createSurvey=function(e){return new a.a(e)},t.prototype.closeWindowOnComplete=function(){this.hide()},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue?this.templateValue:this.getDefaultTemplate()},set:function(e){this.templateValue=e},enumerable:!0,configurable:!0}),t.prototype.doShowingChanged=function(){this.isShowing?(this.windowElement.innerHTML=this.template,o.cleanNode(this.windowElement),o.applyBindings(this,this.windowElement),document.body.appendChild(this.windowElement),this.survey.render(t.surveyElementName)):(document.body.removeChild(this.windowElement),this.windowElement.innerHTML="")},t.prototype.getDefaultTemplate=function(){return s},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!0,configurable:!0}),t.prototype.changeExpanded=function(){this.expandcollapse(!this.isExpanded)},t.prototype.getButtonCss=function(){return this.koExpanded()?this.css.window.header.buttonCollapsed:this.css.window.header.buttonExpanded},t}(i.a)},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(39)),a=r(1),s=r(3),u=r(7);r.d(t,"a",function(){return c});var l=function(e){function t(t){var r=e.call(this,t)||this;r.question=t,r.koIndeterminate=o.observable(r.question.isIndeterminate),r.koCheckedValue=o.observable(r.question.checkedValue);var n=r;return r.koCheckedValue.subscribe(function(e){n.updateCheckedValue(e)}),r.question.koIndeterminate=r.koIndeterminate,r.question.koCheckedValue=r.koCheckedValue,r}return n.b(t,e),t.prototype.setkoValue=function(t){e.prototype.setkoValue.call(this,t),this.koIndeterminate(this.question.isIndeterminate),this.koCheckedValue()!=this.question.checkedValue&&this.koCheckedValue(this.question.checkedValue)},t.prototype.updateCheckedValue=function(e){this.question.checkedValue=e},t.prototype.isIndeterminate=function(){return!this.question.value&&!1!==this.question.value},t}(u.a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new l(r),r}return n.b(t,e),t.prototype.getItemCss=function(e,t){var r=this.koCheckedValue();return this.koCss().item+(r?" checked":"")},t}(i.a);a.b.metaData.overrideClassCreatore("boolean",function(){return new c("")}),s.a.Instance.registerQuestion("boolean",function(e){return new c(e)})},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(13)),a=r(1),s=r(3),u=r(40);r.d(t,"a",function(){return c});var l=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),t.prototype.createkoValue=function(){return this.question.value?o.observableArray(this.question.value):o.observableArray()},t.prototype.setkoValue=function(e){e?this.koValue([].concat(e)):this.koValue([])},t}(i.b),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new l(r),r}return n.b(t,e),t.prototype.getItemClass=function(e){var t=this.koValue()&&-1!==this.koValue().indexOf(e.value),r=this.cssClasses.item+(0===this.colCount?" sv_q_checkbox_inline":" sv-q-col-"+this.colCount);return t&&(r+=" checked"),r},t}(u.a);a.b.metaData.overrideClassCreatore("checkbox",function(){return new c("")}),s.a.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=s.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(3),a=r(41),s=r(7);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new s.a(r),r}return n.b(t,e),t}(a.a);o.b.metaData.overrideClassCreatore("comment",function(){return new u("")}),i.a.Instance.registerQuestion("comment",function(e){return new u(e)})},function(e,t,r){"use strict";var n=r(0),o=r(25),i=r(1),a=r(3),s=r(13);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new s.a(r),r}return n.b(t,e),t}(o.a);i.b.metaData.overrideClassCreatore("dropdown",function(){return new u("")}),a.a.Instance.registerQuestion("dropdown",function(e){var t=new u(e);return t.choices=a.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),o=r(42),i=r(1),a=r(7);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new a.a(r),r}return n.b(t,e),t}(o.a);i.b.metaData.overrideClassCreatore("empty",function(){return new s("")})},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(43)),a=r(1),s=r(3),u=r(7);r.d(t,"a",function(){return c});var l=function(e){function t(t){var r=e.call(this,t)||this;return r.question=t,r.koDisplayValue=o.observable(r.question.displayValue),r.question.koDisplayValue=r.koDisplayValue,r}return n.b(t,e),t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.koDisplayValue(this.question.displayValue)},t}(u.a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new l(r),r}return n.b(t,e),t}(i.a);a.b.metaData.overrideClassCreatore("expression",function(){return new c("")}),s.a.Instance.registerQuestion("expression",function(e){return new c(e)})},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(1)),a=r(3),s=r(44),u=r(7);r.d(t,"a",function(){return c});var l=function(e){function t(t){var r=e.call(this,t)||this;r.koState=o.observable("empty"),r.koHasValue=o.computed(function(){return"loaded"===r.koState()}),r.koData=o.computed(function(){return r.koHasValue()?r.question.previewValue:[]}),r.koInputTitle=o.observable();var n=r;r.question.koData=r.koData,r.question.koHasValue=r.koHasValue,r.question.koInputTitle=r.koInputTitle;var i=function(e){r.koState(e),r.koInputTitle(r.question.inputTitle)};return r.question.onStateChanged.add(function(e,t){i(t.state)}),r.question.dochange=function(e,t){var r=t.target||t.srcElement;n.onChange(r)},r.question.doclean=function(e,t){var n=t.target||t.srcElement,o=n.parentElement.querySelectorAll("input")[0];r.question.clear(),o.value=""},r}return n.b(t,e),t.prototype.updateValue=function(t){e.prototype.updateValue.call(this,t)},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],r=0;r<e.files.length;r++)t.push(e.files[r]);this.question.loadFiles(t)}},t}(u.a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new l(r),r}return n.b(t,e),t}(s.a);i.b.metaData.overrideClassCreatore("file",function(){return new c("")}),a.a.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(3),a=r(22),s=r(45);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new a.a(r),r}return n.b(t,e),t}(s.a);o.b.metaData.overrideClassCreatore("html",function(){return new u("")}),i.a.Instance.registerQuestion("html",function(e){return new u(e)})},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(46)),a=r(7),s=r(1),u=r(3);r.d(t,"a",function(){return l}),r.d(t,"b",function(){return c});var l=function(e){function t(t,r,n,i){var a=e.call(this,t,r,n,i)||this;a.fullName=r,a.isValueUpdating=!1,a.koValue=o.observable(a.value);var s=a;return a.koValue.subscribe(function(e){s.isValueUpdating,s.value=e}),a.koCellClick=function(e){s.koValue(e.value)},a}return n.b(t,e),t.prototype.onValueChanged=function(){this.isValueUpdating=!0,this.koValue(this.value),this.isValueUpdating=!1},t}(i.a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new a.a(r),r}return n.b(t,e),t.prototype.createMatrixRow=function(e,t,r){return new l(e,t,this,r)},t.prototype.getItemCss=function(e,t){var r=e.koValue()==t.value,n=this.hasCellText?this.cssClasses.cellTextSelected:"checked";return(this.hasCellText?this.koCss().cellText:this.koCss().label)+(r?" "+n:"")},t}(i.b);s.b.metaData.overrideClassCreatore("matrix",function(){return new c("")}),u.a.Instance.registerQuestion("matrix",function(e){var t=new c(e);return t.rows=u.a.DefaultRows,t.columns=u.a.DefaultColums,t})},function(e,t,r){"use strict";var n=r(0),o=r(1),i=r(3),a=r(31),s=r(48),u=r(16);r.d(t,"a",function(){return l}),r.d(t,"b",function(){return c});var l=function(e){function t(t){var r=e.call(this,t)||this,n=r;return r.question.rowCountChangedCallback=function(){n.onRowCountChanged()},r}return n.b(t,e),t.prototype.hasRowText=function(){return!1},t.prototype.isAddRowTop=function(){return this.question.isAddRowOnTop},t.prototype.isAddRowBottom=function(){return this.question.isAddRowOnBottom},t.prototype.canRemoveRow=function(){return!this.question.isReadOnly&&this.question.canRemoveRow},t.prototype.onUpdateCells=function(){var e=this.question.generatedVisibleRows,t=this.question.columns;e&&e.length>0&&t&&t.length>0&&this.onColumnChanged()},t.prototype.addRow=function(){this.question.addRow()},t.prototype.removeRow=function(e){var t=this.question.visibleRows,r=t.indexOf(e);r>-1&&this.question.removeRowUI(r)},t}(a.b),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new l(r),r}return n.b(t,e),t}(s.a);o.b.metaData.overrideClassCreatore("matrixdynamic",function(){return new c("")}),i.a.Instance.registerQuestion("matrixdynamic",function(e){var t=new c(e);return t.choices=[1,2,3,4,5],t.rowCount=2,u.a.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(49)),a=r(7),s=r(32),u=r(1),l=r(3);r.d(t,"a",function(){return c}),r.d(t,"b",function(){return p}),r.d(t,"c",function(){return h});var c=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;n.name=t,n.isKOValueUpdating=!1,n.koValue=o.observable(n.value);var i=n;return n.koValue.subscribe(function(e){i.isKOValueUpdating||(i.value=e)}),n}return n.b(t,e),t.prototype.createEditor=function(e){return new s.a(e)},t.prototype.onValueChanged=function(e){this.isKOValueUpdating=!0,this.koValue(e),this.isKOValueUpdating=!1},t}(i.a),p=function(e){function t(t){var r=e.call(this,t)||this;r.koRows=o.observableArray(r.question.getRows()),r.question.koRows=r.koRows,r.onColCountChanged();var n=r;return r.question.colCountChangedCallback=function(){n.onColCountChanged()},r}return n.b(t,e),t.prototype.onColCountChanged=function(){this.koRows(this.question.getRows())},t}(a.a),h=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new p(r),r}return n.b(t,e),t.prototype.createTextItem=function(e,t){return new c(e,t)},t}(i.b);u.b.metaData.overrideClassCreatore("multipletextitem",function(){return new c("")}),u.b.metaData.overrideClassCreatore("multipletext",function(){return new h("")}),l.a.Instance.registerQuestion("multipletext",function(e){var t=new h(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(4)),a=r(1),s=r(3),u=r(7),l=r(50),c=r(21);r.d(t,"a",function(){return h});var p=function(e){function t(t){var r=e.call(this,t)||this;r.koRecalc=o.observable(0),r.koPanels=o.pureComputed(function(){return this.koRecalc(),this.question.panels},r),r.question.koPanels=r.koPanels;var n=r;return r.koAddPanelClick=function(){n.addPanel()},r.koRemovePanelClick=function(e){n.removePanel(e)},r.koPrevPanelClick=function(){n.question.currentIndex--},r.koNextPanelClick=function(){n.question.currentIndex++},r.koCanAddPanel=o.pureComputed(function(){return n.koRecalc(),n.question.canAddPanel}),r.koCanRemovePanel=o.pureComputed(function(){return n.koRecalc(),n.question.canRemovePanel}),r.koIsPrevButton=o.pureComputed(function(){return n.koRecalc(),n.question.isPrevButtonShowing}),r.koIsNextButton=o.pureComputed(function(){return n.koRecalc(),n.question.isNextButtonShowing}),r.koIsRange=o.pureComputed(function(){return n.koRecalc(),n.question.isRangeShowing}),r.koPanel=o.pureComputed(function(){return n.koRecalc(),n.question.currentPanel}),r.koIsList=o.pureComputed(function(){return n.koRecalc(),n.question.isRenderModeList}),r.koIsProgressTop=o.pureComputed(function(){return n.koRecalc(),n.question.isProgressTopShowing}),r.koIsProgressBottom=o.pureComputed(function(){return n.koRecalc(),n.question.isProgressBottomShowing}),r.koRangeValue=o.observable(n.question.currentIndex),r.koRangeValue.subscribe(function(e){n.question.currentIndex=e}),r.koRangeMax=o.pureComputed(function(){return n.koRecalc(),n.question.panelCount-1}),r.question.koAddPanelClick=r.koAddPanelClick,r.question.koRemovePanelClick=r.koRemovePanelClick,r.question.koPrevPanelClick=r.koPrevPanelClick,r.question.koNextPanelClick=r.koNextPanelClick,r.question.koCanAddPanel=r.koCanAddPanel,r.question.koCanRemovePanel=r.koCanRemovePanel,r.question.koPanel=r.koPanel,r.question.koIsList=r.koIsList,r.question.koIsProgressTop=r.koIsProgressTop,r.question.koIsProgressBottom=r.koIsProgressBottom,r.question.koIsPrevButton=r.koIsPrevButton,r.question.koIsNextButton=r.koIsNextButton,r.question.koIsRange=r.koIsRange,r.question.koRangeValue=r.koRangeValue,r.question.koRangeMax=r.koRangeMax,r.question.koPanelAfterRender=function(e,t){n.panelAfterRender(e,t)},r.question.panelCountChangedCallback=function(){n.onPanelCountChanged()},r.question.renderModeChangedCallback=function(){n.onRenderModeChanged()},r.question.currentIndexChangedCallback=function(){n.onCurrentIndexChanged()},r}return n.b(t,e),t.prototype.onPanelCountChanged=function(){this.onCurrentIndexChanged()},t.prototype.onRenderModeChanged=function(){this.onCurrentIndexChanged()},t.prototype.onCurrentIndexChanged=function(){this.koRecalc(this.koRecalc()+1),this.koRangeValue(this.question.currentIndex)},t.prototype.addPanel=function(){this.question.addPanelUI()},t.prototype.removePanel=function(e){var t=this.question;t.isRenderModeList||(e=t.currentPanel),t.removePanelUI(e)},t.prototype.panelAfterRender=function(e,t){if(this.question&&this.question.survey){var r=i.c.GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,r)}},t}(u.a),h=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new p(r),r}return n.b(t,e),t.prototype.createNewPanelObject=function(){return new c.c},t}(l.a);a.b.metaData.overrideClassCreatore("paneldynamic",function(){return new h("")}),s.a.Instance.registerQuestion("paneldynamic",function(e){return new h(e)})},function(e,t,r){"use strict";var n=r(0),o=r(51),i=r(1),a=r(3),s=r(13);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new s.b(r),r}return n.b(t,e),t.prototype.getItemClass=function(e){var t=this.cssClasses.item+(0===this.colCount?" sv_q_radiogroup_inline":" sv-q-col-"+this.colCount);return e.value===this.koValue()&&(t+=" checked"),t},t}(o.a);i.b.metaData.overrideClassCreatore("radiogroup",function(){return new u("")}),a.a.Instance.registerQuestion("radiogroup",function(e){var t=new u(e);return t.choices=a.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),o=r(6),i=(r.n(o),r(7)),a=r(52),s=r(1),u=r(3);r.d(t,"a",function(){return c});var l=function(e){function t(t){var r=e.call(this,t)||this;r.koVisibleRateValues=o.observableArray(r.getValues()),r.question.koVisibleRateValues=r.koVisibleRateValues;var n=r;return r.koChange=function(e){n.koValue(e.itemValue)},r.question.koChange=r.koChange,r.question.rateValuesChangedCallback=function(){n.onRateValuesChanged()},r.question.koGetCss=function(e){var t=n.question.cssClasses.item,r=n.question.cssClasses.selected;return n.question.koValue()==e.value?t+" "+r:t},r}return n.b(t,e),t.prototype.onRateValuesChanged=function(){this.koVisibleRateValues(this.getValues())},t.prototype.getValues=function(){return this.question.visibleRateValues},t}(i.a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,new l(r),r}return n.b(t,e),t}(a.a);s.b.metaData.overrideClassCreatore("rating",function(){return new c("")}),u.a.Instance.registerQuestion("rating",function(e){return new c(e)})},function(e,t){e.exports='<script type="text/html" id="survey-comment">\r\n \x3c!-- ko ifnot: question.koIsReadOnly --\x3e\r\n <input type="text" data-bind="value: $data.question.koComment, visible: $data.visible, css: question.koCss().comment, attr: { maxLength: question.getOthersMaxLength(), \'aria-label\': !!question.locTitle && question.locTitle.renderedHtml }"\r\n />\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koIsReadOnly --\x3e\r\n <div data-bind="text: $data.question.koComment, visible: $data.visible, css: question.koCss().comment"></div>\r\n \x3c!-- /ko --\x3e\r\n<\/script>'},function(e,t){e.exports='\x3c!-- ko template: { name: \'survey-content\', afterRender: koEventAfterRender } --\x3e\r\n\x3c!-- /ko --\x3e\r\n<script type="text/html" id="survey-content">\r\n <div data-bind="css: css.root, afterRender: koEventAfterRender">\r\n <div class="sv_custom_header"></div>\r\n <div class="sv_container">\r\n <div data-bind="css: css.header, visible: (title.length > 0) && showTitle && koState() == \'running\'">\r\n <h3>\r\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </h3>\r\n </div>\r\n \x3c!-- ko if: koState() == "starting" --\x3e\r\n <div data-bind="css: css.body">\r\n <div data-bind="attr: { id: startedPage.id }, template: { name: \'survey-page\', data: startedPage, afterRender: koAfterRenderPage }"></div>\r\n <div data-bind="visible: koIsNavigationButtonsShowing, css: css.footer">\r\n <input type="button" data-bind="value: startSurveyText, click: start, css: cssNavigationStart" />\r\n </div>\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: koState() == "running" --\x3e\r\n <div data-bind="css: css.body">\r\n \x3c!-- ko if: isTimerPanelShowingOnTop --\x3e\r\n \x3c!-- ko template: { name: \'survey-timerpanel\'} --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n <div data-bind="visible: showProgressBar ==\'top\', template: \'survey-progress\'"></div>\r\n <div data-bind="attr: { id: koCurrentPage().id }, template: { name: \'survey-page\', data: koCurrentPage, afterRender: koAfterRenderPage }"></div>\r\n <div style="margin-top:1em" data-bind="visible: showProgressBar ==\'bottom\', template: \'survey-progress\'"></div>\r\n \x3c!-- ko if: isTimerPanelShowingOnBottom --\x3e\r\n \x3c!-- ko template: { name: \'survey-timerpanel\'} --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n <div data-bind="visible: koIsNavigationButtonsShowing, css: css.footer">\r\n <input type="button" data-bind="value: pagePrevText, click: prevPage, visible: !koIsFirstPage() && isShowPrevButton, css: cssNavigationPrev"\r\n />\r\n <input type="button" data-bind="value: pageNextText, click: nextPage, visible: !koIsLastPage(), css: cssNavigationNext" />\r\n <input type="button" data-bind="value: completeText, click: completeLastPage, visible: koIsLastPage() && isEditMode, css: cssNavigationComplete"\r\n />\r\n </div>\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: koState() == "completed" && showCompletedPage --\x3e\r\n <div data-bind="html: processedCompletedHtml, css: completedCss"></div>\r\n <div data-bind="visible: koCompletedState() != \'\', css: css.saveData.root">\r\n <div data-bind="css: koCompletedStateCss">\r\n <span data-bind="text:koCompletedStateText"></span>\r\n <input type="button" data-bind="visible: koCompletedState() == \'error\', value: getLocString(\'saveAgainButton\'), click: doComplete, css: css.saveData.saveAgainButton"\r\n />\r\n </div>\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: koState() == "completedbefore" --\x3e\r\n <div data-bind="html: processedCompletedBeforeHtml, css: css.body"></div>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: koState() == "loading" --\x3e\r\n <div data-bind="html: processedLoadingHtml, css: css.body"></div>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: koState() == "empty" --\x3e\r\n <div data-bind="text:emptySurveyText, css: css.body"></div>\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-matrixcell">\r\n <td data-bind="css: $context.question.koCss().itemValue">\r\n <div data-bind="visible: cell.question.koVisible">\r\n \x3c!-- ko template: { name: \'survey-question-errors\', data: cell.question } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko template: { name: question.koTemplateName(), data: cell.question, as: \'question\' } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n </td>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-page">\r\n <div data-bind="css: data.css.page.root">\r\n <h4 data-bind="visible: (processedTitle.length > 0) && data.showPageTitles, css: data.css.pageTitle">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </h4>\r\n <div data-bind="visible: hasDescription, css: data.css.pageDescription">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-panel">\r\n <div data-bind="style:{ width: koRenderWidth }, attr: {id: id}, css: cssClasses.panel.container">\r\n <h4 data-bind="visible: (processedTitle.length > 0), css: $data.getTitleStyle(), click: doExpand">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\r\n \x3c!-- /ko --\x3e\r\n <span class="sv_panel_icon" data-bind="visible: koIsCollapsed() || koIsExpanded(), css: {sv_expanded: !koIsCollapsed()}"></span>\r\n </h4>\r\n <div data-bind="visible: hasDescription, css: cssClasses.panel.description">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n \x3c!-- ko template: { name: \'survey-question-errors\', data: $data } --\x3e\r\n \x3c!-- /ko --\x3e\r\n <div data-bind="visible: !koIsCollapsed(), style: { paddingLeft: koInnerMargin }">\r\n \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-progress">\r\n <div data-bind="css: css.progress">\r\n <div data-bind="css: css.progressBar, style:{width: koProgress() + \'%\'}"\r\n role="progressbar" aria-valuemin="0" aria-valuemax="100">\r\n <span data-bind="text:koProgressText"></span>\r\n </div>\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-boolean">\r\n <div data-bind="css: question.koCss().root">\r\n <label data-bind="css: question.getItemCss()">\r\n <input type="checkbox" data-bind="attr: {name: question.name, id: question.inputId, \'aria-label\': question.locTitle.renderedHtml}, checked: question.koCheckedValue, surveyProp: {indeterminate: question.koIndeterminate}, enable: !question.koIsReadOnly()"\r\n />\r\n <span data-bind="css: question.koCss().materialDecorator">\r\n <span class="check"></span>\r\n </span>\r\n <span data-bind="css: question.koCss().label">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locDisplayLabel } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </span>\r\n </label>\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-checkbox">\r\n <fieldset data-bind="css: question.koCss().root">\r\n \x3c!-- ko foreach: { data: question.koVisibleChoices, as: \'item\', afterRender: question.koAfterRender} --\x3e\r\n <div data-bind="css: question.getItemClass(item)">\r\n <label data-bind="css: question.koCss().label">\r\n <input type="checkbox" data-bind="attr: {name: question.name, value: item.value, id: ($index() == 0) ? question.inputId : \'\', \'aria-label\': question.locTitle.renderedHtml }, checked: question.koValue, enable: !question.koIsReadOnly(), css: question.koCss().itemControl"\r\n />\r\n <span data-bind="css: question.koCss().materialDecorator">\r\n <span class="check"></span>\r\n </span>\r\n <span data-bind="css: question.koCss().controlLabel">\r\n \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </span>\r\n </label>\r\n \x3c!-- ko if: question.hasOther && ($index() == question.koVisibleChoices().length-1) --\x3e\r\n <div data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.koOtherVisible } }, css: question.koCss().other"></div>\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n <legend style="display: none;" data-bind="text: question.locTitle.renderedHtml"></legend>\r\n </fieldset>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-comment">\r\n <textarea type="text" data-bind="attr: {\'readonly\': question.koIsReadOnly(), maxLength: question.getMaxLength(), cols: question.cols, rows: question.rows, id: question.inputId, placeholder: question.placeHolder, \'aria-label\': question.locTitle.renderedHtml}, value:question.koValue, css: question.koCss().root"></textarea>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-dropdown">\r\n \x3c!-- ko ifnot: question.koIsReadOnly --\x3e\r\n <div data-bind="css: question.koCss().selectWrapper">\r\n <select data-bind="attr: {id: question.inputId, \'aria-label\': question.locTitle.renderedHtml}, options: question.koVisibleChoices, optionsText: \'text\', optionsValue: \'value\', value: question.koValue, optionsCaption: question.optionsCaption, css: question.koCss().control"></select>\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koIsReadOnly --\x3e\r\n <div data-bind="text: question.hasOther && question.isOtherSelected ? question.otherText : question.displayValue, css: question.koCss().control"></div>\r\n \x3c!-- /ko --\x3e\r\n <div data-bind="visible: question.hasOther">\r\n <div data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.koOtherVisible } }, css: question.koCss().other"></div>\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-empty">\r\n<div></div>\r\n<\/script>\r\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-errors">\r\n <div role="alert" data-bind="visible: koErrors().length > 0, foreach: { data: koErrors, as: \'error\'}, css: question.koCss().error.root">\r\n <div>\r\n <span aria-hidden="true" data-bind="css: question.koCss().error.icon"></span>\r\n <span data-bind="text:error.getText(), css: question.koCss().error.item"></span>\r\n </div>\r\n </div>\r\n<\/script>\r\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-expression">\r\n <div data-bind="text:question.koDisplayValue, css: question.koCss().root"></div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-file">\r\n <div data-bind="css: question.cssClasses.root">\r\n \x3c!-- ko ifnot: question.koIsReadOnly --\x3e\r\n <input type="file" data-bind="css: question.cssClasses.fileInput, style: { color: koHasValue() ? \'inherit\' : \'transparent\' }, attr: {id: question.inputId, \'aria-label\': question.locTitle.renderedHtml, multiple: question.allowMultiple ? \'multiple\' : undefined, title: koInputTitle }, event: {change: question.dochange}">\r\n \x3c!-- ko if: question.koHasValue --\x3e\r\n <button data-bind="css: question.cssClasses.removeButton, click: question.doclean, text: question.cleanButtonCaption"></button>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koIsReadOnly --\x3e\r\n <input type="text" readonly data-bind="css: \'form-control \' + question.cssClasses.placeholderInput, attr: { placeholder: question.title }"\r\n />\r\n \x3c!-- /ko --\x3e\r\n <div data-bind="foreach: question.koData, visible: question.koHasValue">\r\n <img data-bind="attr: { src: $data, height: question.imageHeight, width: question.imageWidth }, visible: question.showPreview, css: question.cssClasses.preview"\r\n alt="File preview">\r\n </div>\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-html">\r\n <div data-bind="html: question.processedHtml"></div>\r\n<\/script>\r\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-matrix">\r\n <fieldset>\r\n <table data-bind="css: question.koCss().root">\r\n <thead>\r\n <tr>\r\n <td data-bind="visible: question.hasRows"></td>\r\n \x3c!-- ko foreach: question.columns --\x3e\r\n <th>\r\n \x3c!-- ko template: { name: \'survey-string\', data: locText } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </th>\r\n \x3c!-- /ko --\x3e\r\n </tr>\r\n </thead>\r\n <tbody>\r\n \x3c!-- ko foreach: { data: question.visibleRows, as: \'row\' } --\x3e\r\n <tr data-bind="css: question.koCss().row">\r\n <td data-bind="visible: question.hasRows">\r\n \x3c!-- ko template: { name: \'survey-string\', data: row.locText } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </td>\r\n \x3c!-- ko foreach: question.columns --\x3e\r\n \x3c!-- ko if: question.hasCellText --\x3e\r\n <td data-bind="css: question.getItemCss(row, $data), click: function() { row.koCellClick($data); }">\r\n \x3c!-- ko template: { name: \'survey-string\', data: question.getCellDisplayLocText(row.name, $data) } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </td>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: !question.hasCellText --\x3e\r\n <td>\r\n <label data-bind="css: question.getItemCss(row, $data)">\r\n <input type="radio" data-bind="css: question.koCss().itemValue, attr: {name: row.fullName, \'aria-label\': question.locTitle.renderedHtml, value: $data.value, id: ($index() == 0) && ($parentContext.$index() == 0) ? question.inputId : \'\'}, checked: row.koValue, enable: !question.koIsReadOnly()"\r\n />\r\n <span class="circle"></span>\r\n <span class="check"></span>\r\n <span style="display: none" data-bind="text: $data.locText.text"></span>\r\n </label>\r\n </td>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n </tr>\r\n \x3c!-- /ko --\x3e\r\n </tbody>\r\n </table>\r\n <legend style="display: none;" data-bind="text: question.locTitle.renderedHtml"></legend>\r\n </fieldset>\r\n<\/script>\r\n<script type="text/html" id="survey-text">\r\n <span data-bind="text:$data.renderedHtml"></span>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-matrixdynamic">\r\n <div data-bind="visible: question.koIsAddRowOnTop(), css: question.koCss().footer">\r\n <input type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd, value: question.addRowText" />\r\n </div>\r\n <div data-bind="style: {overflowX: question.horizontalScroll? \'scroll\': \'\'}">\r\n <table data-bind="visible: question.koIsHorizontalColumnsLocation, css: question.koCss().root">\r\n <thead data-bind="visible: question.showHeader">\r\n <tr>\r\n \x3c!-- ko if: question.hasRowText --\x3e<td></td>\x3c!-- /ko --\x3e\r\n \x3c!-- ko foreach: question.columns --\x3e\r\n <th data-bind="style: { minWidth: question.getColumnWidth($data) }">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </th>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koCanRemoveRow --\x3e\r\n <td></td>\r\n \x3c!-- /ko --\x3e\r\n </tr>\r\n </thead>\r\n <tbody>\r\n \x3c!-- ko foreach: { data: question.koRows, as: \'row\' } --\x3e\r\n <tr>\r\n \x3c!-- ko if: question.hasRowText --\x3e<td>\x3c!-- ko template: { name: \'survey-string\', data: row.locText } --\x3e\x3c!-- /ko --\x3e</td>\x3c!-- /ko --\x3e\r\n \x3c!-- ko foreach: row.cells--\x3e\r\n \x3c!-- ko template: { name: \'survey-matrixcell\', data: $data, as: "cell", afterRender: $data.data.koCellAfterRender } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koCanRemoveRow --\x3e\r\n <td>\r\n <input type="button" data-bind="click:question.koRemoveRowClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.removeRowText"\r\n />\r\n </td>\r\n \x3c!-- /ko --\x3e\r\n </tr>\r\n \x3c!-- /ko --\x3e\r\n </tbody>\r\n </table>\r\n <table data-bind="visible: !question.koIsHorizontalColumnsLocation(), css: question.koCss().root">\r\n \x3c!-- ko if: question.hasRowText --\x3e\r\n <thead>\r\n <tr>\r\n <th data-bind="visible: question.showHeader"></th>\r\n \x3c!-- ko foreach: { data: question.koRows, as: \'row\' } --\x3e\r\n <th>\x3c!-- ko template: { name: \'survey-string\', data: row.locText } --\x3e\x3c!-- /ko --\x3e</th>\r\n \x3c!-- /ko --\x3e \r\n </tr>\r\n </thead>\r\n \x3c!-- /ko --\x3e\r\n <tbody>\r\n \x3c!-- ko foreach: { data: question.columns, as: \'column\' } --\x3e\r\n <tr>\r\n <th data-bind="visible: question.showHeader, style: { minWidth: question.getColumnWidth($data) }">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </th>\r\n \x3c!-- ko foreach: { data: question.koRows, as: \'row\' } --\x3e\r\n \x3c!-- ko template: { name: \'survey-matrixcell\', data: row.cells[column.index], as: "cell", afterRender: row.data.koCellAfterRender } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n </tr>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koCanRemoveRow --\x3e\r\n <tr>\r\n <td data-bind="visible: question.showHeader">\r\n </td>\r\n \x3c!-- ko foreach: { data: question.koRows, as: \'row\' } --\x3e\r\n <td>\r\n <input type="button" data-bind="click:question.koRemoveRowClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.removeRowText"/>\r\n </td>\r\n \x3c!-- /ko --\x3e\r\n </tr>\r\n \x3c!-- /ko --\x3e\r\n </tbody>\r\n </table>\r\n </div>\r\n <div data-bind="visible: question.koIsAddRowOnBottom(), css: question.koCss().footer">\r\n <input type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd, value: question.addRowText" />\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-multipletext">\r\n <table data-bind="css: question.koCss().root, foreach: { data: question.koRows, as: \'row\' }">\r\n <tr data-bind="foreach: { data: row, as: \'item\' }, css: question.koCss().row">\r\n <td data-bind="css: question.koCss().itemTitle">\x3c!-- ko template: { name: \'survey-string\', data: item.locTitle } --\x3e\x3c!-- /ko --\x3e</td>\r\n <td>\r\n \x3c!-- ko ifnot: question.koIsReadOnly --\x3e\r\n <input data-bind="attr: {id: item.id, type: item.inputType, maxLength: item.getMaxLength(), size: question.itemSize, id: ($index() == 0) ? question.inputId : \'\', placeholder: item.placeHolder, \'aria-label\': question.locTitle.renderedHtml}, value: item.koValue, css: question.koCss().itemValue" />\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koIsReadOnly --\x3e\r\n <div data-bind="attr: {size: question.itemSize}, text: item.koValue, css: question.koCss().itemValue"></div>\r\n \x3c!-- /ko --\x3e\r\n </td>\r\n </tr>\r\n </table>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic-navigator">\r\n <input type="range" min="0" style="width:25%;float:left;margin:5px" data-bind="visible: koIsRange, value: question.koRangeValue, attr: {max: question.koRangeMax}" />\r\n <input type="button" style="float:left;margin:5px" data-bind="visible: question.koIsPrevButton, click:question.koPrevPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonPrev, value: question.panelPrevText" />\r\n <input type="button" style="float:left;margin:5px" data-bind="visible: question.koIsNextButton, click:question.koNextPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonNext, value: question.panelNextText" />\r\n <input type="button" style="float:left;margin:5px" data-bind="visible:question.koCanAddPanel, click:question.koAddPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd, value: question.panelAddText" />\r\n<\/script>\r\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic">\r\n <div data-bind="css: question.koCss().root">\r\n \x3c!-- ko if: question.koIsList() --\x3e\r\n \x3c!-- ko foreach: { data: question.koPanels } --\x3e\r\n \x3c!-- ko template: { name: \'survey-panel\', data: $data, as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\r\n \x3c!-- /ko --\x3e\r\n <input type="button" style="margin-top:5px" data-bind="visible: question.koCanRemovePanel, click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\r\n />\r\n <hr/>\r\n \x3c!-- /ko --\x3e\r\n <input type="button" data-bind="visible:question.koCanAddPanel, click:question.koAddPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd, value: question.panelAddText"\r\n />\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko ifnot: question.koIsList() --\x3e\r\n <div data-bind="visible:question.koIsProgressTop">\r\n \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n \x3c!-- ko template: { name: \'survey-panel\', data: question.koPanel(), as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\r\n \x3c!-- /ko --\x3e\r\n <input type="button" style="margin-top:5px" data-bind="visible: question.koCanRemovePanel, click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\r\n />\r\n <div data-bind="visible:question.koIsProgressBottom">\r\n \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-radiogroup">\r\n <fieldset data-bind="css: question.koCss().root">\r\n \x3c!-- ko foreach: { data: question.koVisibleChoices, as: \'item\', afterRender: question.koAfterRender} --\x3e\r\n <div data-bind="css: question.getItemClass(item)">\r\n <label data-bind="css: question.koCss().label">\r\n <input type="radio" data-bind="attr: {name: question.name + \'_\' + question.id, value: item.value, id: ($index() == 0) ? question.inputId : \'\', \'aria-label\': question.locTitle.renderedHtml}, checked: question.koValue, enable: !question.koIsReadOnly(), css: question.koCss().itemControl"\r\n />\r\n <span data-bind="css: question.koCss().materialDecorator"></span>\r\n <span class="check"></span>\r\n <span data-bind="css: question.koCss().controlLabel">\r\n \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </span>\r\n </label>\r\n \x3c!-- ko if: question.hasOther && ($index() == question.koVisibleChoices().length-1) --\x3e\r\n <div data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.koOtherVisible}}, css: question.koCss().other"></div>\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n <legend style="display: none;" data-bind="text: question.locTitle.renderedHtml"></legend>\r\n </fieldset>\r\n<\/script>\r\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-rating">\r\n <div data-bind="css: question.koCss().root">\r\n \x3c!-- ko foreach: question.koVisibleRateValues --\x3e\r\n <label data-bind="css: question.koGetCss($data)">\r\n <input type="radio" style="display: none;" data-bind="attr: {name: question.name, id: question.name + $index(), value: $data.value, \'aria-label\': $data.locText.text}, event: { change: question.koChange}, enable: !question.koIsReadOnly()"\r\n />\r\n \x3c!-- ko if: $index() == 0 --\x3e\r\n <span data-bind="css: question.koCss().minText">\r\n \x3c!-- ko template: { name: \'survey-string\', data: question.locMinRateDescription } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </span>\r\n \x3c!-- /ko --\x3e\r\n\r\n <span data-bind="css: question.koCss().itemText">\r\n \x3c!-- ko template: { name: \'survey-string\', data: $data.locText } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </span>\r\n\r\n \x3c!-- ko if: $index() == (question.koVisibleRateValues().length-1) --\x3e\r\n <span data-bind="css: question.koCss().maxText">\r\n \x3c!-- ko template: { name: \'survey-string\', data: question.locMaxRateDescription } --\x3e\r\n \x3c!-- /ko --\x3e\r\n </span>\r\n \x3c!-- /ko --\x3e\r\n </label>\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n <div data-bind="visible: question.hasOther">\r\n <div data-bind="template: { name: \'survey-comment\', data: {\'question\': question } }"></div>\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-text">\r\n \x3c!-- ko ifnot: question.koIsReadOnly --\x3e\r\n <input data-bind="attr: {type: question.inputType, size: question.size, id: question.inputId, placeholder: question.inputType === \'range\' ? undefined : question.placeHolder, maxLength: question.getMaxLength(), \'aria-label\': question.locTitle.renderedHtml}, value:question.koValue, css: question.koCss().root"/>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.koIsReadOnly --\x3e\r\n <div data-bind="text:question.koValue, css: question.koCss().root"></div>\r\n \x3c!-- /ko --\x3e\r\n<\/script>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question\">\r\n <div data-bind=\"css: question.koRootClass, style: { paddingLeft: question.koPaddingLeft, paddingRight: question.koPaddingRight, width: question.koRenderWidth }, attr: {id: question.id}\">\r\n <div data-bind=\"css: {'title-left': question.hasTitleOnLeft}\">\r\n \x3c!-- ko if: question.hasTitleOnLeftTop --\x3e\r\n \x3c!--ko template: { name: 'survey-question-title', data: question } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n\r\n <div data-bind=\"css: {'content-left': question.hasTitleOnLeft}\">\r\n \x3c!-- ko if: question.errorLocation == 'top' --\x3e\r\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko template: { name: question.koTemplateName(), data: question, afterRender: question.koQuestionAfterRender } --\x3e\r\n \x3c!-- /ko --\x3e\r\n <div data-bind=\"visible: question.hasComment\">\r\n <div data-bind=\"text:question.commentText\"></div>\r\n <div data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': true } }\"></div>\r\n </div>\r\n \x3c!-- ko if: question.errorLocation == 'bottom' --\x3e\r\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: question.hasTitleOnBottom --\x3e\r\n \x3c!--ko template: { name: 'survey-question-title', data: question } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n </div>\r\n<\/script>"},function(e,t){e.exports='<script type="text/html" id="survey-question-title">\r\n <h5 data-bind="css: koCss().title">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e\r\n </h5>\r\n <div data-bind="visible: hasDescription, css: koCss().description">\r\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e\r\n </div>\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-rows">\r\n \x3c!-- ko foreach: { data: koRows, as: \'row\'} --\x3e\r\n \x3c!-- ko if: row.koVisible --\x3e\r\n <div data-bind="css: panel.cssClasses.row">\r\n \x3c!-- ko foreach: { data: row.koElements, as: \'question\' , afterRender: row.koAfterRender } --\x3e\r\n \x3c!-- ko if: question.koVisible --\x3e\r\n \x3c!-- ko template: { name: question.koElementType, data: question, afterRender: $parent.koElementAfterRender } --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n </div>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- /ko --\x3e\r\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-string">\r\n \x3c!-- ko ifnot: hasHtml --\x3e\r\n <span style="position: static;" data-bind="text: koRenderedHtml"></span>\r\n \x3c!-- /ko --\x3e\r\n \x3c!-- ko if: hasHtml --\x3e\r\n <span style="position: static;" data-bind="html: koRenderedHtml"></span>\r\n \x3c!-- /ko --\x3e\r\n<\/script>\r\n'},function(e,t){e.exports='<script type="text/html" id="survey-timerpanel">\r\n <div data-bind="text:koTimerInfoText"></div>\r\n<\/script>\r\n'},function(e,t,r){e.exports=r(76)+" "+r(75)+" "+r(78)+" "+r(79)+" "+r(80)+"\n"+r(100)+" "+r(101)+" "+r(102)+" "+r(77)+" "+r(98)+"\n"+r(99)+" "+r(82)+" "+r(83)+" "+r(84)+"\n"+r(86)+" "+r(88)+" "+r(89)+" "+r(90)+"\n"+r(91)+" "+r(94)+" "+r(93)+"\n"+r(92)+" "+r(95)+" "+r(96)+"\n"+r(97)+" "+r(81)+" "+r(85)+" "+r(87)},function(e,t){e.exports='<div style="position: fixed; bottom: 3px; right: 10px;" data-bind="css: css.window.root">\n <div data-bind="css: css.window.header.root">\n <span data-bind="click:doExpand" style="width: 100%; cursor: pointer;">\n <span style="padding-right:10px" data-bind="css: css.window.header.title, text: locTitle.koRenderedHtml"></span>\n <span aria-hidden="true" data-bind="css: koExpandedCss"></span>\n </span>\n </div>\n <div data-bind="visible:koExpanded, css: css.window.body">\n <div id="windowSurveyJS"></div>\n </div>\n</div>'},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"السابق",pageNextText:"التالي",completeText:"انهاء- تم",progressText:"{1} صفحة {0} من",otherItemText:"نص آخر",emptySurvey:"لا توجد صفحة مرئية أو سؤال في المسح",completingSurvey:"شكرا لك لاستكمال الاستبيان!",loadingSurvey:"...يتم تحميل الاستبيان",optionsCaption:"...اختر",requiredError:".يرجى الإجابة على السؤال",requiredInAllRowsError:"يرجى الإجابة على الأسئلة في جميع الصفوف",numericError:"يجب أن تكون القيمة الرقمية.",textMinLength:"الرجاء إدخال ما لا يقل عن {0} حرف",textMaxLength:"الرجاء إدخال أقل من {0} حرف",textMinMaxLength:"يرجى إدخال أكثر من {0} وأقل من {1} حرف",minRowCountError:"يرجى ملء ما لا يقل عن {0} الصفوف",minSelectError:"يرجى تحديد ما لا يقل عن {0} المتغيرات",maxSelectError:"يرجى تحديد ما لا يزيد عن {0} المتغيرات",numericMinMax:"و'{0}' يجب أن تكون مساوية أو أكثر من {1} ويساوي أو أقل من {2}ا",numericMin:"و'{0}' يجب أن تكون مساوية أو أكثر من {1}ا",numericMax:"و'{0}' يجب أن تكون مساوية أو أقل من {1}ا",invalidEmail:"رجاء قم بإدخال بريد الكتروني صحيح",urlRequestError:"طلب إرجاع خطأ '{0}'. {1}ا",urlGetChoicesError:"عاد طلب بيانات فارغة أو 'المسار' ممتلكات غير صحيحة ",exceedMaxSize:"وينبغي ألا يتجاوز حجم الملف {0}ا",otherRequiredError:"الرجاء إدخال قيمة أخرى",uploadingFile:"الملف الخاص بك تحميل. يرجى الانتظار عدة ثوان وحاول مرة أخرى",addRow:"اضافة صف",removeRow:"إزالة صف"};n.a.locales.ar=o,n.a.localeNames.ar="العربية"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Anterior",pageNextText:"Següent",completeText:"Complet",otherItemText:"Un altre (descrigui)",progressText:"Pàgina {0} de {1}",emptySurvey:"No hi ha cap pàgina visible o pregunta a l'enquesta.",completingSurvey:"Gràcies per completar l'enquesta!",loadingSurvey:"L'enquesta s'està carregant ...",optionsCaption:"Selecciona ...",requiredError:"Si us plau contesti la pregunta.",requiredInAllRowsError:"Si us plau contesti les preguntes de cada filera.",numericError:"L'estimació ha de ser numèrica.",textMinLength:"Si us plau entre almenys {0} símbols.",textMaxLength:"Si us plau entre menys de {0} símbols.",textMinMaxLength:"Si us plau entre més de {0} i menys de {1} símbols.",minRowCountError:"Si us plau ompli almenys {0} fileres.",minSelectError:"Si us plau seleccioni almenys {0} variants.",maxSelectError:"Si us plau seleccioni no més de {0} variants.",numericMinMax:"El '{0}' deu ser igual o més de {1} i igual o menys de {2}",numericMin:"El '{0}' ha de ser igual o més de {1}",numericMax:"El '{0}' ha de ser igual o menys de {1}",invalidEmail:"Si us plau afegiu un correu electrònic vàlid.",urlRequestError:"La sol·licitud va tornar error '{0}'. {1}",urlGetChoicesError:"La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta",exceedMaxSize:"La mida de l'arxiu no pot excedir {0}.",otherRequiredError:"Si us plau afegiu l'altra estimació.",uploadingFile:"El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.",addRow:"Afegiu una filera",removeRow:"Eliminar una filera",choices_firstItem:"primer article",choices_secondItem:"segon article",choices_thirdItem:"tercer article",matrix_column:"Columna",matrix_row:"Filera"};n.a.locales.ca=o,n.a.localeNames.ca="català"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Předchozí",pageNextText:"Další",completeText:"Hotovo",otherItemText:"Jiná odpověď (napište)",progressText:"Strana {0} z {1}",emptySurvey:"Průzkumu neobsahuje žádné otázky.",completingSurvey:"Děkujeme za vyplnění průzkumu!",loadingSurvey:"Probíhá načítání průzkumu...",optionsCaption:"Vyber...",requiredError:"Odpovězte prosím na otázku.",requiredInAllRowsError:"Odpovězte prosím na všechny otázky.",numericError:"V tomto poli lze zadat pouze čísla.",textMinLength:"Zadejte prosím alespoň {0} znaků.",textMaxLength:"Zadejte prosím méně než {0} znaků.",textMinMaxLength:"Zadejte prosím více než {0} a méně než {1} znaků.",minRowCountError:"Vyplňte prosím alespoň {0} řádků.",minSelectError:"Vyberte prosím alespoň {0} varianty.",maxSelectError:"Nevybírejte prosím více než {0} variant.",numericMinMax:"Odpověď '{0}' by mělo být větší nebo rovno {1} a menší nebo rovno {2}",numericMin:"Odpověď '{0}' by mělo být větší nebo rovno {1}",numericMax:"Odpověď '{0}' by mělo být menší nebo rovno {1}",invalidEmail:"Zadejte prosím platnou e-mailovou adresu.",urlRequestError:"Požadavek vrátil chybu '{0}'. {1}",urlGetChoicesError:"Požadavek nevrátil data nebo cesta je neplatná",exceedMaxSize:"Velikost souboru by neměla být větší než {0}.",otherRequiredError:"Zadejte prosím jinou hodnotu.",uploadingFile:"Váš soubor se nahrává. Zkuste to prosím za několik sekund.",addRow:"Přidat řádek",removeRow:"Odstranit"};n.a.locales.cz=o,n.a.localeNames.cz="čeština"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"Færdig",progressText:"Side {0} af {1}",emptySurvey:"Der er ingen synlige spørgsmål.",completingSurvey:"Mange tak for din besvarelse!",loadingSurvey:"Spørgeskemaet hentes fra serveren...",otherItemText:"Valgfrit svar...",optionsCaption:"Vælg...",requiredError:"Besvar venligst spørgsmålet.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",minSelectError:"Vælg venligst mindst {0} svarmulighed(er).",maxSelectError:"Vælg venligst færre {0} svarmuligheder(er).",numericMinMax:"'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}",numericMin:"'{0}' skal være lig med eller større end {1}",numericMax:"'{0}' skal være lig med eller mindre end {1}",invalidEmail:"Angiv venligst en gyldig e-mail adresse.",exceedMaxSize:"Filstørrelsen må ikke overstige {0}.",otherRequiredError:"Angiv en værdi for dit valgfrie svar."};n.a.locales.da=o,n.a.localeNames.da="dansk"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",otherItemText:"Andere",progressText:"Pagina {0} van {1}",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt voor het invullen van de vragenlijst",loadingSurvey:"De vragenlijst is aan het laden...",optionsCaption:"Kies...",requiredError:"Gelieve een antwoord in te vullen",numericError:"Het antwoord moet een getal zijn",textMinLength:"Gelieve minsten {0} karakters in te vullen.",minSelectError:"Gelieve minimum {0} antwoorden te selecteren.",maxSelectError:"Gelieve niet meer dan {0} antwoorden te selecteren.",numericMinMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}",numericMin:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",numericMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",invalidEmail:"Gelieve een geldig e-mailadres in te vullen.",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}.",otherRequiredError:"Gelieve het veld 'Andere' in te vullen"};n.a.locales.nl=o,n.a.localeNames.nl="hollandsk"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Edellinen",pageNextText:"Seuraava",completeText:"Valmis",otherItemText:"Muu (kuvaile)",progressText:"Sivu {0}/{1}",emptySurvey:"Tässä kyselyssä ei ole yhtäkään näkyvillä olevaa sivua tai kysymystä.",completingSurvey:"Kiitos kyselyyn vastaamisesta!",loadingSurvey:"Kyselyä ladataan palvelimelta...",optionsCaption:"Valitse...",requiredError:"Vastaa kysymykseen, kiitos.",numericError:"Arvon tulee olla numeerinen.",textMinLength:"Ole hyvä ja syötä vähintään {0} merkkiä.",minSelectError:"Ole hyvä ja valitse vähintään {0} vaihtoehtoa.",maxSelectError:"Ole hyvä ja valitse enintään {0} vaihtoehtoa.",numericMinMax:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1} ja vähemmän tai yhtä suuri kuin {2}",numericMin:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1}",numericMax:"'{0}' täytyy olla vähemmän tai yhtä suuri kuin {1}",invalidEmail:"Syötä validi sähköpostiosoite.",otherRequiredError:'Ole hyvä ja syötä "Muu (kuvaile)"'};n.a.locales.fi=o,n.a.localeNames.fi="suomalainen"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",startSurveyText:"Commencer",otherItemText:"Autre (préciser)",progressText:"Page {0} sur {1}",emptySurvey:"Il n'y a ni page visible ni question visible dans ce questionnaire",completingSurvey:"Merci d'avoir répondu au questionnaire !",completingSurveyBefore:"Nos données indiquent que vous avez déjà rempli ce questionnaire.",loadingSurvey:"Le questionnaire est en cours de chargement...",optionsCaption:"Choisissez...",value:"valeur",requiredError:"La réponse à cette question est obligatoire.",requiredErrorInPanel:"Merci de répondre au moins à une question.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La réponse doit être un nombre.",textMinLength:"Merci de saisir au moins {0} caractères.",textMaxLength:"Merci de saisir moins de {0} caractères.",textMinMaxLength:"Merci de saisir entre {0} et {1} caractères.",minRowCountError:"Merci de compléter au moins {0} lignes.",minSelectError:"Merci de sélectionner au minimum {0} réponses.",maxSelectError:"Merci de sélectionner au maximum {0} réponses.",numericMinMax:"Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}",numericMin:"Votre réponse '{0}' doit être supérieure ou égale à {1}",numericMax:"Votre réponse '{0}' doit être inférieure ou égale à {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",urlRequestError:"La requête a renvoyé une erreur '{0}'. {1}",urlGetChoicesError:"La requête a renvoyé des données vides ou la propriété 'path' est incorrecte",exceedMaxSize:"La taille du fichier ne doit pas excéder {0}.",otherRequiredError:"Merci de préciser le champ 'Autre'.",uploadingFile:"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit être unique.",addRow:"Ajouter une ligne",removeRow:"Supprimer",addPanel:"Ajouter",removePanel:"Supprimer",choices_Item:"item",matrix_column:"Colonne",matrix_row:"Ligne",savingData:"Les résultats sont en cours de sauvegarde sur le serveur...",savingDataError:"Une erreur est survenue et a empêché la sauvegarde des résultats.",savingDataSuccess:"Les résultats ont bien été enregistrés !",saveAgainButton:"Réessayer",timerMin:"min",timerSec:"sec",timerSpentAll:"Vous avez passé {0} sur cette page et {1} au total.",timerSpentPage:"Vous avez passé {0} sur cette page.",timerSpentSurvey:"Vous avez passé {0} au total.",timerLimitAll:"Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.",timerLimitPage:"Vous avez passé {0} sur {1} sur cette page.",timerLimitSurvey:"Vous avez passé {0} sur {1} au total.",cleanCaption:"Vider"};n.a.locales.fr=o,n.a.localeNames.fr="français"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"უკან",pageNextText:"შემდეგ",completeText:"დასრულება",progressText:"გვერდი {0} / {1}",emptySurvey:"არცერთი კითხვა არ არის.",completingSurvey:"გმადლობთ კითხვარის შევსებისთვის!",loadingSurvey:"ჩატვირთვა სერვერიდან...",otherItemText:"სხვა (გთხოვთ მიუთითეთ)",optionsCaption:"არჩევა...",requiredError:"გთხოვთ უპასუხეთ კითხვას.",numericError:"პასუხი უნდა იყოს რიცხვი.",textMinLength:"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.",minSelectError:"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.",maxSelectError:"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.",numericMinMax:"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}",numericMin:"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}",numericMax:"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}",invalidEmail:"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.",otherRequiredEror:"გთხოვთ შეავსეთ ველი 'სხვა'"};n.a.locales.ka=o,n.a.localeNames.ka="ქართული"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Zurück",pageNextText:"Weiter",completeText:"Absenden",progressText:"Seite {0} von {1}",emptySurvey:"Es gibt keine sichtbare Frage.",completingSurvey:"Vielen Dank für die Beantwortung des Fragebogens!",loadingSurvey:"Der Fragebogen wird vom Server geladen...",otherItemText:"Benutzerdefinierte Antwort...",optionsCaption:"Wählen...",requiredError:"Bitte beantworten Sie diese Frage.",numericError:"Der Wert sollte eine Zahl sein.",textMinLength:"Bitte geben Sie mindestens {0} Zeichen ein.",minSelectError:"Bitte wählen Sie mindestens {0} Einträge.",maxSelectError:"Bitte wählen Sie nicht mehr als {0} Einträge.",numericMinMax:"'{0}' sollte gleich oder größer sein als {1} und gleich oder kleiner als {2}.",numericMin:"'{0}' sollte gleich oder größer sein als {1}.",numericMax:"'{0}' sollte gleich oder kleiner als {1} sein.",invalidEmail:"Bitte geben Sie eine gültige E-Mail Adresse ein.",exceedMaxSize:"Die Dateigröße darf {0} nicht überschreiten.",otherRequiredError:"Bitte geben Sie Ihre benutzerdefinierte Antwort ein.",addRow:"Reihe hinzufügen",removeRow:"Löschen"};n.a.locales.de=o,n.a.localeNames.de="deutsch"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Προηγούμενο",pageNextText:"Επόμενο",completeText:"Ολοκλήρωση",otherItemText:"Άλλο (παρακαλώ διευκρινίστε)",progressText:"Σελίδα {0} από {1}",emptySurvey:"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.",completingSurvey:"Ευχαριστούμε για την συμπλήρωση αυτου του ερωτηματολογίου!",loadingSurvey:"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...",optionsCaption:"Επιλέξτε...",requiredError:"Παρακαλώ απαντήστε στην ερώτηση.",requiredInAllRowsError:"Παρακαλώ απαντήστε στις ερωτήσεις σε όλες τις γραμμές.",numericError:"Η τιμή πρέπει να είναι αριθμιτική.",textMinLength:"Παρακαλώ συμπληρώστε τουλάχιστον {0} σύμβολα.",minRowCountError:"Παρακαλώ συμπληρώστε τουλάχιστον {0} γραμμές.",minSelectError:"Παρακαλώ επιλέξτε τουλάχιστον {0} παραλλαγές.",maxSelectError:"Παρακαλώ επιλέξτε όχι παραπάνω απο {0} παραλλαγές.",numericMinMax:"Το '{0}' θα πρέπει να είναι ίσο ή μεγαλύτερο απο το {1} και ίσο ή μικρότερο απο το {2}",numericMin:"Το '{0}' πρέπει να είναι μεγαλύτερο ή ισο με το {1}",numericMax:"Το '{0}' πρέπει να είναι μικρότερο ή ίσο απο το {1}",invalidEmail:"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.",urlRequestError:"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}",urlGetChoicesError:"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδότητα 'μονοπάτι/path' είναι εσφαλέμένη",exceedMaxSize:"Το μέγεθος δεν μπορεί να υπερβένει τα {0}.",otherRequiredError:"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.",uploadingFile:"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.",addRow:"Προσθήκη γραμμής",removeRow:"Αφαίρεση"};n.a.locales.gr=o,n.a.localeNames.gr="ελληνικά"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"אחורה",pageNextText:"קדימה",completeText:"סיום",progressText:"דף {1} מתוך {0}",emptySurvey:"אין שאלות",completingSurvey:"תודה על מילוי השאלון!",loadingSurvey:"טעינה מהשרת...",otherItemText:"אחר (נא לתאר)",optionsCaption:"בחר...",requiredError:"אנא השב על השאלה",numericError:"התשובה צריכה להיות מספר.",textMinLength:"הזן לפחות {0} תווים.",minSelectError:"בחר לפחות {0} אפשרויות.",maxSelectError:"בחר עד {0} אפשרויות.",numericMinMax:"'{0}' חייב להיות שווה או גדול מ {1}, ושווה ל- {2} או פחות מ- {}}",numericMin:"'{0}' חייב להיות שווה או גדול מ {1}",numericMax:"'{0}' חייב להיות שווה או קטן מ {1}",invalidEmail:'הזן כתובת דוא"ל חוקית.',otherRequiredError:'נא להזין נתונים בשדה "אחר"'};n.a.locales.he=o,n.a.localeNames.he="עברית"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Vissza",pageNextText:"Tovább",completeText:"Kész",otherItemText:"Egyéb (adja meg)",progressText:"{0}./{1} oldal",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Köszönjük, hogy kitöltötte felmérésünket!",completingSurveyBefore:"Már kitöltötte a felmérést.",loadingSurvey:"Felmérés betöltése...",optionsCaption:"Válasszon...",value:"érték",requiredError:"Kérjük, válaszolja meg ezt a kérdést!",requiredInAllRowsError:"Kérjük adjon választ minden sorban!",numericError:"Az érték szám kell, hogy legyen!",textMinLength:"Adjon meg legalább {0} karaktert!",textMaxLength:"Legfeljebb {0} karaktert adjon meg!",textMinMaxLength:"Adjon meg legalább {0}, de legfeljebb {1} karaktert!",minRowCountError:"Töltsön ki minimum {0} sort!",minSelectError:"Válasszon ki legalább {0} lehetőséget!",maxSelectError:"Ne válasszon többet, mint {0} lehetőség!",numericMinMax:"'{0}' legyen nagyobb, vagy egyenlő, mint {1} és kisebb, vagy egyenlő, mint {2}!",numericMin:"'{0}' legyen legalább {1}!",numericMax:"The '{0}' ne legyen nagyobb, mint {1}!",invalidEmail:"Adjon meg egy valós email címet!",urlRequestError:"A lekérdezés hibával tért vissza: '{0}'. {1}",urlGetChoicesError:"A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.",exceedMaxSize:"A méret nem lehet nagyobb, mint {0}.",otherRequiredError:"Adja meg az egyéb értéket!",uploadingFile:"Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.",confirmDelete:"Törli ezt a rekordot?",keyDuplicationError:"Az értéknek egyedinek kell lennie.",addRow:"Sor hozzáadása",removeRow:"Eltávolítás",addPanel:"Új hozzáadása",removePanel:"Eltávolítás",choices_Item:"elem",matrix_column:"Oszlop",matrix_row:"Sor",savingData:"Eredmény mentése a szerverre...",savingDataError:"Egy hiba folytán nem tudtuk elmenteni az eredményt.",savingDataSuccess:"Eredmény sikeresen mentve!",saveAgainButton:"Próbálja újra"};n.a.locales.hu=o,n.a.localeNames.hu="magyar"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Tilbaka",pageNextText:"Áfram",completeText:"Lokið",otherItemText:"Hinn (skýring)",progressText:"Síða {0} of {1}",emptySurvey:"Það er enginn síða eða spurningar í þessari könnun.",completingSurvey:"Takk fyrir að fyllja út þessa könnun!",loadingSurvey:"Könnunin er að hlaða...",optionsCaption:"Veldu...",requiredError:"Vinsamlegast svarið spurningunni.",requiredInAllRowsError:"Vinsamlegast svarið spurningum í öllum röðum.",numericError:"Þetta gildi verður að vera tala.",textMinLength:"Það ætti að vera minnst {0} tákn.",textMaxLength:"Það ætti að vera mest {0} tákn.",textMinMaxLength:"Það ætti að vera fleiri en {0} og færri en {1} tákn.",minRowCountError:"Vinsamlegast fyllið úr að minnsta kosti {0} raðir.",minSelectError:"Vinsamlegast veljið að minnsta kosti {0} möguleika.",maxSelectError:"Vinsamlegast veljið ekki fleiri en {0} möguleika.",numericMinMax:"'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}",numericMin:"{0}' ætti að vera meira en eða jafnt og {1}",numericMax:"'{0}' ætti að vera minna en eða jafnt og {1}",invalidEmail:"Vinsamlegast sláið inn gilt netfang.",urlRequestError:"Beiðninn skilaði eftirfaranadi villu '{0}'. {1}",urlGetChoicesError:"Beiðninng skilaði engum gögnum eða slóðinn var röng",exceedMaxSize:"Skráinn skal ekki vera stærri en {0}.",otherRequiredError:"Vinamlegast fyllið út hitt gildið.",uploadingFile:"Skráinn þín var send. Vinsamlegast bíðið í nokkrar sekúndur og reynið aftur.",addRow:"Bæta við röð",removeRow:"Fjarlægja",choices_firstItem:"fyrsti hlutur",choices_secondItem:"annar hlutur",choices_thirdItem:"þriðji hlutur",matrix_column:"Dálkur",matrix_row:"Röð"};n.a.locales.is=o,n.a.localeNames.is="íslenska"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",startSurveyText:"Inizio",otherItemText:"Altro (descrivi)",progressText:"Pagina {0} di {1}",emptySurvey:"Non ci sono pagine o domande visibili nel questionario.",completingSurvey:"Grazie per aver completato il questionario!",completingSurveyBefore:"I nostri records mostrano che hai già completato questo questionario.",loadingSurvey:"Caricamento del questionario in corso...",optionsCaption:"Scegli...",value:"valore",requiredError:"Campo obbligatorio",requiredErrorInPanel:"Per Favore, rispondi ad almeno una domanda.",requiredInAllRowsError:"Completare tutte le righe",numericError:"Il valore deve essere numerico",textMinLength:"Inserire almeno {0} caratteri",textMaxLength:"Lunghezza massima consentita {0} caratteri",textMinMaxLength:"Inserire una stringa con minimo {0} e massimo {1} caratteri",minRowCountError:"Completare almeno {0} righe.",minSelectError:"Selezionare almeno {0} varianti.",maxSelectError:"Selezionare massimo {0} varianti.",numericMinMax:"'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}",numericMin:"'{0}' deve essere uguale o superiore a {1}",numericMax:"'{0}' deve essere uguale o inferiore a {1}",invalidEmail:"Inserire indirizzo mail valido",urlRequestError:"La richiesta ha risposto con un errore '{0}'. {1}",urlGetChoicesError:"La richiesta ha risposto null oppure il percorso non è corretto",exceedMaxSize:"Il file non può eccedere {0}",otherRequiredError:"Inserire il valore 'altro'",uploadingFile:"File in caricamento. Attendi alcuni secondi e riprova",confirmDelete:"Sei sicuro di voler elminare il record?",keyDuplicationError:"Questo valore deve essere univoco.",addRow:"Aggiungi riga",removeRow:"Rimuovi riga",addPanel:"Aggiungi riga",removePanel:"Elimina",choices_Item:"Elemento",matrix_column:"Colonna",matrix_row:"Riga",savingData:"Salvataggio dati sul server...",savingDataError:"Si è verificato un errore e non è stato possibile salvare i risultati.",savingDataSuccess:"I risultati sono stati salvati con successo!",saveAgainButton:"Riprova",timerMin:"min",timerSec:"sec",timerSpentAll:"Hai impiegato {0} su questa pagina e {1} in totale.",timerSpentPage:"Hai impiegato {0} su questa pagina.",timerSpentSurvey:"Hai impiegato {0} in totale.",timerLimitAll:"Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.",timerLimitPage:"Hai impiegato {0} di {1} su questa pagina.",timerLimitSurvey:"Hai impiegato {0} di {1} in totale.",cleanCaption:"Pulisci"};n.a.locales.it=o,n.a.localeNames.it="italiano"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Atpakaļ",pageNextText:"Tālāk",completeText:"Pabeigt",progressText:"Lappuse {0} no {1}",emptySurvey:"Nav neviena jautājuma.",completingSurvey:"Pateicamies Jums par anketas aizpildīšanu!",loadingSurvey:"Ielāde no servera...",otherItemText:"Cits (lūdzu, aprakstiet!)",optionsCaption:"Izvēlēties...",requiredError:"Lūdzu, atbildiet uz jautājumu!",numericError:"Atbildei ir jābūt skaitlim.",textMinLength:"Lūdzu, ievadiet vismaz {0} simbolus.",minSelectError:"Lūdzu, izvēlieties vismaz {0} variantu.",maxSelectError:"Lūdzu, izvēlieties ne vairak par {0} variantiem.",numericMinMax:"'{0}' jābūt vienādam vai lielākam nekā {1}, un vienādam vai mazākam, nekā {2}",numericMin:"'{0}' jābūt vienādam vai lielākam {1}",numericMax:"'{0}' jābūt vienādam vai lielākam {1}",invalidEmail:"Lūdzu, ievadiet patiesu e-pasta adresi!",otherRequiredError:'Lūdzu, ievadiet datus laukā "Cits"'};n.a.locales.lv=o,n.a.localeNames.lv="latviešu"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Forrige",pageNextText:"Neste",completeText:"Fullfør",startSurveyText:"Start",otherItemText:"Annet (beskriv)",progressText:"Side {0} av {1}",emptySurvey:"Det er ingen synlig side eller spørsmål i undersøkelsen.",completingSurvey:"Takk for at du fullførte undersøkelsen!",completingSurveyBefore:"Våre data viser at du allerede har gjennomført denne undersøkelsen.",loadingSurvey:"Undersøkelsen laster...",optionsCaption:"Velg...",value:"verdi",requiredError:"Vennligst svar på spørsmålet.",requiredErrorInPanel:"Vennligst svar på minst ett spørsmål.",requiredInAllRowsError:"Vennligst svar på spørsmål i alle rader.",numericError:"Verdien skal være numerisk.",textMinLength:"Vennligst skriv inn minst {0} tegn.",textMaxLength:"Vennligst skriv inn mindre enn {0} tegn.",textMinMaxLength:"Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.",minRowCountError:"Vennligst fyll inn minst {0} rader.",minSelectError:"Vennligst velg minst {0} varianter.",maxSelectError:"Vennligst ikke velg mer enn {0} varianter.",numericMinMax:"'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}",numericMin:"'{0}' bør være lik eller mer enn {1}",numericMax:"'{0}' bør være lik eller mindre enn {1}",invalidEmail:"Vennligst skriv inn en gyldig e-post adresse.",urlRequestError:"Forespørselen returnerte feilen '{0}'. {1}",urlGetChoicesError:"Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil",exceedMaxSize:"Filstørrelsen bør ikke overstige {0}.",otherRequiredError:"Vennligst skriv inn den andre verdien.",uploadingFile:"Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.",confirmDelete:"Ønsker du å slette posten?",keyDuplicationError:"Denne verdien skal være unik.",addRow:"Legg til rad",removeRow:"Fjern",addPanel:"Legg til ny",removePanel:"Fjerne",choices_Item:"element",matrix_column:"Kolonne",matrix_row:"Rad",savingData:"Resultatene lagres på serveren ...",savingDataError:"Det oppsto en feil, og vi kunne ikke lagre resultatene.",savingDataSuccess:"Resultatene ble lagret!",saveAgainButton:"Prøv igjen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har tilbrakt {0} på denne siden og {1} totalt.",timerSpentPage:"Du har tilbrakt {0} på denne siden.",timerSpentSurvey:"Du har tilbrakt {0} totalt.",timerLimitAll:"Du har tilbrakt {0} av {1} på denne siden og totalt {2} av {3}.",timerLimitPage:"Du har tilbrakt {0} av {1} på denne siden.",timerLimitSurvey:"Du har tilbrakt {0} av {1} totalt.",cleanCaption:"Rens"};n.a.locales.no=o,n.a.localeNames.no="norsk"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"قبلی",pageNextText:"بعدی",completeText:"تکمیل",otherItemText:"دیگر(توضیح)",progressText:"صفحه {0} از {1}",emptySurvey:"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.",completingSurvey:"از شما بابت تکمیل این پرسشنامه متشکریم",completingSurveyBefore:"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.",loadingSurvey:"درحال ایجاد پرسشنامه",optionsCaption:"انتخاب کنید...",value:"مقدار",requiredError:"لطفا به سوال پاسخ دهید",requiredInAllRowsError:"لطفا به تمام سطر های سوالات پاسخ دهید",numericError:"مقدار باید عددی باشد",textMinLength:"لطفا حداقل {0} حرف وارد کنید",textMaxLength:"لطفا کمتر از {0} حرف وارد کنید.",textMinMaxLength:"لطفا بیشتر از {0} حرف و کمتر از {1} حرف وارد کنید.",minRowCountError:"لطفا حداقل {0} سطر وارد کنید.",minSelectError:"حداقل {0} انتخاب کنید.",maxSelectError:"لطفا بیشتر از {0} انتخاب کنید.",numericMinMax:"'{0}' باید بین {1} و {2} باشد",numericMin:"'{0}' بزرگتر مساوی {1} باشد",numericMax:"'{0}' باید کوچکتر یا مساوی {1} باشد",invalidEmail:"لطفا ایمیل صحیح درج کنید",urlRequestError:"درخواست با خطا روبرو شد: '{0}'. {1}",urlGetChoicesError:"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده",exceedMaxSize:"بیشترین حجم مجاز فایل: {0}",otherRequiredError:"مقدار 'دیگر' را وارد کنید",uploadingFile:"فایل در حال آیلود می باشد. لطفا صبر کنید.",confirmDelete:"آیا مایل به حذف این ردیف هستید؟",keyDuplicationError:"این مقدار باید غیر تکراری باشد",addRow:"سطر جدید",removeRow:"حذف",addPanel:"جدید",removePanel:"حذف",choices_Item:"آیتم",matrix_column:"ستون",matrix_row:"سطر",savingData:"نتایج در حال ذخیره سازی در سرور می باشد",savingDataError:"خطایی در ذخیره سازی نتایج رخ داده است",savingDataSuccess:"نتایج با موفقیت ذخیره شد",saveAgainButton:"مجدد تلاش کنید"};n.a.locales.fa=o,n.a.localeNames.fa="فارْسِى"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Wstecz",pageNextText:"Dalej",completeText:"Gotowe",otherItemText:"Inna odpowiedź (wpisz)",progressText:"Strona {0} z {1}",emptySurvey:"Nie ma widocznych pytań.",completingSurvey:"Dziękujemy za wypełnienie ankiety!",loadingSurvey:"Trwa wczytywanie ankiety...",optionsCaption:"Wybierz...",requiredError:"Proszę odpowiedzieć na to pytanie.",requiredInAllRowsError:"Proszę odpowiedzieć na wszystkie pytania.",numericError:"W tym polu można wpisać tylko liczby.",textMinLength:"Proszę wpisać co najmniej {0} znaków.",textMaxLength:"Proszę wpisać mniej niż {0} znaków.",textMinMaxLength:"Proszę wpisać więcej niż {0} i mniej niż {1} znaków.",minRowCountError:"Proszę uzupełnić przynajmniej {0} wierszy.",minSelectError:"Proszę wybrać co najmniej {0} pozycji.",maxSelectError:"Proszę wybrać nie więcej niż {0} pozycji.",numericMinMax:"Odpowiedź '{0}' powinna być większa lub równa {1} oraz mniejsza lub równa {2}",numericMin:"Odpowiedź '{0}' powinna być większa lub równa {1}",numericMax:"Odpowiedź '{0}' powinna być mniejsza lub równa {1}",invalidEmail:"Proszę podać prawidłowy adres email.",urlRequestError:"Żądanie zwróciło błąd '{0}'. {1}",urlGetChoicesError:"Żądanie nie zwróciło danych albo ścieżka jest nieprawidłowa",exceedMaxSize:"Rozmiar przesłanego pliku nie może przekraczać {0}.",otherRequiredError:"Proszę podać inną odpowiedź.",uploadingFile:"Trwa przenoszenie Twojego pliku, proszę spróbować ponownie za kilka sekund.",addRow:"Dodaj wiersz",removeRow:"Usuń"};n.a.locales.pl=o,n.a.localeNames.pl="polski"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",otherItemText:"Outros (descrever)",progressText:"Pagina {0} de {1}",emptySurvey:"Não há página visível ou pergunta na pesquisa.",completingSurvey:"Obrigado por finalizar a pesquisa!",completingSurveyBefore:"Nossos registros mostram que você já finalizou a pesquisa.",loadingSurvey:"A pesquisa está carregando...",optionsCaption:"Selecione...",value:"valor",requiredError:"Por favor, responda a pergunta.",requiredInAllRowsError:"Por favor, responda as perguntas em todas as linhas.",numericError:"O valor deve ser numérico.",textMinLength:"Por favor, insira pelo menos {0} caracteres.",textMaxLength:"Por favor, insira menos de {0} caracteres.",textMinMaxLength:"Por favor, insira mais de {0} e menos de {1} caracteres.",minRowCountError:"Preencha pelo menos {0} linhas.",minSelectError:"Selecione pelo menos {0} opções.",maxSelectError:"Por favor, selecione não mais do que {0} opções.",numericMinMax:"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}",numericMin:"O '{0}' deve ser igual ou superior a {1}",numericMax:"O '{0}' deve ser igual ou inferior a {1}",invalidEmail:"Por favor, informe um e-mail válido.",urlRequestError:"A requisição retornou o erro '{0}'. {1}",urlGetChoicesError:"A requisição não retornou dados ou o 'caminho' da requisição não está correto",exceedMaxSize:"O tamanho do arquivo não deve exceder {0}.",otherRequiredError:"Por favor, informe o outro valor.",uploadingFile:"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados esto sendo salvos no servidor...",savingDataError:"Ocorreu um erro e não foi possível salvar os resultados.",savingDataSuccess:"Os resultados foram salvos com sucesso!",saveAgainButton:"Tente novamente"};n.a.locales.pt=o,n.a.localeNames.pt="português"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Precedent",pageNextText:"Următor",completeText:"Finalizare",otherItemText:"Altul(precizaţi)",progressText:"Pagina {0} din {1}",emptySurvey:"Nu sunt întrebări pentru acest chestionar",completingSurvey:"Vă mulţumim pentru timpul acordat!",loadingSurvey:"Chestionarul se încarcă...",optionsCaption:"Alegeţi...",requiredError:"Răspunsul la această întrebare este obligatoriu.",requiredInAllRowsError:"Toate răspunsurile sunt obligatorii",numericError:"Răspunsul trebuie să fie numeric.",textMinLength:"Trebuie să introduceți minim {0} caractere.",minSelectError:"Trebuie să selectați minim {0} opţiuni.",maxSelectError:"Trebuie să selectați maxim {0} opţiuni.",numericMinMax:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1} şî mai mic sau egal cu {2}",numericMin:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1}",numericMax:"Răspunsul '{0}' trebuie să fie mai mic sau egal ca {1}",invalidEmail:"Trebuie să introduceţi o adresa de email validă.",exceedMaxSize:"Dimensiunea fişierului nu trebuie să depăşească {0}.",otherRequiredError:"Trebuie să completați câmpul 'Altul'.",completingSurveyBefore:"Din înregistrările noastre reiese că ați completat deja acest chestionar.",value:"valoare",requiredErrorInPanel:"Vă rugăm să răspundeți la cel puțin o întrebare.",textMaxLength:"Trebuie să introduceți maxim {0} caractere.",textMinMaxLength:"Trebuie să introduceți mai mult de {0} și mai puțin de {1} caractere.",minRowCountError:"Trebuie să completați minim {0} rânduri.",urlRequestError:"Request-ul a returnat eroarea '{0}'. {1}",urlGetChoicesError:"Request-ul nu a returnat date sau proprietatea 'path' este incorectă",uploadingFile:"Fișierul dumneavoastră este în curs de încărcare. Vă rugăm așteptați câteva secunde și reveniți apoi.",confirmDelete:"Sunteți sigur că doriți să ștergeți înregistrarea?",keyDuplicationError:"Valoarea trebuie să fie unică.",addRow:"Adăugare rând",removeRow:"Ștergere",addPanel:"Adăugare",removePanel:"Ștergere",choices_Item:"opțiune",matrix_column:"Coloană",matrix_row:"Rând",savingData:"Rezultatele sunt în curs de salvare...",savingDataError:"A intervenit o eroare, rezultatele nu au putut fi salvate.",savingDataSuccess:"Rezultatele au fost salvate cu succes!",saveAgainButton:"Încercați din nou",timerMin:"min",timerSec:"sec",timerSpentAll:"Ați petrecut {0} pe această pagină și {1} în total.",timerSpentPage:"Ați petrecut {0} pe această pagină.",timerSpentSurvey:"Ați petrecut {0} în total.",timerLimitAll:"Ați petrecut {0} din {1} pe această pagină și {2} din {3} în total.",timerLimitPage:"Ați petrecut {0} din {1} pe această pagină.",timerLimitSurvey:"Ați petrecut {0} din {1} în total."};n.a.locales.ro=o,n.a.localeNames.ro="română"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",progressText:"Страница {0} из {1}",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",loadingSurvey:"Загрузка с сервера...",otherItemText:"Другое (пожалуйста, опишите)",optionsCaption:"Выбрать...",requiredError:"Пожалуйста, ответьте на вопрос.",numericError:"Ответ должен быть числом.",textMinLength:"Пожалуйста, введите хотя бы {0} символов.",minSelectError:"Пожалуйста, выберите хотя бы {0} вариантов.",maxSelectError:"Пожалуйста, выберите не более {0} вариантов.",numericMinMax:"'{0}' должно быть равным или больше, чем {1}, и равным или меньше, чем {2}",numericMin:"'{0}' должно быть равным или больше, чем {1}",numericMax:"'{0}' должно быть равным или меньше, чем {1}",invalidEmail:"Пожалуйста, введите действительный адрес электронной почты.",otherRequiredError:'Пожалуйста, введите данные в поле "Другое"',timerMin:"мин",timerSec:"сек",timerSpentAll:"Вы потратили {0} на этой странице и {1} всего.",timerSpentPage:"Вы потратили {0} на этой странице.",timerSpentSurvey:"Вы потратили {0} в течение теста.",timerLimitAll:"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.",timerLimitPage:"Вы потратили {0} из {1} на этой странице.",timerLimitSurvey:"Вы потратили {0} из {1} для всего теста."};n.a.locales.ru=o,n.a.localeNames.ru="русский"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",otherItemText:"填写其他答案",progressText:"第 {0} 页, 共 {1} 页",emptySurvey:"问卷中没有问题或页面",completingSurvey:"感谢您的参与!",loadingSurvey:"问卷正在加载中...",optionsCaption:"请选择...",requiredError:"请填写此问题",requiredInAllRowsError:"请填写所有行中问题",numericError:"答案必须是个数字",textMinLength:"答案长度至少 {0} 个字符",textMaxLength:"答案长度不能超过 {0} 个字符",textMinMaxLength:"答案长度必须在 {0} - {1} 个字符之间",minRowCountError:"最少需要填写 {0} 行答案",minSelectError:"最少需要选择 {0} 项答案",maxSelectError:"最多只能选择 {0} 项答案",numericMinMax:"答案 '{0}' 必须大于等于 {1} 且小于等于 {2}",numericMin:"答案 '{0}' 必须大于等于 {1}",numericMax:"答案 '{0}' 必须小于等于 {1}",invalidEmail:"请输入有效的 Email 地址",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",addRow:"添加答案",removeRow:"删除答案",choices_Item:"选项",matrix_column:"列",matrix_row:"行",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误,结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试"};n.a.locales["zh-cn"]=o,n.a.localeNames["zh-cn"]="简体中文"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Anterior",pageNextText:"Siguiente",completeText:"Completo",otherItemText:"Otro (describa)",progressText:"Página {0} de {1}",emptySurvey:"No hay página visible o pregunta en la encuesta.",completingSurvey:"Gracias por completar la encuesta!",loadingSurvey:"La encuesta está cargando...",optionsCaption:"Seleccione...",requiredError:"Por favor conteste la pregunta.",requiredInAllRowsError:"Por favor conteste las preguntas en cada hilera.",numericError:"La estimación debe ser numérica.",textMinLength:"Por favor entre por lo menos {0} símbolos.",textMaxLength:"Por favor entre menos de {0} símbolos.",textMinMaxLength:"Por favor entre más de {0} y menos de {1} símbolos.",minRowCountError:"Por favor llene por lo menos {0} hileras.",minSelectError:"Por favor seleccione por lo menos {0} variantes.",maxSelectError:"Por favor seleccione no más de {0} variantes.",numericMinMax:"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}",numericMin:"El '{0}' debe ser igual o más de {1}",numericMax:"El '{0}' debe ser igual o menos de {1}",invalidEmail:"Por favor agregue un correo electrónico válido.",urlRequestError:"La solicitud regresó error '{0}'. {1}",urlGetChoicesError:"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"El tamaño del archivo no debe de exceder {0}.",otherRequiredError:"Por favor agregue la otra estimación.",uploadingFile:"Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.",addRow:"Agregue una hilera",removeRow:"Eliminar una hilera",choices_firstItem:"primer artículo",choices_secondItem:"segundo artículo",choices_thirdItem:"tercera artículo",matrix_column:"Columna",matrix_row:"Hilera"};n.a.locales.es=o,n.a.localeNames.es="español"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Föregående",pageNextText:"Nästa",completeText:"Färdig",otherItemText:"Annat (beskriv)",progressText:"Sida {0} av {1}",emptySurvey:"Det finns ingen synlig sida eller fråga i enkäten.",completingSurvey:"Tack för att du genomfört enkäten!!",loadingSurvey:"Enkäten laddas...",optionsCaption:"Välj...",requiredError:"Var vänlig besvara frågan.",requiredInAllRowsError:"Var vänlig besvara frågorna på alla rader.",numericError:"Värdet ska vara numeriskt.",textMinLength:"Var vänlig ange minst {0} tecken.",minRowCountError:"Var vänlig fyll i minst {0} rader.",minSelectError:"Var vänlig välj åtminstone {0} varianter.",maxSelectError:"Var vänlig välj inte fler än {0} varianter.",numericMinMax:"'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}",numericMin:"'{0}' ska vara lika med eller mer än {1}",numericMax:"'{0}' ska vara lika med eller mindre än {1}",invalidEmail:"Var vänlig ange en korrekt e-postadress.",urlRequestError:"Förfrågan returnerade felet '{0}'. {1}",urlGetChoicesError:"Antingen returnerade förfrågan ingen data eller så är egenskapen 'path' inte korrekt",exceedMaxSize:"Filstorleken får ej överstiga {0}.",otherRequiredError:"Var vänlig ange det andra värdet.",uploadingFile:"Din fil laddas upp. Var vänlig vänta några sekunder och försök sedan igen.",addRow:"Lägg till rad",removeRow:"Ta bort"};n.a.locales.sv=o,n.a.localeNames.sv="svenska"},function(e,t,r){"use strict";var n=r(2),o={pagePrevText:"Geri",pageNextText:"İleri",completeText:"Anketi Tamamla",otherItemText:"Diğer (açıklayınız)",progressText:"Sayfa {0} / {1}",emptySurvey:"Ankette görüntülenecek sayfa ya da soru mevcut değil.",completingSurvey:"Anketimizi tamamladığınız için teşekkür ederiz.",loadingSurvey:"Anket sunucudan yükleniyor ...",optionsCaption:"Seçiniz ...",requiredError:"Lütfen soruya cevap veriniz",numericError:"Girilen değer numerik olmalıdır",textMinLength:"En az {0} sembol giriniz.",minRowCountError:"Lütfen en az {0} satırı doldurun.",minSelectError:"Lütfen en az {0} seçeneği seçiniz.",maxSelectError:"Lütfen {0} adetten fazla seçmeyiniz.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"'{0}' değeri {1} değerine eşit veya büyük olmalıdır",numericMax:"'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.",invalidEmail:"Lütfen geçerli bir eposta adresi giriniz.",urlRequestError:"Talebi şu hatayı döndü '{0}'. {1}",urlGetChoicesError:"Talep herhangi bir veri dönmedi ya da 'path' özelliği hatalı.",exceedMaxSize:"Dosya boyutu {0} değerini geçemez.",otherRequiredError:"Lütfen diğer değerleri giriniz.",uploadingFile:"Dosyanız yükleniyor. LÜtfen birkaç saniye bekleyin ve tekrar deneyin.",addRow:"Satır Ekle",removeRow:"Kaldır"};n.a.locales.tr=o,n.a.localeNames.tr="türkçe"},function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(1);r.d(t,"e",function(){return a}),r.d(t,"a",function(){return s}),r.d(t,"d",function(){return u}),r.d(t,"b",function(){return l}),r.d(t,"c",function(){return c});var a=function(e){function t(){var t=e.call(this)||this;return t.opValue="equal",t}return n.b(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue?t.operatorsValue:(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}},t.operatorsValue)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},Object.defineProperty(t.prototype,"operator",{get:function(){return this.opValue},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&(this.opValue=e))},enumerable:!0,configurable:!0}),t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess():this.onFailure()},t.prototype.onSuccess=function(){},t.prototype.onFailure=function(){},t.operatorsValue=null,t}(o.a),s=function(e){function t(){var t=e.call(this)||this;return t.owner=null,t}return n.b(t,e),t.prototype.setOwner=function(e){this.owner=e},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!0,configurable:!0}),t}(a),u=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return n.b(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),r=0;r<t.length;r++)e(t[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(s),l=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(){this.owner&&this.owner.doComplete()},t}(s),c=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onSuccess=function(){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(s);i.b.metaData.addClass("trigger",["operator","!value"]),i.b.metaData.addClass("surveytrigger",["!name"],null,"trigger"),i.b.metaData.addClass("visibletrigger",["pages","questions"],function(){return new u},"surveytrigger"),i.b.metaData.addClass("completetrigger",[],function(){return new l},"surveytrigger"),i.b.metaData.addClass("setvaluetrigger",["!setToName","setValue","isVariable:boolean"],function(){return new c},"surveytrigger")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(59);r.d(t,"Version",function(){return n.a}),r.d(t,"Helpers",function(){return n.b}),r.d(t,"AnswerCountValidator",function(){return n.c}),r.d(t,"EmailValidator",function(){return n.d}),r.d(t,"NumericValidator",function(){return n.e}),r.d(t,"RegexValidator",function(){return n.f}),r.d(t,"SurveyValidator",function(){return n.g}),r.d(t,"TextValidator",function(){return n.h}),r.d(t,"ValidatorResult",function(){return n.i}),r.d(t,"ValidatorRunner",function(){return n.j}),r.d(t,"ItemValue",function(){return n.k}),r.d(t,"Base",function(){return n.l}),r.d(t,"Event",function(){return n.m}),r.d(t,"SurveyError",function(){return n.n}),r.d(t,"SurveyElement",function(){return n.o}),r.d(t,"LocalizableString",function(){return n.p}),r.d(t,"ChoicesRestfull",function(){return n.q}),r.d(t,"FunctionFactory",function(){return n.r}),r.d(t,"Condition",function(){return n.s}),r.d(t,"ConditionNode",function(){return n.t}),r.d(t,"ConditionRunner",function(){return n.u}),r.d(t,"ExpressionRunner",function(){return n.v}),r.d(t,"ConditionsParser",function(){return n.w}),r.d(t,"ProcessValue",function(){return n.x}),r.d(t,"CustomError",function(){return n.y}),r.d(t,"ExceedSizeError",function(){return n.z}),r.d(t,"RequreNumericError",function(){return n.A}),r.d(t,"JsonError",function(){return n.B}),r.d(t,"JsonIncorrectTypeError",function(){return n.C}),r.d(t,"JsonMetadata",function(){return n.D}),r.d(t,"JsonMetadataClass",function(){return n.E}),r.d(t,"JsonMissingTypeError",function(){return n.F}),r.d(t,"JsonMissingTypeErrorBase",function(){return n.G}),r.d(t,"JsonObject",function(){return n.H}),r.d(t,"JsonObjectProperty",function(){return n.I}),r.d(t,"JsonRequiredPropertyError",function(){return n.J}),r.d(t,"JsonUnknownPropertyError",function(){return n.K}),r.d(t,"MatrixDropdownCell",function(){return n.L}),r.d(t,"MatrixDropdownColumn",function(){return n.M}),r.d(t,"matrixDropdownColumnTypes",function(){return n.N}),r.d(t,"MatrixDropdownRowModelBase",function(){return n.O}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return n.P}),r.d(t,"MatrixDropdownRowModel",function(){return n.Q}),r.d(t,"QuestionMatrixDropdownModel",function(){return n.R}),r.d(t,"MatrixDynamicRowModel",function(){return n.S}),r.d(t,"QuestionMatrixDynamicModel",function(){return n.T}),r.d(t,"MatrixRowModel",function(){return n.U}),r.d(t,"MartrixCells",function(){return n.V}),r.d(t,"QuestionMatrixModel",function(){return n.W}),r.d(t,"MultipleTextItemModel",function(){return n.X}),r.d(t,"QuestionMultipleTextModel",function(){return n.Y}),r.d(t,"PanelModel",function(){return n.Z}),r.d(t,"PanelModelBase",function(){return n._0}),r.d(t,"QuestionRowModel",function(){return n._1}),r.d(t,"PageModel",function(){return n._2}),r.d(t,"Question",function(){return n._3}),r.d(t,"QuestionBase",function(){return n._4}),r.d(t,"QuestionEmptyModel",function(){return n._5}),r.d(t,"QuestionCheckboxBase",function(){return n._6}),r.d(t,"QuestionSelectBase",function(){return n._7}),r.d(t,"QuestionCheckboxModel",function(){return n._8}),r.d(t,"QuestionCommentModel",function(){return n._9}),r.d(t,"QuestionDropdownModel",function(){return n._10}),r.d(t,"QuestionFactory",function(){return n._11}),r.d(t,"ElementFactory",function(){return n._12}),r.d(t,"QuestionFileModel",function(){return n._13}),r.d(t,"QuestionHtmlModel",function(){return n._14}),r.d(t,"QuestionRadiogroupModel",function(){return n._15}),r.d(t,"QuestionRatingModel",function(){return n._16}),r.d(t,"QuestionExpressionModel",function(){return n._17}),r.d(t,"QuestionTextModel",function(){return n._18}),r.d(t,"QuestionBooleanModel",function(){return n._19}),r.d(t,"QuestionPanelDynamicModel",function(){return n._20}),r.d(t,"QuestionPanelDynamicItem",function(){return n._21}),r.d(t,"SurveyTimer",function(){return n._22}),r.d(t,"SurveyModel",function(){return n._23}),r.d(t,"SurveyTrigger",function(){return n._24}),r.d(t,"SurveyTriggerComplete",function(){return n._25}),r.d(t,"SurveyTriggerSetValue",function(){return n._26}),r.d(t,"SurveyTriggerVisible",function(){return n._27}),r.d(t,"Trigger",function(){return n._28}),r.d(t,"SurveyWindowModel",function(){return n._29}),r.d(t,"TextPreProcessor",function(){return n._30}),r.d(t,"dxSurveyService",function(){return n._31}),r.d(t,"englishStrings",function(){return n._32}),r.d(t,"surveyLocalization",function(){return n._33}),r.d(t,"surveyStrings",function(){return n._34}),r.d(t,"QuestionCustomWidget",function(){return n._35}),r.d(t,"CustomWidgetCollection",function(){return n._36}),r.d(t,"StylesManager",function(){return n._37});var o=(r(58),r(0));r.d(t,"__assign",function(){return o.a}),r.d(t,"__extends",function(){return o.b}),r.d(t,"__decorate",function(){return o.c});var i=r(12);r.d(t,"defaultStandardCss",function(){return i.a});var a=r(56);r.d(t,"defaultBootstrapCss",function(){return a.a});var s=r(57);r.d(t,"defaultBootstrapMaterialCss",function(){return s.a});var u=r(30),l=(r.n(u),r(18));r.d(t,"Survey",function(){return l.a}),r.d(t,"Model",function(){return l.a});var c=r(21);r.d(t,"QuestionRow",function(){return c.a}),r.d(t,"Page",function(){return c.b}),r.d(t,"Panel",function(){return c.c});var p=r(22);r.d(t,"QuestionImplementorBase",function(){return p.a});var h=r(7);r.d(t,"QuestionImplementor",function(){return h.a});var d=r(13);r.d(t,"QuestionSelectBaseImplementor",function(){return d.a}),r.d(t,"QuestionCheckboxBaseImplementor",function(){return d.b});var f=r(62);r.d(t,"QuestionCheckbox",function(){return f.a});var g=r(63);r.d(t,"QuestionComment",function(){return g.a});var m=r(64);r.d(t,"QuestionDropdown",function(){return m.a});var y=r(67);r.d(t,"QuestionFile",function(){return y.a});var v=r(68);r.d(t,"QuestionHtml",function(){return v.a});var b=r(69);r.d(t,"MatrixRow",function(){return b.a}),r.d(t,"QuestionMatrix",function(){return b.b});var x=r(31);r.d(t,"QuestionMatrixDropdown",function(){return x.a});var C=r(70);r.d(t,"QuestionMatrixDynamicImplementor",function(){return C.a}),r.d(t,"QuestionMatrixDynamic",function(){return C.b});var P=r(72);r.d(t,"QuestionPanelDynamic",function(){return P.a});var V=r(71);r.d(t,"MultipleTextItem",function(){return V.a}),r.d(t,"QuestionMultipleTextImplementor",function(){return V.b}),r.d(t,"QuestionMultipleText",function(){return V.c});var w=r(73);r.d(t,"QuestionRadiogroup",function(){return w.a});var k=r(74);r.d(t,"QuestionRating",function(){return k.a});var T=r(32);r.d(t,"QuestionText",function(){return T.a});var S=r(61);r.d(t,"QuestionBoolean",function(){return S.a});var q=r(65);r.d(t,"QuestionEmpty",function(){return q.a});var R=r(66);r.d(t,"QuestionExpression",function(){return R.a});var O=r(60);r.d(t,"SurveyWindow",function(){return O.a});var E=r(33);r.d(t,"SurveyTemplateText",function(){return E.a})}])});
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Generation time: 0.48 |
proxy
|
phpinfo
|
Settings