forms/js/survey.jquery.min.js
Marcel Klehr dfa192ab41 Update survey.js and set description correctly
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2019-07-24 00:22:25 +02:00

11 lines
678 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* surveyjs - Survey JavaScript library v1.1.1
* Copyright (c) 2015-2019 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("jquery")):"function"==typeof define&&define.amd?define("Survey",["jquery"],t):"object"==typeof exports?exports.Survey=t(require("jquery")):e.Survey=t(e.jQuery)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=152)}([function(e,t,n){"use strict";function r(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}n.d(t,"b",function(){return i}),t.a=r,n.d(t,"c",function(){return o});var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},o=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}},function(e,t,n){"use strict";var r=n(0),i=n(4);n.d(t,"c",function(){return o}),n.d(t,"d",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"g",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"l",function(){return c}),n.d(t,"j",function(){return p}),n.d(t,"i",function(){return d}),n.d(t,"f",function(){return h}),n.d(t,"k",function(){return f}),n.d(t,"b",function(){return m}),n.d(t,"a",function(){return g});var o=function(){function e(e,t){void 0===t&&(t=!1),this.name=e,this.typeValue=null,this.choicesValue=null,this.baseValue=null,this.isRequiredValue=!1,this.readOnlyValue=null,this.visibleValue=null,this.isLocalizableValue=null,this.choicesfunc=null,this.dependedProperties=null,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.className=null,this.alternativeName=null,this.classNamePart=null,this.baseClassName=null,this.defaultValueValue=null,this.serializationProperty=null,this.layout=null,this.onGetValue=null,this.onSetValue=null,this.visibleIf=null,this.isArray=!1,this.isRequiredValue=t}return Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substr(0,this.typeValue.length-2))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueValue;return e.getItemValuesDefaultValue&&m.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[])),t},set:function(e){this.defaultValueValue=e},enumerable:!0,configurable:!0}),e.prototype.isDefaultValue=function(e){return i.a.isValueEmpty(this.defaultValue)?!1===e&&"boolean"==this.type||""===e||i.a.isValueEmpty(e):this.defaultValue==e},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&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,n){this.onSetValue?this.onSetValue(e,t,n):this.serializationProperty&&e[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}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!0,configurable:!0}),e.prototype.getChoices=function(e,t){return void 0===t&&(t=null),null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!0,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var n=!this.layout||this.layout==e;return!(!this.visible||!n)&&(!this.visibleIf||!t||this.visibleIf(t))},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 n=e.mergableValues,r=0;r<n.length;r++)this.mergeValue(t,n[r])},e.prototype.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(e)<0&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue","dependedProperties","visibleIf"],e}(),a=function(){function e(){}return e.addProperty=function(t,n){t=t.toLowerCase();var r=e.properties;r[t]||(r[t]=[]),r[t].push(n)},e.removeProperty=function(t,n){t=t.toLowerCase();var r=e.properties;if(r[t])for(var i=r[t],o=0;o<i.length;o++)if(i[o].name==n){r[t].splice(o,1);break}},e.addClass=function(t,n){t=t.toLowerCase(),n&&(n=n.toLowerCase()),e.parentClasses[t]=n},e.getProperties=function(t){t=t.toLowerCase();for(var n=[],r=e.properties;t;){var i=r[t];if(i)for(var o=0;o<i.length;o++)n.push(i[o]);t=e.parentClasses[t]}return n},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,n){var r=e.properties;r[n]&&e.createPropertiesInObj(t,r[n]);var i=e.parentClasses[n];i&&e.createPropertiesCore(t,i)},e.createPropertiesInObj=function(t,n){for(var r=0;r<n.length;r++)e.createPropertyInObj(t,n[r])},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 n={get:function(){return e.getLocalizableString(t.name)}};Object.defineProperty(e,t.serializationProperty,n);var r={get:function(){return e.getLocalizableStringText(t.name,t.defaultValue)},set:function(n){e.setLocalizableStringText(t.name,n)}};Object.defineProperty(e,t.name,r)}else{var i=t.defaultValue;if(m.metaData.isDescendantOf(t.className,"itemvalue")&&"function"==typeof e.createNewArray&&(e.createNewArray(t.name,function(t){t.locOwner=e}),e.setPropertyValue(t.name,i),i=null),e.getPropertyValue&&e.setPropertyValue){var r={get:function(){return e.getPropertyValue(t.name,i)},set:function(n){e.setPropertyValue(t.name,n)}};Object.defineProperty(e,t.name,r)}}},e.properties={},e.parentClasses={},e}(),s=function(){function e(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this.name=e,this.creator=n,this.parentName=r,this.properties=null,e=e.toLowerCase(),this.parentName&&(this.parentName=this.parentName.toLowerCase(),a.addClass(e,this.parentName)),this.properties=new Array;for(var i=0;i<t.length;i++){var o=this.createProperty(t[i]);o&&this.properties.push(o)}}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 n="string"==typeof t?t:t.name;if(n){var r=null,a=n.indexOf(e.typeSymbol);a>-1&&(r=n.substring(a+1),n=n.substring(0,a));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var u=new o(n,s);if(r&&(u.type=r),"object"==typeof t){if(t.type&&(u.type=t.type),i.a.isValueEmpty(t.default)||(u.defaultValue=t.default),i.a.isValueEmpty(t.isSerializable)||(u.isSerializable=t.isSerializable),i.a.isValueEmpty(t.isLightSerializable)||(u.isLightSerializable=t.isLightSerializable),i.a.isValueEmpty(t.isDynamicChoices)||(u.isDynamicChoices=t.isDynamicChoices),!1===t.visible&&(u.visible=!1),t.visibleIf&&(u.visibleIf=t.visibleIf),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.baseValue&&u.setBaseValue(t.baseValue),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),t.layout&&(u.layout=t.layout),t.dependsOn&&this.addDependsOnProperties(u,t.dependsOn)}return u}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.addDependsOnProperty(e,t[n]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var n=this.find(t);n||(n=g.findProperty(this.parentName,t)),n&&n.addDependedProperty(e.name)},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):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),u=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={},this.classHashProperties={}}return e.prototype.addClass=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=null),e=e.toLowerCase();var i=new s(e,t,n,r);if(this.classes[e]=i,r){r=r.toLowerCase();this.childrenClasses[r]||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(i)}return i},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var n=this.childrenClasses[t.parentName].indexOf(t);n>-1&&this.childrenClasses[t.parentName].splice(n,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var n=this.findClass(e);n&&(n.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);if(!t)return[];var n=this.classProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classProperties[t.name])},e.prototype.getHashProperties=function(e){var t=this.findClass(e);if(!t)return{};var n=this.classHashProperties[t.name];return n||(this.fillPropertiesForClass(t.name),this.classHashProperties[t.name])},e.prototype.fillPropertiesForClass=function(e){var t=new Array,n={};this.fillProperties(e,t,n),this.classProperties[e]=t,this.classHashProperties[e]=n},e.prototype.getDynamicProperties=function(e){if(e.getDynamicProperties&&e.getDynamicType){var t=e.getDynamicProperties();return m.metaData.findProperties(e.getDynamicType(),t)}return[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t=[],n=this.getProperties(e.getType()),r=0;r<n.length;r++)t.push(n[r]);var i=this.getDynamicProperties(e);if(i&&i.length>0)for(var r=0;r<i.length;r++)t.push(i[r]);return t},e.prototype.findProperty=function(e,t){var n=this.getHashProperties(e),r=n[t];return r||null},e.prototype.findProperties=function(e,t){for(var n=[],r=this.getHashProperties(e),i=0;i<t.length;i++){var o=r[t[i]];o&&n.push(o)}return n},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var n=this.findClass(e);if(!n)return null;if(n.creator)return n.creator(t);for(var r=n.parentName;r;){if(!(n=this.findClass(r)))return null;if(r=n.parentName,n.creator)return this.createCustomType(e,n.creator,t)}return null},e.prototype.createCustomType=function(e,t,n){void 0===n&&(n=void 0),e=e.toLowerCase();var r=t(n),i=e,o=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return i},r.getTemplate=function(){return o},a.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=[];return this.fillChildrenClasses(e,t,n),n},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),n=[],r=0;r<t.length;r++)t[r].isRequired&&n.push(t[r].name);return n},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var n=this.findClass(e),r=0;r<t.length;r++)this.addCustomPropertyCore(n,t[r])},e.prototype.addProperty=function(e,t){this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(e){var n=e.createProperty(t);n&&(n.isCustom=!0,this.addPropertyToClass(e,n),this.emptyClassPropertiesHash(e),a.addProperty(e.name,n))}},e.prototype.removeProperty=function(e,t){var n=this.findClass(e);if(!n)return!1;var r=n.find(t);r&&(this.removePropertyFromClass(n,r),this.emptyClassPropertiesHash(n),a.removeProperty(n.name,t))},e.prototype.addPropertyToClass=function(e,t){null==e.find(t.name)&&e.properties.push(t)},e.prototype.removePropertyFromClass=function(e,t){var n=e.properties.indexOf(t);n<0||e.properties.splice(n,1)},e.prototype.emptyClassPropertiesHash=function(e){this.classProperties[e.name]=null,this.classHashProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),n=0;n<t.length;n++)this.classProperties[t[n].name]=null,this.classHashProperties[t[n].name]=null},e.prototype.fillChildrenClasses=function(e,t,n){var r=this.childrenClasses[e];if(r)for(var i=0;i<r.length;i++)t&&!r[i].creator||n.push(r[i]),this.fillChildrenClasses(r[i].name,t,n)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var n=this.alternativeNames[e];if(n&&n!=e)return this.findClass(n)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var n=this.findClass(e);if(!n)return!1;var r=n;do{if(r.name===t)return!0;r=this.classes[r.parentName]}while(r);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.fillProperties=function(e,t,n){var r=this.findClass(e);if(r){r.parentName&&this.fillProperties(r.parentName,t,n);for(var i=0;i<r.properties.length;i++){var o=r.properties[i];this.addPropertyCore(o,t,n),n[o.name]=o}}},e.prototype.addPropertyCore=function(e,t,n){if(!n[e.name])return void t.push(e);for(var r=-1,i=0;i<t.length;i++)if(t[i].name==e.name){r=i;break}e.mergeWith(t[r]),t[r]=e},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,n){var r=e.call(this,"unknownproperty","The property '"+t+"' in class '"+n+"' is unknown.")||this;r.propertyName=t,r.className=n;var i=m.metaData.getProperties(n);if(i){r.description="The list of available properties are: ";for(var o=0;o<i.length;o++)o>0&&(r.description+=", "),r.description+=i[o].name;r.description+="."}return r}return r.a(t,e),t}(l),p=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;i.baseClassName=t,i.type=n,i.message=r,i.description="The following types are available: ";for(var o=m.metaData.getChildrenClasses(t,!0),a=0;a<o.length;a++)a>0&&(i.description+=", "),i.description+="'"+o[a].name+"'";return i.description+=".",i}return r.a(t,e),t}(l),d=function(e){function t(t,n){var r=e.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return r.a(t,e),t}(p),h=function(e){function t(t,n){var r=e.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return r.propertyName=t,r.baseClassName=n,r}return r.a(t,e),t}(p),f=function(e){function t(t,n){var r=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+n+"'.")||this;return r.propertyName=t,r.className=n,r}return r.a(t,e),t}(l),m=function(){function e(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!0,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(t,n){if(t){var r=null,i=void 0,o=!0;if(n.getType&&(i=n.getType(),r=e.metaData.getProperties(i),o=!!i&&!e.metaData.isDescendantOf(i,"itemvalue")),r){n.startLoadingFromJson&&n.startLoadingFromJson(),r=this.addDynamicProperties(n,t,r);for(var a in t)if(a!==e.typePropertyName)if(a!==e.positionPropertyName){var s=this.findProperty(r,a);s?this.valueToObj(t[a],n,s):o&&this.addNewError(new c(a.toString(),i),t)}else n[a]=t[a];n.endLoadingFromJson&&n.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,n,r){if(void 0===r&&(r=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var i={};return null==n||n.className||(i[e.typePropertyName]=n.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),i,r),this.propertiesToJson(t,this.getDynamicProperties(t),i,r),i},e.prototype.getDynamicProperties=function(t){if(t.getDynamicProperties&&t.getDynamicType){var n=t.getDynamicProperties();return e.metaData.findProperties(t.getDynamicType(),n)}return[]},e.prototype.addDynamicProperties=function(e,t,n){if(!e.getDynamicPropertyName)return n;var r=e.getDynamicPropertyName();if(!r)return n;t[r]&&(e[r]=t[r]);for(var i=this.getDynamicProperties(e),o=[],a=0;a<n.length;a++)o.push(n[a]);for(var a=0;a<i.length;a++)o.push(i[a]);return o},e.prototype.propertiesToJson=function(e,t,n,r){void 0===r&&(r=!1);for(var i=0;i<t.length;i++)this.valueToJson(e,n,t[i],r)},e.prototype.valueToJson=function(e,t,n,r){if(void 0===r&&(r=!1),!(!1===n.isSerializable||!1===n.isLightSerializable&&this.lightSerializing)){var i=n.getValue(e);if(r||!n.isDefaultValue(i)){if(this.isValueArray(i)){for(var o=[],a=0;a<i.length;a++)o.push(this.toJsonObjectCore(i[a],n,r));i=o.length>0?o:null}else i=this.toJsonObjectCore(i,n,r);var s="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(n.name,null);(r&&s||!n.isDefaultValue(i))&&(t[n.name]=i)}}},e.prototype.valueToObj=function(e,t,n){if(null!=e){if(this.removePos(n,e),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 r=this.createNewObj(e,n);r.newObj&&(this.toObject(e,r.newObj),e=r.newObj),r.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var n=0;n<t.length;n++)this.removePosFromObj(t[n]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,n){var r={newObj:null,error:null},i=t[e.typePropertyName];return!i&&null!=n&&n.className&&(i=n.className),i=n.getClassName(i),r.newObj=i?e.metaData.createClass(i,t):null,r.error=this.checkNewObjectOnErrors(r.newObj,t,n,i),r},e.prototype.checkNewObjectOnErrors=function(t,n,r,i){var o=null;if(t){var a=e.metaData.getRequiredProperties(i);if(a)for(var s=0;s<a.length;s++)if(!n[a[s]]){o=new f(a[s],i);break}}else r.baseClassName&&(o=i?new h(r.name,r.baseClassName):new d(r.name,r.baseClassName));return o&&this.addNewError(o,n),o},e.prototype.addNewError=function(t,n){n&&n[e.positionPropertyName]&&(t.at=n[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,n,r){t[n]&&e.length>0&&t[n].splice(0,t[n].length),t[n]||(t[n]=[]);for(var i=0;i<e.length;i++){var o=this.createNewObj(e[i],r);o.newObj?(e[i].name&&(o.newObj.name=e[i].name),t[n].push(o.newObj),this.toObject(e[i],o.newObj)):o.error||t[n].push(e[i])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var n=0;n<e.length;n++){var r=e[n];if(r.name==t||r.alternativeName==t)return r}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new u,e}(),g=m.metaData},function(e,t,n){"use strict";var r=n(42);n.d(t,"a",function(){return i}),n.d(t,"b",function(){return o});var i={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=e},getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];t&&t[e]||(t=this.locales[this.defaultLocale]);var n=t[e];return void 0===n&&(n=this.locales.en[e]),n},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 n in this.locales)e.push(n);return e.sort(),e}},o=r.a;i.locales.en=r.a,i.localeNames.en="english"},function(e,t,n){"use strict";var r=n(2),i=n(1);n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var o=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[r.a.getString("choices_Item")+"1",r.a.getString("choices_Item")+"2",r.a.getString("choices_Item")+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=r.a.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=r.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.unregisterElement=function(e){delete this.creatorHash[e]},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 n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),a=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],o.Instance.unregisterElement(e),t&&i.a.removeClass(e)},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 n=this.creatorHash[e];return null==n?o.Instance.createQuestion(e,t):n(t)},e.Instance=new e,e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var n in t)if(!e.isValueEmpty(t[n]))return!1;return!0}return t&&("string"==typeof t||t instanceof String)&&(t=t.trim()),!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,n){if(!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++){for(var i=0;i<n.length&&!e.isTwoValueEquals(t[r],n[i]);i++);if(i===n.length)return!1}return!0},e.isArraysEqual=function(t,n,r){if(void 0===r&&(r=!1),!Array.isArray(t)||!Array.isArray(n))return!1;if(t.length!==n.length)return!1;if(r){for(var i=[],o=[],a=0;a<t.length;a++)i.push(t[a]),o.push(n[a]);i.sort(),o.sort(),t=i,n=o}for(var a=0;a<t.length;a++)if(!e.isTwoValueEquals(t[a],n[a]))return!1;return!0},e.isTwoValueEquals=function(t,n,r){if(void 0===r&&(r=!1),t===n)return!0;if(Array.isArray(t)&&0===t.length&&void 0===n)return!0;if(Array.isArray(n)&&0===n.length&&void 0===t)return!0;if((void 0===t||null===t)&&"undefined"===n)return!0;if((void 0===n||null===n)&&"undefined"===t)return!0;if(t&&!n||!t&&n)return!1;if(!(t instanceof Object||n instanceof Object))return t==n;if(!(t instanceof Object&&n instanceof Object))return!1;if(t.equals)return t.equals(n);if(t.toJSON&&n.toJSON)return this.isTwoValueEquals(t.toJSON(),n.toJSON());if(Array.isArray(t)&&Array.isArray(n))return e.isArraysEqual(t,n,r);for(var i in t)if(t.hasOwnProperty(i)){if(!n.hasOwnProperty(i))return!1;if(t[i]!==n[i]){if("object"!=typeof t[i])return!1;if(!this.isTwoValueEquals(t[i],n[i]))return!1}}for(i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}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,n){return void 0!==e[n]?e[n]:t})})},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(4),a=n(1),s=n(9);n.d(t,"c",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return p});var u=function(){function e(){this.propertyHash={},this.isLoadingFromJsonValue=!1,this.onPropertyChanged=new p,a.d.createProperties(this)}return Object.defineProperty(e,"commentPrefix",{get:function(){return s.a.commentPrefix},set:function(e){s.a.commentPrefix=e},enumerable:!0,configurable:!0}),e.prototype.isValueEmpty=function(e){return o.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.toJSON=function(){return(new a.b).toJsonObject(this)},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.arraysInfo[t];if(n&&n.isItemValues){var r=this.getPropertyValue(t);r&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(r)}}if(this.localizableStrings)for(var t in this.localizableStrings){var n=this.getLocalizableString(t);n&&n.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var n=this.getPropertyValueCore(this.propertyHash,e);if(this.IsPropertyEmpty(n)){if(null!=t)return t;var r=a.a.findProperty(this.getType(),e),i=r&&!r.isCustom?r.defaultValue:null;if(!this.IsPropertyEmpty(i))return i}return n},e.prototype.getPropertyValueCore=function(e,t){return this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(e,t):e[t]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,n){this.setPropertyValueCoreHandler?this.setPropertyValueCoreHandler(e,t,n):e[t]=n},e.prototype.iteratePropertiesHash=function(e){var t=this,n=[];for(var r in this.propertyHash)n.push(r);n.forEach(function(n){return e(t.propertyHash,n)})},e.prototype.setPropertyValue=function(e,t){var n=this.getPropertyValue(e);if(n&&Array.isArray(n)){if(this.isTwoValueEquals(n,t))return;var r=this.arraysInfo[e];this.setArray(n,t,!!r&&r.isItemValues,r?r.onPush:null),this.propertyValueChanged(e,n,n)}else this.setPropertyValueCore(this.propertyHash,e,t),this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t)},e.prototype.propertyValueChanged=function(e,t,n){if(!this.isLoadingFromJson&&(this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:n}),this.onPropChangeFunctions))for(var r=0;r<this.onPropChangeFunctions.length;r++)this.onPropChangeFunctions[r].name==e&&this.onPropChangeFunctions[r].func(n)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,n){if(void 0===n&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var i=this.onPropChangeFunctions[r];if(i.name==e&&i.key==n)return void(i.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:n})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,n){void 0===n&&(n=null);for(var r=0;r<e.length;r++)this.registerFunctionOnPropertyValueChanged(e[r],t,n)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==e&&r.key==t)return void this.onPropChangeFunctions.splice(n,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null);for(var n=0;n<e.length;n++)this.unRegisterFunctionOnPropertyValueChanged(e[n],t)},e.prototype.createCustomLocalizableObj=function(e){!this.getLocalizableString(e)&&this.getLocale&&this.createLocalizableString(e,this)},e.prototype.createLocalizableString=function(e,t,n){void 0===n&&(n=!1);var r=new i.a(t,n);return this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=r,r},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(e,t){void 0===t&&(t="");var n=this.getLocalizableString(e);if(!n)return"";var r=n.text;return r||t},e.prototype.setLocalizableStringText=function(e,t){var n=this.getLocalizableString(e);if(n){var r=n.text;r!==t&&(n.text=t,this.propertyValueChanged(e,r,t))}},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings){var n=this.getLocalizableString(t);n&&this.AddLocStringToUsedLocales(n,e)}if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.getPropertyValue(t);if(r&&r.length)for(var i=0;i<r.length;i++){var n=r[i];n&&n.addUsedLocales&&n.addUsedLocales(e)}}},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var n=e.getLocales(),r=0;r<n.length;r++)t.indexOf(n[r])<0&&t.push(n[r])},e.prototype.createItemValues=function(e){var t=this,n=this.createNewArray(e,function(e){e.locOwner=t});return this.arraysInfo[e].isItemValues=!0,n},e.prototype.notifyArrayChanged=function(e){!!e.onArrayChanged&&e.onArrayChanged()},e.prototype.createNewArray=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=new Array;this.setPropertyValueCore(this.propertyHash,e,r),this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var i=this;return r.push=function(n){var o=Object.getPrototypeOf(r).push.call(r,n);return t&&t(n,r.length-1),i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),o},r.unshift=function(n){var o=Object.getPrototypeOf(r).unshift.call(r,n);return t&&t(n,r.length-1),i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),o},r.pop=function(){var t=Object.getPrototypeOf(r).pop.call(r);return n&&n(t),i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),t},r.splice=function(o,a){for(var s=[],u=2;u<arguments.length;u++)s[u-2]=arguments[u];o||(o=0),a||(a=0);var l=(p=Object.getPrototypeOf(r).splice).call.apply(p,[r,o,a].concat(s));if(s||(s=[]),n&&l)for(var c=0;c<l.length;c++)n(l[c]);if(t)for(var c=0;c<s.length;c++)t(s[c],o+c);return i.propertyValueChanged(e,r,r),i.notifyArrayChanged(r),l;var p},r},e.prototype.setArray=function(t,n,r,i){if(Object.getPrototypeOf(t).splice.call(t,0,t.length),!n)return void this.notifyArrayChanged(t);for(var o=0;o<n.length;o++){var a=n[o];r&&e.createItemValue&&(a=e.createItemValue(a)),Object.getPrototypeOf(t).push.call(t,a),i&&i(t[o])}this.notifyArrayChanged(t)},e.prototype.isTwoValueEquals=function(e,t){return o.a.isTwoValueEquals(e,t)},e}(),l=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t}return Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new i.a(this.errorOwner,!0),this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!0,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e}(),c=function(e){function t(t){var n=e.call(this)||this;n.selectedElementInDesignValue=n,n.name=t,n.createNewArray("errors");var r=n;return n.registerFunctionOnPropertyValueChanged("isReadOnly",function(){r.onReadOnlyChanged()}),n}return r.a(t,e),t.ScrollElementToTop=function(e){if(!e)return!1;var t=document.getElementById(e);if(!t||!t.scrollIntoView)return!1;var n=t.getBoundingClientRect().top;return n<0&&t.scrollIntoView(),n<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?this.surveyValue:(this.surveyImplValue&&(this.surveyValue=this.surveyImplValue.getSurvey()),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,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},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.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!0,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"isLoadingFromJson",{get:function(){return!!this.isLoadingFromJsonValue||!!this.survey&&this.survey.isLoadingFromJson},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",e),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!0,configurable:!0}),t.prototype.onNameChanged=function(e){},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",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.onFirstRendering=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,"isPage",{get:function(){return!1},enumerable:!0,configurable:!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.moveToBase=function(e,t,n){if(void 0===n&&(n=null),!t)return!1;e.removeElement(this);var r=-1;return!isNaN(parseFloat(n))&&isFinite(n)&&(r=parseInt(n)),-1==r&&n&&n.getType&&(r=t.indexOf(n)),t.addElement(this,r),!0},t.prototype.setPage=function(e,t){this.getPage(e)!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.copyObject=function(e,t){for(var n in t){var r=t[n];"object"==typeof r&&(r={},this.copyObject(r,t[n])),e[n]=r}},t.prototype.copyCssClasses=function(e,n){n&&("string"==typeof n||n instanceof String?e.root=n:t.copyObject(e,n))},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 n=0;n<this.callbacks.length;n++){this.callbacks[n](e,t)}},e.prototype.clear=function(){this.callbacks=[]},e.prototype.add=function(e){this.hasFunc(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.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e}()},function(e,t,n){var r,i,o;/*!
* Knockout JavaScript library v3.4.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(){var a=!0;!function(s){var u=this||(0,eval)("this"),l=u.document,c=u.navigator,p=u.jQuery,d=u.JSON;!function(a){i=[t,n],r=a,(o="function"==typeof r?r.apply(t,i):r)!==s&&(e.exports=o)}(function(e,t){function n(e,t){return!!(null===e||typeof e in b)&&e===t}function r(e,t){var n;return function(){n||(n=v.utils.setTimeout(function(){n=s,e()},t))}}function i(e,t){var n;return function(){clearTimeout(n),n=v.utils.setTimeout(e,t)}}function o(e){var t=this;return e&&v.utils.objectForEach(e,function(e,n){var r=v.extenders[e];"function"==typeof r&&(t=r(t,n)||t)}),t}function h(e,t){t&&t!==x?"beforeChange"===t?this._limitBeforeChange(e):this._origNotifySubscribers(e,t):this._limitChange(e)}function f(e,t){null!==t&&t.dispose&&t.dispose()}function m(e,t){var n=this.computedObservable,r=n[S];r.isDisposed||(this.disposalCount&&this.disposalCandidates[t]?(n.addDependencyTracking(t,e,this.disposalCandidates[t]),this.disposalCandidates[t]=null,--this.disposalCount):r.dependencyTracking[t]||n.addDependencyTracking(t,e,r.isSleeping?{_target:e}:n.subscribeToDependency(e)))}function g(e){v.bindingHandlers[e]={init:function(t,n,r,i,o){var a=function(){var t={};return t[e]=n(),t};return v.bindingHandlers.event.init.call(this,t,a,r,i,o)}}}function y(e,t,n,r){v.bindingHandlers[e]={init:function(e,i,o,a,s){var u,l;return v.computed(function(){var o=v.utils.unwrapObservable(i()),a=!n!=!o,c=!l;(c||t||a!==u)&&(c&&v.computedContext.getDependenciesCount()&&(l=v.utils.cloneNodes(v.virtualElements.childNodes(e),!0)),a?(c||v.virtualElements.setDomNodeChildren(e,v.utils.cloneNodes(l)),v.applyBindingsToDescendants(r?r(s,o):s,e)):v.virtualElements.emptyNode(e),u=a)},null,{disposeWhenNodeIsRemoved:e}),{controlsDescendantBindings:!0}}},v.expressionRewriting.bindingRewriteValidators[e]=!1,v.virtualElements.allowedBindings[e]=!0}var v=void 0!==e?e:{};v.exportSymbol=function(e,t){for(var n=e.split("."),r=v,i=0;i<n.length-1;i++)r=r[n[i]];r[n[n.length-1]]=t},v.exportProperty=function(e,t,n){e[t]=n},v.version="3.4.0",v.exportSymbol("version",v.version),v.options={deferUpdates:!1,useOnlyNativeEvents:!1},v.utils=function(){function e(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function r(e,t){if("input"!==v.utils.tagNameLower(e)||!e.type)return!1;if("click"!=t.toLowerCase())return!1;var n=e.type;return"checkbox"==n||"radio"==n}function i(e,t,n){var r;t&&("object"==typeof e.classList?(r=e.classList[n?"add":"remove"],v.utils.arrayForEach(t.match(w),function(t){r.call(e.classList,t)})):"string"==typeof e.className.baseVal?o(e.className,"baseVal",t,n):o(e,"className",t,n))}function o(e,t,n,r){var i=e[t].match(w)||[];v.utils.arrayForEach(n.match(w),function(e){v.utils.addOrRemoveItem(i,e,r)}),e[t]=i.join(" ")}var h={__proto__:[]}instanceof Array,f=!a&&"function"==typeof Symbol,m={},g={};m[c&&/Firefox\/2/i.test(c.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],m.MouseEvents=["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave"],e(m,function(e,t){if(t.length)for(var n=0,r=t.length;n<r;n++)g[t[n]]=e});var y={propertychange:!0},b=l&&function(){for(var e=3,t=l.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return e>4?e:s}(),x=6===b,C=7===b,w=/\S+/g;return{fieldsIncludedWithJsonPost:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],arrayForEach:function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)},arrayIndexOf:function(e,t){if("function"==typeof Array.prototype.indexOf)return Array.prototype.indexOf.call(e,t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},arrayFirst:function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r))return e[r];return null},arrayRemoveItem:function(e,t){var n=v.utils.arrayIndexOf(e,t);n>0?e.splice(n,1):0===n&&e.shift()},arrayGetDistinctValues:function(e){e=e||[];for(var t=[],n=0,r=e.length;n<r;n++)v.utils.arrayIndexOf(t,e[n])<0&&t.push(e[n]);return t},arrayMap:function(e,t){e=e||[];for(var n=[],r=0,i=e.length;r<i;r++)n.push(t(e[r],r));return n},arrayFilter:function(e,t){e=e||[];for(var n=[],r=0,i=e.length;r<i;r++)t(e[r],r)&&n.push(e[r]);return n},arrayPushAll:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,r=t.length;n<r;n++)e.push(t[n]);return e},addOrRemoveItem:function(e,t,n){var r=v.utils.arrayIndexOf(v.utils.peekObservable(e),t);r<0?n&&e.push(t):n||e.splice(r,1)},canSetPrototype:h,extend:t,setPrototypeOf:n,setPrototypeOfOrExtend:h?n:t,objectForEach:e,objectMap:function(e,t){if(!e)return e;var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r],r,e));return n},emptyDomNode:function(e){for(;e.firstChild;)v.removeNode(e.firstChild)},moveCleanedNodesToContainerElement:function(e){for(var t=v.utils.makeArray(e),n=t[0]&&t[0].ownerDocument||l,r=n.createElement("div"),i=0,o=t.length;i<o;i++)r.appendChild(v.cleanNode(t[i]));return r},cloneNodes:function(e,t){for(var n=0,r=e.length,i=[];n<r;n++){var o=e[n].cloneNode(!0);i.push(t?v.cleanNode(o):o)}return i},setDomNodeChildren:function(e,t){if(v.utils.emptyDomNode(e),t)for(var n=0,r=t.length;n<r;n++)e.appendChild(t[n])},replaceDomNodes:function(e,t){var n=e.nodeType?[e]:e;if(n.length>0){for(var r=n[0],i=r.parentNode,o=0,a=t.length;o<a;o++)i.insertBefore(t[o],r);for(var o=0,a=n.length;o<a;o++)v.removeNode(n[o])}},fixUpContinuousNodeArray:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;e.length>1&&e[e.length-1].parentNode!==t;)e.length--;if(e.length>1){var n=e[0],r=e[e.length-1];for(e.length=0;n!==r;)e.push(n),n=n.nextSibling;e.push(r)}}return e},setOptionNodeSelectionState:function(e,t){b<7?e.setAttribute("selected",t):e.selected=t},stringTrim:function(e){return null===e||e===s?"":e.trim?e.trim():e.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},stringStartsWith:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},domNodeIsContainedBy:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(3===e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},domNodeIsAttachedToDocument:function(e){return v.utils.domNodeIsContainedBy(e,e.ownerDocument.documentElement)},anyDomNodeIsAttachedToDocument:function(e){return!!v.utils.arrayFirst(e,v.utils.domNodeIsAttachedToDocument)},tagNameLower:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},catchFunctionErrors:function(e){return v.onError?function(){try{return e.apply(this,arguments)}catch(e){throw v.onError&&v.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(v.utils.catchFunctionErrors(e),t)},deferError:function(e){setTimeout(function(){throw v.onError&&v.onError(e),e},0)},registerEventHandler:function(e,t,n){var r=v.utils.catchFunctionErrors(n),i=b&&y[t];if(v.options.useOnlyNativeEvents||i||!p)if(i||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw new Error("Browser doesn't support addEventListener or attachEvent");var o=function(t){r.call(e,t)},a="on"+t;e.attachEvent(a,o),v.utils.domNodeDisposal.addDisposeCallback(e,function(){e.detachEvent(a,o)})}else e.addEventListener(t,r,!1);else p(e).bind(t,r)},triggerEvent:function(e,t){if(!e||!e.nodeType)throw new Error("element must be a DOM node when calling triggerEvent");var n=r(e,t);if(v.options.useOnlyNativeEvents||!p||n)if("function"==typeof l.createEvent){if("function"!=typeof e.dispatchEvent)throw new Error("The supplied element doesn't support dispatchEvent");var i=g[t]||"HTMLEvents",o=l.createEvent(i);o.initEvent(t,!0,!0,u,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(o)}else if(n&&e.click)e.click();else{if(void 0===e.fireEvent)throw new Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else p(e).trigger(t)},unwrapObservable:function(e){return v.isObservable(e)?e():e},peekObservable:function(e){return v.isObservable(e)?e.peek():e},toggleDomNodeCssClass:i,setTextContent:function(e,t){var n=v.utils.unwrapObservable(t);null!==n&&n!==s||(n="");var r=v.virtualElements.firstChild(e);!r||3!=r.nodeType||v.virtualElements.nextSibling(r)?v.virtualElements.setDomNodeChildren(e,[e.ownerDocument.createTextNode(n)]):r.data=n,v.utils.forceRefresh(e)},setElementName:function(e,t){if(e.name=t,b<=7)try{e.mergeAttributes(l.createElement("<input name='"+e.name+"'/>"),!1)}catch(e){}},forceRefresh:function(e){if(b>=9){var t=1==e.nodeType?e:e.parentNode;t.style&&(t.style.zoom=t.style.zoom)}},ensureSelectElementIsRenderedCorrectly:function(e){if(b){var t=e.style.width;e.style.width=0,e.style.width=t}},range:function(e,t){e=v.utils.unwrapObservable(e),t=v.utils.unwrapObservable(t);for(var n=[],r=e;r<=t;r++)n.push(r);return n},makeArray:function(e){for(var t=[],n=0,r=e.length;n<r;n++)t.push(e[n]);return t},createSymbolOrString:function(e){return f?Symbol(e):e},isIe6:x,isIe7:C,ieVersion:b,getFormFields:function(e,t){for(var n=v.utils.makeArray(e.getElementsByTagName("input")).concat(v.utils.makeArray(e.getElementsByTagName("textarea"))),r="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},i=[],o=n.length-1;o>=0;o--)r(n[o])&&i.push(n[o]);return i},parseJson:function(e){return"string"==typeof e&&(e=v.utils.stringTrim(e))?d&&d.parse?d.parse(e):new Function("return "+e)():null},stringifyJson:function(e,t,n){if(!d||!d.stringify)throw new Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return d.stringify(v.utils.unwrapObservable(e),t,n)},postJson:function(t,n,r){r=r||{};var i=r.params||{},o=r.includeFields||this.fieldsIncludedWithJsonPost,a=t;if("object"==typeof t&&"form"===v.utils.tagNameLower(t)){var s=t;a=s.action;for(var u=o.length-1;u>=0;u--)for(var c=v.utils.getFormFields(s,o[u]),p=c.length-1;p>=0;p--)i[c[p].name]=c[p].value}n=v.utils.unwrapObservable(n);var d=l.createElement("form");d.style.display="none",d.action=a,d.method="post";for(var h in n){var f=l.createElement("input");f.type="hidden",f.name=h,f.value=v.utils.stringifyJson(v.utils.unwrapObservable(n[h])),d.appendChild(f)}e(i,function(e,t){var n=l.createElement("input");n.type="hidden",n.name=e,n.value=t,d.appendChild(n)}),l.body.appendChild(d),r.submitter?r.submitter(d):d.submit(),setTimeout(function(){d.parentNode.removeChild(d)},0)}}}(),v.exportSymbol("utils",v.utils),v.exportSymbol("utils.arrayForEach",v.utils.arrayForEach),v.exportSymbol("utils.arrayFirst",v.utils.arrayFirst),v.exportSymbol("utils.arrayFilter",v.utils.arrayFilter),v.exportSymbol("utils.arrayGetDistinctValues",v.utils.arrayGetDistinctValues),v.exportSymbol("utils.arrayIndexOf",v.utils.arrayIndexOf),v.exportSymbol("utils.arrayMap",v.utils.arrayMap),v.exportSymbol("utils.arrayPushAll",v.utils.arrayPushAll),v.exportSymbol("utils.arrayRemoveItem",v.utils.arrayRemoveItem),v.exportSymbol("utils.extend",v.utils.extend),v.exportSymbol("utils.fieldsIncludedWithJsonPost",v.utils.fieldsIncludedWithJsonPost),v.exportSymbol("utils.getFormFields",v.utils.getFormFields),v.exportSymbol("utils.peekObservable",v.utils.peekObservable),v.exportSymbol("utils.postJson",v.utils.postJson),v.exportSymbol("utils.parseJson",v.utils.parseJson),v.exportSymbol("utils.registerEventHandler",v.utils.registerEventHandler),v.exportSymbol("utils.stringifyJson",v.utils.stringifyJson),v.exportSymbol("utils.range",v.utils.range),v.exportSymbol("utils.toggleDomNodeCssClass",v.utils.toggleDomNodeCssClass),v.exportSymbol("utils.triggerEvent",v.utils.triggerEvent),v.exportSymbol("utils.unwrapObservable",v.utils.unwrapObservable),v.exportSymbol("utils.objectForEach",v.utils.objectForEach),v.exportSymbol("utils.addOrRemoveItem",v.utils.addOrRemoveItem),v.exportSymbol("utils.setTextContent",v.utils.setTextContent),v.exportSymbol("unwrap",v.utils.unwrapObservable),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var r=n.slice(0);return r.push.apply(r,arguments),t.apply(e,r)}}),v.utils.domData=new function(){function e(e,i){var o=e[n];if(!o||"null"===o||!r[o]){if(!i)return s;o=e[n]="ko"+t++,r[o]={}}return r[o]}var t=0,n="__ko__"+(new Date).getTime(),r={};return{get:function(t,n){var r=e(t,!1);return r===s?s:r[n]},set:function(t,n,r){if(r!==s||e(t,!1)!==s){e(t,!0)[n]=r}},clear:function(e){var t=e[n];return!!t&&(delete r[t],e[n]=null,!0)},nextKey:function(){return t+++n}}},v.exportSymbol("utils.domData",v.utils.domData),v.exportSymbol("utils.domData.clear",v.utils.domData.clear),v.utils.domNodeDisposal=new function(){function e(e,t){var n=v.utils.domData.get(e,i);return n===s&&t&&(n=[],v.utils.domData.set(e,i,n)),n}function t(e){v.utils.domData.set(e,i,s)}function n(t){var n=e(t,!1);if(n){n=n.slice(0);for(var i=0;i<n.length;i++)n[i](t)}v.utils.domData.clear(t),v.utils.domNodeDisposal.cleanExternalData(t),a[t.nodeType]&&r(t)}function r(e){for(var t,r=e.firstChild;t=r;)r=t.nextSibling,8===t.nodeType&&n(t)}var i=v.utils.domData.nextKey(),o={1:!0,8:!0,9:!0},a={1:!0,9:!0};return{addDisposeCallback:function(t,n){if("function"!=typeof n)throw new Error("Callback must be a function");e(t,!0).push(n)},removeDisposeCallback:function(n,r){var i=e(n,!1);i&&(v.utils.arrayRemoveItem(i,r),0==i.length&&t(n))},cleanNode:function(e){if(o[e.nodeType]&&(n(e),a[e.nodeType])){var t=[];v.utils.arrayPushAll(t,e.getElementsByTagName("*"));for(var r=0,i=t.length;r<i;r++)n(t[r])}return e},removeNode:function(e){v.cleanNode(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){p&&"function"==typeof p.cleanData&&p.cleanData([e])}}},v.cleanNode=v.utils.domNodeDisposal.cleanNode,v.removeNode=v.utils.domNodeDisposal.removeNode,v.exportSymbol("cleanNode",v.cleanNode),v.exportSymbol("removeNode",v.removeNode),v.exportSymbol("utils.domNodeDisposal",v.utils.domNodeDisposal),v.exportSymbol("utils.domNodeDisposal.addDisposeCallback",v.utils.domNodeDisposal.addDisposeCallback),v.exportSymbol("utils.domNodeDisposal.removeDisposeCallback",v.utils.domNodeDisposal.removeDisposeCallback),function(){function e(e){var t=e.match(/^<([a-z]+)[ >]/);return t&&d[t[1]]||r}function t(t,n){n||(n=l);var r=n.parentWindow||n.defaultView||u,i=v.utils.stringTrim(t).toLowerCase(),o=n.createElement("div"),a=e(i),s=a[0],c="ignored<div>"+a[1]+t+a[2]+"</div>";for("function"==typeof r.innerShiv?o.appendChild(r.innerShiv(c)):(h&&n.appendChild(o),o.innerHTML=c,h&&o.parentNode.removeChild(o));s--;)o=o.lastChild;return v.utils.makeArray(o.lastChild.childNodes)}function n(e,t){if(p.parseHTML)return p.parseHTML(e,t)||[];var n=p.clean([e],t);if(n&&n[0]){for(var r=n[0];r.parentNode&&11!==r.parentNode.nodeType;)r=r.parentNode;r.parentNode&&r.parentNode.removeChild(r)}return n}var r=[0,"",""],i=[1,"<table>","</table>"],o=[2,"<table><tbody>","</tbody></table>"],a=[3,"<table><tbody><tr>","</tr></tbody></table>"],c=[1,"<select multiple='multiple'>","</select>"],d={thead:i,tbody:i,tfoot:i,tr:o,td:a,th:a,option:c,optgroup:c},h=v.utils.ieVersion<=8;v.utils.parseHtmlFragment=function(e,r){return p?n(e,r):t(e,r)},v.utils.setHtml=function(e,t){if(v.utils.emptyDomNode(e),null!==(t=v.utils.unwrapObservable(t))&&t!==s)if("string"!=typeof t&&(t=t.toString()),p)p(e).html(t);else for(var n=v.utils.parseHtmlFragment(t,e.ownerDocument),r=0;r<n.length;r++)e.appendChild(n[r])}}(),v.exportSymbol("utils.parseHtmlFragment",v.utils.parseHtmlFragment),v.exportSymbol("utils.setHtml",v.utils.setHtml),v.memoization=function(){function e(){return(4294967296*(1+Math.random())|0).toString(16).substring(1)}function t(){return e()+e()}function n(e,t){if(e)if(8==e.nodeType){var r=v.memoization.parseMemoText(e.nodeValue);null!=r&&t.push({domNode:e,memoId:r})}else if(1==e.nodeType)for(var i=0,o=e.childNodes,a=o.length;i<a;i++)n(o[i],t)}var r={};return{memoize:function(e){if("function"!=typeof e)throw new Error("You can only pass a function to ko.memoization.memoize()");var n=t();return r[n]=e,"\x3c!--[ko_memo:"+n+"]--\x3e"},unmemoize:function(e,t){var n=r[e];if(n===s)throw new Error("Couldn't find any memo with ID "+e+". Perhaps it's already been unmemoized.");try{return n.apply(null,t||[]),!0}finally{delete r[e]}},unmemoizeDomNodeAndDescendants:function(e,t){var r=[];n(e,r);for(var i=0,o=r.length;i<o;i++){var a=r[i].domNode,s=[a];t&&v.utils.arrayPushAll(s,t),v.memoization.unmemoize(r[i].memoId,s),a.nodeValue="",a.parentNode&&a.parentNode.removeChild(a)}},parseMemoText:function(e){var t=e.match(/^\[ko_memo\:(.*?)\]$/);return t?t[1]:null}}}(),v.exportSymbol("memoization",v.memoization),v.exportSymbol("memoization.memoize",v.memoization.memoize),v.exportSymbol("memoization.unmemoize",v.memoization.unmemoize),v.exportSymbol("memoization.parseMemoText",v.memoization.parseMemoText),v.exportSymbol("memoization.unmemoizeDomNodeAndDescendants",v.memoization.unmemoizeDomNodeAndDescendants),v.tasks=function(){function e(){if(o)for(var e,t=o,n=0;s<o;)if(e=i[s++]){if(s>t){if(++n>=5e3){s=o,v.utils.deferError(Error("'Too much recursion' after processing "+n+" task groups."));break}t=o}try{e()}catch(e){v.utils.deferError(e)}}}function t(){e(),s=o=i.length=0}function n(){v.tasks.scheduler(t)}var r,i=[],o=0,a=1,s=0;return r=u.MutationObserver?function(e){var t=l.createElement("div");return new MutationObserver(e).observe(t,{attributes:!0}),function(){t.classList.toggle("foo")}}(t):l&&"onreadystatechange"in l.createElement("script")?function(e){var t=l.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,l.documentElement.removeChild(t),t=null,e()},l.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:r,schedule:function(e){return o||n(),i[o++]=e,a++},cancel:function(e){var t=e-(a-o);t>=s&&t<o&&(i[t]=null)},resetForTesting:function(){var e=o-s;return s=o=i.length=0,e},runEarly:e}}(),v.exportSymbol("tasks",v.tasks),v.exportSymbol("tasks.schedule",v.tasks.schedule),v.exportSymbol("tasks.runEarly",v.tasks.runEarly),v.extenders={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return v.dependentObservable({read:e,write:function(r){clearTimeout(n),n=v.utils.setTimeout(function(){e(r)},t)}})},rateLimit:function(e,t){var n,o,a;"number"==typeof t?n=t:(n=t.timeout,o=t.method),e._deferUpdates=!1,a="notifyWhenChangesStop"==o?i:r,e.limit(function(e){return a(e,n)})},deferred:function(e,t){if(!0!==t)throw new Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");e._deferUpdates||(e._deferUpdates=!0,e.limit(function(t){var n;return function(){v.tasks.cancel(n),n=v.tasks.schedule(t),e.notifySubscribers(s,"dirty")}}))},notify:function(e,t){e.equalityComparer="always"==t?null:n}};var b={undefined:1,boolean:1,number:1,string:1};v.exportSymbol("extenders",v.extenders),v.subscription=function(e,t,n){this._target=e,this.callback=t,this.disposeCallback=n,this.isDisposed=!1,v.exportProperty(this,"dispose",this.dispose)},v.subscription.prototype.dispose=function(){this.isDisposed=!0,this.disposeCallback()},v.subscribable=function(){v.utils.setPrototypeOfOrExtend(this,C),C.init(this)};var x="change",C={init:function(e){e._subscriptions={},e._versionNumber=1},subscribe:function(e,t,n){var r=this;n=n||x;var i=t?e.bind(t):e,o=new v.subscription(r,i,function(){v.utils.arrayRemoveItem(r._subscriptions[n],o),r.afterSubscriptionRemove&&r.afterSubscriptionRemove(n)});return r.beforeSubscriptionAdd&&r.beforeSubscriptionAdd(n),r._subscriptions[n]||(r._subscriptions[n]=[]),r._subscriptions[n].push(o),o},notifySubscribers:function(e,t){if(t=t||x,t===x&&this.updateVersion(),this.hasSubscriptionsForEvent(t))try{v.dependencyDetection.begin();for(var n,r=this._subscriptions[t].slice(0),i=0;n=r[i];++i)n.isDisposed||n.callback(e)}finally{v.dependencyDetection.end()}},getVersion:function(){return this._versionNumber},hasChanged:function(e){return this.getVersion()!==e},updateVersion:function(){++this._versionNumber},limit:function(e){var t,n,r,i=this,o=v.isObservable(i),a="beforeChange";i._origNotifySubscribers||(i._origNotifySubscribers=i.notifySubscribers,i.notifySubscribers=h);var s=e(function(){i._notificationIsPending=!1,o&&r===i&&(r=i()),t=!1,i.isDifferent(n,r)&&i._origNotifySubscribers(n=r)});i._limitChange=function(e){i._notificationIsPending=t=!0,r=e,s()},i._limitBeforeChange=function(e){t||(n=e,i._origNotifySubscribers(e,a))}},hasSubscriptionsForEvent:function(e){return this._subscriptions[e]&&this._subscriptions[e].length},getSubscriptionsCount:function(e){if(e)return this._subscriptions[e]&&this._subscriptions[e].length||0;var t=0;return v.utils.objectForEach(this._subscriptions,function(e,n){"dirty"!==e&&(t+=n.length)}),t},isDifferent:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},extend:o};v.exportProperty(C,"subscribe",C.subscribe),v.exportProperty(C,"extend",C.extend),v.exportProperty(C,"getSubscriptionsCount",C.getSubscriptionsCount),v.utils.canSetPrototype&&v.utils.setPrototypeOf(C,Function.prototype),v.subscribable.fn=C,v.isSubscribable=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},v.exportSymbol("subscribable",v.subscribable),v.exportSymbol("isSubscribable",v.isSubscribable),v.computedContext=v.dependencyDetection=function(){function e(){return++o}function t(e){i.push(r),r=e}function n(){r=i.pop()}var r,i=[],o=0;return{begin:t,end:n,registerDependency:function(t){if(r){if(!v.isSubscribable(t))throw new Error("Only subscribable things can act as dependencies");r.callback.call(r.callbackTarget,t,t._id||(t._id=e()))}},ignore:function(e,r,i){try{return t(),e.apply(r,i||[])}finally{n()}},getDependenciesCount:function(){if(r)return r.computed.getDependenciesCount()},isInitial:function(){if(r)return r.isInitial}}}(),v.exportSymbol("computedContext",v.computedContext),v.exportSymbol("computedContext.getDependenciesCount",v.computedContext.getDependenciesCount),v.exportSymbol("computedContext.isInitial",v.computedContext.isInitial),v.exportSymbol("ignoreDependencies",v.ignoreDependencies=v.dependencyDetection.ignore);var w=v.utils.createSymbolOrString("_latestValue");v.observable=function(e){function t(){return arguments.length>0?(t.isDifferent(t[w],arguments[0])&&(t.valueWillMutate(),t[w]=arguments[0],t.valueHasMutated()),this):(v.dependencyDetection.registerDependency(t),t[w])}return t[w]=e,v.utils.canSetPrototype||v.utils.extend(t,v.subscribable.fn),v.subscribable.fn.init(t),v.utils.setPrototypeOfOrExtend(t,P),v.options.deferUpdates&&v.extenders.deferred(t,!0),t};var P={equalityComparer:n,peek:function(){return this[w]},valueHasMutated:function(){this.notifySubscribers(this[w])},valueWillMutate:function(){this.notifySubscribers(this[w],"beforeChange")}};v.utils.canSetPrototype&&v.utils.setPrototypeOf(P,v.subscribable.fn);var V=v.observable.protoProperty="__ko_proto__";P[V]=v.observable,v.hasPrototype=function(e,t){return null!==e&&e!==s&&e[V]!==s&&(e[V]===t||v.hasPrototype(e[V],t))},v.isObservable=function(e){return v.hasPrototype(e,v.observable)},v.isWriteableObservable=function(e){return"function"==typeof e&&e[V]===v.observable||!("function"!=typeof e||e[V]!==v.dependentObservable||!e.hasWriteFunction)},v.exportSymbol("observable",v.observable),v.exportSymbol("isObservable",v.isObservable),v.exportSymbol("isWriteableObservable",v.isWriteableObservable),v.exportSymbol("isWritableObservable",v.isWriteableObservable),v.exportSymbol("observable.fn",P),v.exportProperty(P,"peek",P.peek),v.exportProperty(P,"valueHasMutated",P.valueHasMutated),v.exportProperty(P,"valueWillMutate",P.valueWillMutate),v.observableArray=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw new Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");var t=v.observable(e);return v.utils.setPrototypeOfOrExtend(t,v.observableArray.fn),t.extend({trackArrayChanges:!0})},v.observableArray.fn={remove:function(e){for(var t=this.peek(),n=[],r="function"!=typeof e||v.isObservable(e)?function(t){return t===e}:e,i=0;i<t.length;i++){var o=t[i];r(o)&&(0===n.length&&this.valueWillMutate(),n.push(o),t.splice(i,1),i--)}return n.length&&this.valueHasMutated(),n},removeAll:function(e){if(e===s){var t=this.peek(),n=t.slice(0);return this.valueWillMutate(),t.splice(0,t.length),this.valueHasMutated(),n}return e?this.remove(function(t){return v.utils.arrayIndexOf(e,t)>=0}):[]},destroy:function(e){var t=this.peek(),n="function"!=typeof e||v.isObservable(e)?function(t){return t===e}:e;this.valueWillMutate();for(var r=t.length-1;r>=0;r--){n(t[r])&&(t[r]._destroy=!0)}this.valueHasMutated()},destroyAll:function(e){return e===s?this.destroy(function(){return!0}):e?this.destroy(function(t){return v.utils.arrayIndexOf(e,t)>=0}):[]},indexOf:function(e){var t=this();return v.utils.arrayIndexOf(t,e)},replace:function(e,t){var n=this.indexOf(e);n>=0&&(this.valueWillMutate(),this.peek()[n]=t,this.valueHasMutated())}},v.utils.canSetPrototype&&v.utils.setPrototypeOf(v.observableArray.fn,v.observable.fn),v.utils.arrayForEach(["pop","push","reverse","shift","sort","splice","unshift"],function(e){v.observableArray.fn[e]=function(){var t=this.peek();this.valueWillMutate(),this.cacheDiffForKnownOperation(t,e,arguments);var n=t[e].apply(t,arguments);return this.valueHasMutated(),n===t?this:n}}),v.utils.arrayForEach(["slice"],function(e){v.observableArray.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}}),v.exportSymbol("observableArray",v.observableArray);var T="arrayChange";v.extenders.trackArrayChanges=function(e,t){function n(){if(!o){o=!0;var t=e.notifySubscribers;e.notifySubscribers=function(e,n){return n&&n!==x||++s,t.apply(this,arguments)};var n=[].concat(e.peek()||[]);a=null,i=e.subscribe(function(t){if(t=[].concat(t||[]),e.hasSubscriptionsForEvent(T))var i=r(n,t);n=t,a=null,s=0,i&&i.length&&e.notifySubscribers(i,T)})}}function r(t,n){return(!a||s>1)&&(a=v.utils.compareArrays(t,n,e.compareArrayOptions)),a}if(e.compareArrayOptions={},t&&"object"==typeof t&&v.utils.extend(e.compareArrayOptions,t),e.compareArrayOptions.sparse=!0,!e.cacheDiffForKnownOperation){var i,o=!1,a=null,s=0,u=e.beforeSubscriptionAdd,l=e.afterSubscriptionRemove;e.beforeSubscriptionAdd=function(t){u&&u.call(e,t),t===T&&n()},e.afterSubscriptionRemove=function(t){l&&l.call(e,t),t!==T||e.hasSubscriptionsForEvent(T)||(i.dispose(),o=!1)},e.cacheDiffForKnownOperation=function(e,t,n){function r(e,t,n){return i[i.length]={status:e,value:t,index:n}}if(o&&!s){var i=[],u=e.length,l=n.length,c=0;switch(t){case"push":c=u;case"unshift":for(var p=0;p<l;p++)r("added",n[p],c+p);break;case"pop":c=u-1;case"shift":u&&r("deleted",e[c],c);break;case"splice":for(var d=Math.min(Math.max(0,n[0]<0?u+n[0]:n[0]),u),h=1===l?u:Math.min(d+(n[1]||0),u),f=d+l-2,m=Math.max(h,f),g=[],y=[],p=d,b=2;p<m;++p,++b)p<h&&y.push(r("deleted",e[p],p)),p<f&&g.push(r("added",n[b],p));v.utils.findMovesInArrayComparison(y,g);break;default:return}a=i}}}};var S=v.utils.createSymbolOrString("_state");v.computed=v.dependentObservable=function(e,t,n){function r(){if(arguments.length>0){if("function"!=typeof i)throw new Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return i.apply(o.evaluatorFunctionTarget,arguments),this}return v.dependencyDetection.registerDependency(r),(o.isStale||o.isSleeping&&r.haveDependenciesChanged())&&r.evaluateImmediate(),o.latestValue}if("object"==typeof e?n=e:(n=n||{},e&&(n.read=e)),"function"!=typeof n.read)throw Error("Pass a function that returns the value of the ko.computed");var i=n.write,o={latestValue:s,isStale:!0,isBeingEvaluated:!1,suppressDisposalUntilDisposeWhenReturnsFalse:!1,isDisposed:!1,pure:!1,isSleeping:!1,readFunction:n.read,evaluatorFunctionTarget:t||n.owner,disposeWhenNodeIsRemoved:n.disposeWhenNodeIsRemoved||n.disposeWhenNodeIsRemoved||null,disposeWhen:n.disposeWhen||n.disposeWhen,domNodeDisposalCallback:null,dependencyTracking:{},dependenciesCount:0,evaluationTimeoutInstance:null};return r[S]=o,r.hasWriteFunction="function"==typeof i,v.utils.canSetPrototype||v.utils.extend(r,v.subscribable.fn),v.subscribable.fn.init(r),v.utils.setPrototypeOfOrExtend(r,k),n.pure?(o.pure=!0,o.isSleeping=!0,v.utils.extend(r,E)):n.deferEvaluation&&v.utils.extend(r,R),v.options.deferUpdates&&v.extenders.deferred(r,!0),a&&(r._options=n),o.disposeWhenNodeIsRemoved&&(o.suppressDisposalUntilDisposeWhenReturnsFalse=!0,o.disposeWhenNodeIsRemoved.nodeType||(o.disposeWhenNodeIsRemoved=null)),o.isSleeping||n.deferEvaluation||r.evaluateImmediate(),o.disposeWhenNodeIsRemoved&&r.isActive()&&v.utils.domNodeDisposal.addDisposeCallback(o.disposeWhenNodeIsRemoved,o.domNodeDisposalCallback=function(){r.dispose()}),r};var k={equalityComparer:n,getDependenciesCount:function(){return this[S].dependenciesCount},addDependencyTracking:function(e,t,n){if(this[S].pure&&t===this)throw Error("A 'pure' computed must not be called recursively");this[S].dependencyTracking[e]=n,n._order=this[S].dependenciesCount++,n._version=t.getVersion()},haveDependenciesChanged:function(){var e,t,n=this[S].dependencyTracking;for(e in n)if(n.hasOwnProperty(e)&&(t=n[e],t._target.hasChanged(t._version)))return!0},markDirty:function(){this._evalDelayed&&!this[S].isBeingEvaluated&&this._evalDelayed()},isActive:function(){return this[S].isStale||this[S].dependenciesCount>0},respondToChange:function(){this._notificationIsPending||this.evaluatePossiblyAsync()},subscribeToDependency:function(e){if(e._deferUpdates&&!this[S].disposeWhenNodeIsRemoved){var t=e.subscribe(this.markDirty,this,"dirty"),n=e.subscribe(this.respondToChange,this);return{_target:e,dispose:function(){t.dispose(),n.dispose()}}}return e.subscribe(this.evaluatePossiblyAsync,this)},evaluatePossiblyAsync:function(){var e=this,t=e.throttleEvaluation;t&&t>=0?(clearTimeout(this[S].evaluationTimeoutInstance),this[S].evaluationTimeoutInstance=v.utils.setTimeout(function(){e.evaluateImmediate(!0)},t)):e._evalDelayed?e._evalDelayed():e.evaluateImmediate(!0)},evaluateImmediate:function(e){var t=this,n=t[S],r=n.disposeWhen;if(!n.isBeingEvaluated&&!n.isDisposed){if(n.disposeWhenNodeIsRemoved&&!v.utils.domNodeIsAttachedToDocument(n.disposeWhenNodeIsRemoved)||r&&r()){if(!n.suppressDisposalUntilDisposeWhenReturnsFalse)return void t.dispose()}else n.suppressDisposalUntilDisposeWhenReturnsFalse=!1;n.isBeingEvaluated=!0;try{this.evaluateImmediate_CallReadWithDependencyDetection(e)}finally{n.isBeingEvaluated=!1}n.dependenciesCount||t.dispose()}},evaluateImmediate_CallReadWithDependencyDetection:function(e){var t=this,n=t[S],r=n.pure?s:!n.dependenciesCount,i={computedObservable:t,disposalCandidates:n.dependencyTracking,disposalCount:n.dependenciesCount};v.dependencyDetection.begin({callbackTarget:i,callback:m,computed:t,isInitial:r}),n.dependencyTracking={},n.dependenciesCount=0;var o=this.evaluateImmediate_CallReadThenEndDependencyDetection(n,i);t.isDifferent(n.latestValue,o)&&(n.isSleeping||t.notifySubscribers(n.latestValue,"beforeChange"),n.latestValue=o,n.isSleeping?t.updateVersion():e&&t.notifySubscribers(n.latestValue)),r&&t.notifySubscribers(n.latestValue,"awake")},evaluateImmediate_CallReadThenEndDependencyDetection:function(e,t){try{var n=e.readFunction;return e.evaluatorFunctionTarget?n.call(e.evaluatorFunctionTarget):n()}finally{v.dependencyDetection.end(),t.disposalCount&&!e.isSleeping&&v.utils.objectForEach(t.disposalCandidates,f),e.isStale=!1}},peek:function(){var e=this[S];return(e.isStale&&!e.dependenciesCount||e.isSleeping&&this.haveDependenciesChanged())&&this.evaluateImmediate(),e.latestValue},limit:function(e){v.subscribable.fn.limit.call(this,e),this._evalDelayed=function(){this._limitBeforeChange(this[S].latestValue),this[S].isStale=!0,this._limitChange(this)}},dispose:function(){var e=this[S];!e.isSleeping&&e.dependencyTracking&&v.utils.objectForEach(e.dependencyTracking,function(e,t){t.dispose&&t.dispose()}),e.disposeWhenNodeIsRemoved&&e.domNodeDisposalCallback&&v.utils.domNodeDisposal.removeDisposeCallback(e.disposeWhenNodeIsRemoved,e.domNodeDisposalCallback),e.dependencyTracking=null,e.dependenciesCount=0,e.isDisposed=!0,e.isStale=!1,e.isSleeping=!1,e.disposeWhenNodeIsRemoved=null}},E={beforeSubscriptionAdd:function(e){var t=this,n=t[S];if(!n.isDisposed&&n.isSleeping&&"change"==e){if(n.isSleeping=!1,n.isStale||t.haveDependenciesChanged())n.dependencyTracking=null,n.dependenciesCount=0,n.isStale=!0,t.evaluateImmediate();else{var r=[];v.utils.objectForEach(n.dependencyTracking,function(e,t){r[t._order]=e}),v.utils.arrayForEach(r,function(e,r){var i=n.dependencyTracking[e],o=t.subscribeToDependency(i._target);o._order=r,o._version=i._version,n.dependencyTracking[e]=o})}n.isDisposed||t.notifySubscribers(n.latestValue,"awake")}},afterSubscriptionRemove:function(e){var t=this[S];t.isDisposed||"change"!=e||this.hasSubscriptionsForEvent("change")||(v.utils.objectForEach(t.dependencyTracking,function(e,n){n.dispose&&(t.dependencyTracking[e]={_target:n._target,_order:n._order,_version:n._version},n.dispose())}),t.isSleeping=!0,this.notifySubscribers(s,"asleep"))},getVersion:function(){var e=this[S];return e.isSleeping&&(e.isStale||this.haveDependenciesChanged())&&this.evaluateImmediate(),v.subscribable.fn.getVersion.call(this)}},R={beforeSubscriptionAdd:function(e){"change"!=e&&"beforeChange"!=e||this.peek()}};v.utils.canSetPrototype&&v.utils.setPrototypeOf(k,v.subscribable.fn);var O=v.observable.protoProperty;v.computed[O]=v.observable,k[O]=v.computed,v.isComputed=function(e){return v.hasPrototype(e,v.computed)},v.isPureComputed=function(e){return v.hasPrototype(e,v.computed)&&e[S]&&e[S].pure},v.exportSymbol("computed",v.computed),v.exportSymbol("dependentObservable",v.computed),v.exportSymbol("isComputed",v.isComputed),v.exportSymbol("isPureComputed",v.isPureComputed),v.exportSymbol("computed.fn",k),v.exportProperty(k,"peek",k.peek),v.exportProperty(k,"dispose",k.dispose),v.exportProperty(k,"isActive",k.isActive),v.exportProperty(k,"getDependenciesCount",k.getDependenciesCount),v.pureComputed=function(e,t){return"function"==typeof e?v.computed(e,t,{pure:!0}):(e=v.utils.extend({},e),e.pure=!0,v.computed(e,t))},v.exportSymbol("pureComputed",v.pureComputed),function(){function e(r,i,o){if(o=o||new n,!!("object"!=typeof(r=i(r))||null===r||r===s||r instanceof RegExp||r instanceof Date||r instanceof String||r instanceof Number||r instanceof Boolean))return r;var a=r instanceof Array?[]:{};return o.save(r,a),t(r,function(t){var n=i(r[t]);switch(typeof n){case"boolean":case"number":case"string":case"function":a[t]=n;break;case"object":case"undefined":var u=o.get(n);a[t]=u!==s?u:e(n,i,o)}}),a}function t(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(var r in e)t(r)}function n(){this.keys=[],this.values=[]}var r=10;v.toJS=function(t){if(0==arguments.length)throw new Error("When calling ko.toJS, pass the object you want to convert.");return e(t,function(e){for(var t=0;v.isObservable(e)&&t<r;t++)e=e();return e})},v.toJSON=function(e,t,n){var r=v.toJS(e);return v.utils.stringifyJson(r,t,n)},n.prototype={constructor:n,save:function(e,t){var n=v.utils.arrayIndexOf(this.keys,e);n>=0?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(e){var t=v.utils.arrayIndexOf(this.keys,e);return t>=0?this.values[t]:s}}}(),v.exportSymbol("toJS",v.toJS),v.exportSymbol("toJSON",v.toJSON),function(){var e="__ko__hasDomDataOptionValue__";v.selectExtensions={readValue:function(t){switch(v.utils.tagNameLower(t)){case"option":return!0===t[e]?v.utils.domData.get(t,v.bindingHandlers.options.optionValueDomDataKey):v.utils.ieVersion<=7?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return t.selectedIndex>=0?v.selectExtensions.readValue(t.options[t.selectedIndex]):s;default:return t.value}},writeValue:function(t,n,r){switch(v.utils.tagNameLower(t)){case"option":switch(typeof n){case"string":v.utils.domData.set(t,v.bindingHandlers.options.optionValueDomDataKey,s),e in t&&delete t[e],t.value=n;break;default:v.utils.domData.set(t,v.bindingHandlers.options.optionValueDomDataKey,n),t[e]=!0,t.value="number"==typeof n?n:""}break;case"select":""!==n&&null!==n||(n=s);for(var i,o=-1,a=0,u=t.options.length;a<u;++a)if((i=v.selectExtensions.readValue(t.options[a]))==n||""==i&&n===s){o=a;break}(r||o>=0||n===s&&t.size>1)&&(t.selectedIndex=o);break;default:null!==n&&n!==s||(n=""),t.value=n}}}}(),v.exportSymbol("selectExtensions",v.selectExtensions),v.exportSymbol("selectExtensions.readValue",v.selectExtensions.readValue),v.exportSymbol("selectExtensions.writeValue",v.selectExtensions.writeValue),v.expressionRewriting=function(){function e(e){if(v.utils.arrayIndexOf(r,e)>=0)return!1;var t=e.match(i);return null!==t&&(t[1]?"Object("+t[1]+")"+t[2]:e)}function t(e){var t=v.utils.stringTrim(e);123===t.charCodeAt(0)&&(t=t.slice(1,-1));var n,r=[],i=t.match(p),o=[],a=0;if(i){i.push(",");for(var s,u=0;s=i[u];++u){var l=s.charCodeAt(0);if(44===l){if(a<=0){r.push(n&&o.length?{key:n,value:o.join("")}:{unknown:n||o.join("")}),n=a=0,o=[];continue}}else if(58===l){if(!a&&!n&&1===o.length){n=o.pop();continue}}else if(47===l&&u&&s.length>1){var c=i[u-1].match(d);c&&!h[c[0]]&&(t=t.substr(t.indexOf(s)+1),i=t.match(p),i.push(","),u=-1,s="/")}else 40===l||123===l||91===l?++a:41===l||125===l||93===l?--a:n||o.length||34!==l&&39!==l||(s=s.slice(1,-1));o.push(s)}}return r}function n(n,r){function i(t,n){function r(e){return!e||!e.preprocess||(n=e.preprocess(n,t,i))}var l;if(!u){if(!r(v.getBindingHandler(t)))return;f[t]&&(l=e(n))&&a.push("'"+t+"':function(_z){"+l+"=_z}")}s&&(n="function(){return "+n+" }"),o.push("'"+t+"':"+n)}r=r||{};var o=[],a=[],s=r.valueAccessors,u=r.bindingParams,l="string"==typeof n?t(n):n;return v.utils.arrayForEach(l,function(e){i(e.key||e.unknown,e.value)}),a.length&&i("_ko_property_writers","{"+a.join(",")+" }"),o.join(",")}var r=["true","false","null","undefined"],i=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,o='"(?:[^"\\\\]|\\\\.)*"',a="'(?:[^'\\\\]|\\\\.)*'",s="/(?:[^/\\\\]|\\\\.)*/w*",u=",\"'{}()/:[\\]",l="[^\\s:,/][^"+u+"]*[^\\s"+u+"]",c="[^\\s]",p=RegExp(o+"|"+a+"|"+s+"|"+l+"|"+c,"g"),d=/[\])"'A-Za-z0-9_$]+$/,h={in:1,return:1,typeof:1},f={};return{bindingRewriteValidators:[],twoWayBindings:f,parseObjectLiteral:t,preProcessBindings:n,keyValueArrayContainsKey:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},writeValueToProperty:function(e,t,n,r,i){if(e&&v.isObservable(e))!v.isWriteableObservable(e)||i&&e.peek()===r||e(r);else{var o=t.get("_ko_property_writers");o&&o[n]&&o[n](r)}}}}(),v.exportSymbol("expressionRewriting",v.expressionRewriting),v.exportSymbol("expressionRewriting.bindingRewriteValidators",v.expressionRewriting.bindingRewriteValidators),v.exportSymbol("expressionRewriting.parseObjectLiteral",v.expressionRewriting.parseObjectLiteral),v.exportSymbol("expressionRewriting.preProcessBindings",v.expressionRewriting.preProcessBindings),v.exportSymbol("expressionRewriting._twoWayBindings",v.expressionRewriting.twoWayBindings),v.exportSymbol("jsonExpressionRewriting",v.expressionRewriting),v.exportSymbol("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",v.expressionRewriting.preProcessBindings),function(){function e(e){return 8==e.nodeType&&a.test(o?e.text:e.nodeValue)}function t(e){return 8==e.nodeType&&s.test(o?e.text:e.nodeValue)}function n(n,r){for(var i=n,o=1,a=[];i=i.nextSibling;){if(t(i)&&0===--o)return a;a.push(i),e(i)&&o++}if(!r)throw new Error("Cannot find closing comment tag to match: "+n.nodeValue);return null}function r(e,t){var r=n(e,t);return r?r.length>0?r[r.length-1].nextSibling:e.nextSibling:null}function i(n){var i=n.firstChild,o=null;if(i)do{if(o)o.push(i);else if(e(i)){var a=r(i,!0);a?i=a:o=[i]}else t(i)&&(o=[i])}while(i=i.nextSibling);return o}var o=l&&"\x3c!--test--\x3e"===l.createComment("test").text,a=o?/^<!--\s*ko(?:\s+([\s\S]+))?\s*-->$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,s=o?/^<!--\s*\/ko\s*-->$/:/^\s*\/ko\s*$/,u={ul:!0,ol:!0};v.virtualElements={allowedBindings:{},childNodes:function(t){return e(t)?n(t):t.childNodes},emptyNode:function(t){if(e(t))for(var n=v.virtualElements.childNodes(t),r=0,i=n.length;r<i;r++)v.removeNode(n[r]);else v.utils.emptyDomNode(t)},setDomNodeChildren:function(t,n){if(e(t)){v.virtualElements.emptyNode(t);for(var r=t.nextSibling,i=0,o=n.length;i<o;i++)r.parentNode.insertBefore(n[i],r)}else v.utils.setDomNodeChildren(t,n)},prepend:function(t,n){e(t)?t.parentNode.insertBefore(n,t.nextSibling):t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},insertAfter:function(t,n,r){r?e(t)?t.parentNode.insertBefore(n,r.nextSibling):r.nextSibling?t.insertBefore(n,r.nextSibling):t.appendChild(n):v.virtualElements.prepend(t,n)},firstChild:function(n){return e(n)?!n.nextSibling||t(n.nextSibling)?null:n.nextSibling:n.firstChild},nextSibling:function(n){return e(n)&&(n=r(n)),n.nextSibling&&t(n.nextSibling)?null:n.nextSibling},hasBindingValue:e,virtualNodeBindingValue:function(e){var t=(o?e.text:e.nodeValue).match(a);return t?t[1]:null},normaliseVirtualElementDomStructure:function(e){if(u[v.utils.tagNameLower(e)]){var t=e.firstChild;if(t)do{if(1===t.nodeType){var n=i(t);if(n)for(var r=t.nextSibling,o=0;o<n.length;o++)r?e.insertBefore(n[o],r):e.appendChild(n[o])}}while(t=t.nextSibling)}}}}(),v.exportSymbol("virtualElements",v.virtualElements),v.exportSymbol("virtualElements.allowedBindings",v.virtualElements.allowedBindings),v.exportSymbol("virtualElements.emptyNode",v.virtualElements.emptyNode),v.exportSymbol("virtualElements.insertAfter",v.virtualElements.insertAfter),v.exportSymbol("virtualElements.prepend",v.virtualElements.prepend),v.exportSymbol("virtualElements.setDomNodeChildren",v.virtualElements.setDomNodeChildren),function(){function e(e,n,r){var i=e+(r&&r.valueAccessors||"");return n[i]||(n[i]=t(e,r))}function t(e,t){var n=v.expressionRewriting.preProcessBindings(e,t),r="with($context){with($data||{}){return{"+n+"}}}";return new Function("$context","$element",r)}var n="data-bind";v.bindingProvider=function(){this.bindingCache={}},v.utils.extend(v.bindingProvider.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute(n)||v.components.getComponentNameForNode(e);case 8:return v.virtualElements.hasBindingValue(e);default:return!1}},getBindings:function(e,t){var n=this.getBindingsString(e,t),r=n?this.parseBindingsString(n,t,e):null;return v.components.addBindingsForCustomElement(r,e,t,!1)},getBindingAccessors:function(e,t){var n=this.getBindingsString(e,t),r=n?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return v.components.addBindingsForCustomElement(r,e,t,!0)},getBindingsString:function(e,t){switch(e.nodeType){case 1:return e.getAttribute(n);case 8:return v.virtualElements.virtualNodeBindingValue(e);default:return null}},parseBindingsString:function(t,n,r,i){try{return e(t,this.bindingCache,i)(n,r)}catch(e){throw e.message="Unable to parse bindings.\nBindings value: "+t+"\nMessage: "+e.message,e}}}),v.bindingProvider.instance=new v.bindingProvider}(),v.exportSymbol("bindingProvider",v.bindingProvider),function(){function e(e){return function(){return e}}function t(e){return e()}function n(e){return v.utils.objectMap(v.dependencyDetection.ignore(e),function(t,n){return function(){return e()[n]}})}function r(t,r,i){return"function"==typeof t?n(t.bind(null,r,i)):v.utils.objectMap(t,e)}function i(e,t){return n(this.getBindings.bind(this,e,t))}function o(e){if(!v.virtualElements.allowedBindings[e])throw new Error("The binding '"+e+"' cannot be used with virtual elements")}function a(e,t,n){var r,i=v.virtualElements.firstChild(t),o=v.bindingProvider.instance,a=o.preprocessNode;if(a){for(;r=i;)i=v.virtualElements.nextSibling(r),a.call(o,r);i=v.virtualElements.firstChild(t)}for(;r=i;)i=v.virtualElements.nextSibling(r),l(e,r,n)}function l(e,t,n){var r=!0,i=1===t.nodeType;i&&v.virtualElements.normaliseVirtualElementDomStructure(t),(i&&n||v.bindingProvider.instance.nodeHasBindings(t))&&(r=d(t,null,e,n).shouldBindDescendants),r&&!f[v.utils.tagNameLower(t)]&&a(e,t,!i)}function c(e){var t=[],n={},r=[];return v.utils.objectForEach(e,function i(o){if(!n[o]){var a=v.getBindingHandler(o);a&&(a.after&&(r.push(o),v.utils.arrayForEach(a.after,function(t){if(e[t]){if(-1!==v.utils.arrayIndexOf(r,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+r.join(", "));i(t)}}),r.length--),t.push({key:o,handler:a})),n[o]=!0}}),t}function d(e,n,r,a){function u(){return v.utils.objectMap(f?f():p,t)}var l=v.utils.domData.get(e,m);if(!n){if(l)throw Error("You cannot apply bindings multiple times to the same element.");v.utils.domData.set(e,m,!0)}!l&&a&&v.storedBindingContextForNode(e,r);var p;if(n&&"function"!=typeof n)p=n;else{var d=v.bindingProvider.instance,h=d.getBindingAccessors||i,f=v.dependentObservable(function(){return p=n?n(r,e):h.call(d,e,r),p&&r._subscribable&&r._subscribable(),p},null,{disposeWhenNodeIsRemoved:e});p&&f.isActive()||(f=null)}var g;if(p){var y=f?function(e){return function(){return t(f()[e])}}:function(e){return p[e]};u.get=function(e){return p[e]&&t(y(e))},u.has=function(e){return e in p};var b=c(p);v.utils.arrayForEach(b,function(t){var n=t.handler.init,i=t.handler.update,a=t.key;8===e.nodeType&&o(a);try{"function"==typeof n&&v.dependencyDetection.ignore(function(){var t=n(e,y(a),u,r.$data,r);if(t&&t.controlsDescendantBindings){if(g!==s)throw new Error("Multiple bindings ("+g+" and "+a+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");g=a}}),"function"==typeof i&&v.dependentObservable(function(){i(e,y(a),u,r.$data,r)},null,{disposeWhenNodeIsRemoved:e})}catch(e){throw e.message='Unable to process binding "'+a+": "+p[a]+'"\nMessage: '+e.message,e}})}return{shouldBindDescendants:g===s}}function h(e){return e&&e instanceof v.bindingContext?e:new v.bindingContext(e)}v.bindingHandlers={};var f={script:!0,textarea:!0,template:!0};v.getBindingHandler=function(e){return v.bindingHandlers[e]},v.bindingContext=function(e,t,n,r){function i(){var i=l?e():e,o=v.utils.unwrapObservable(i);return t?(t._subscribable&&t._subscribable(),v.utils.extend(u,t),c&&(u._subscribable=c)):(u.$parents=[],u.$root=o,u.ko=v),u.$rawData=i,u.$data=o,n&&(u[n]=o),r&&r(u,t,o),u.$data}function o(){return a&&!v.utils.anyDomNodeIsAttachedToDocument(a)}var a,u=this,l="function"==typeof e&&!v.isObservable(e),c=v.dependentObservable(i,null,{disposeWhen:o,disposeWhenNodeIsRemoved:!0});c.isActive()&&(u._subscribable=c,c.equalityComparer=null,a=[],c._addNode=function(e){a.push(e),v.utils.domNodeDisposal.addDisposeCallback(e,function(e){v.utils.arrayRemoveItem(a,e),a.length||(c.dispose(),u._subscribable=c=s)})})},v.bindingContext.prototype.createChildContext=function(e,t,n){return new v.bindingContext(e,this,t,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)})},v.bindingContext.prototype.extend=function(e){return new v.bindingContext(this._subscribable||this.$data,this,null,function(t,n){t.$rawData=n.$rawData,v.utils.extend(t,"function"==typeof e?e():e)})};var m=v.utils.domData.nextKey(),g=v.utils.domData.nextKey();v.storedBindingContextForNode=function(e,t){if(2!=arguments.length)return v.utils.domData.get(e,g);v.utils.domData.set(e,g,t),t._subscribable&&t._subscribable._addNode(e)},v.applyBindingAccessorsToNode=function(e,t,n){return 1===e.nodeType&&v.virtualElements.normaliseVirtualElementDomStructure(e),d(e,t,h(n),!0)},v.applyBindingsToNode=function(e,t,n){var i=h(n);return v.applyBindingAccessorsToNode(e,r(t,i,e),i)},v.applyBindingsToDescendants=function(e,t){1!==t.nodeType&&8!==t.nodeType||a(h(e),t,!0)},v.applyBindings=function(e,t){if(!p&&u.jQuery&&(p=u.jQuery),t&&1!==t.nodeType&&8!==t.nodeType)throw new Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");t=t||u.document.body,l(h(e),t,!0)},v.contextFor=function(e){switch(e.nodeType){case 1:case 8:var t=v.storedBindingContextForNode(e);if(t)return t;if(e.parentNode)return v.contextFor(e.parentNode)}return s},v.dataFor=function(e){var t=v.contextFor(e);return t?t.$data:s},v.exportSymbol("bindingHandlers",v.bindingHandlers),v.exportSymbol("applyBindings",v.applyBindings),v.exportSymbol("applyBindingsToDescendants",v.applyBindingsToDescendants),v.exportSymbol("applyBindingAccessorsToNode",v.applyBindingAccessorsToNode),v.exportSymbol("applyBindingsToNode",v.applyBindingsToNode),v.exportSymbol("contextFor",v.contextFor),v.exportSymbol("dataFor",v.dataFor)}(),function(e){function t(t,n){return t.hasOwnProperty(n)?t[n]:e}function n(e,n){var i,s=t(o,e);s?s.subscribe(n):(s=o[e]=new v.subscribable,s.subscribe(n),r(e,function(t,n){var r=!(!n||!n.synchronous);a[e]={definition:t,isSynchronousComponent:r},delete o[e],i||r?s.notifySubscribers(t):v.tasks.schedule(function(){s.notifySubscribers(t)})}),i=!0)}function r(e,t){i("getConfig",[e],function(n){n?i("loadComponent",[e,n],function(e){t(e,n)}):t(null,null)})}function i(t,n,r,o){o||(o=v.components.loaders.slice(0));var a=o.shift();if(a){var s=a[t];if(s){var u=!1;if(s.apply(a,n.concat(function(e){u?r(null):null!==e?r(e):i(t,n,r,o)}))!==e&&(u=!0,!a.suppressLoaderExceptions))throw new Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else i(t,n,r,o)}else r(null)}var o={},a={};v.components={get:function(e,r){var i=t(a,e);i?i.isSynchronousComponent?v.dependencyDetection.ignore(function(){r(i.definition)}):v.tasks.schedule(function(){r(i.definition)}):n(e,r)},clearCachedDefinition:function(e){delete a[e]},_getFirstResultFromLoaders:i},v.components.loaders=[],v.exportSymbol("components",v.components),v.exportSymbol("components.get",v.components.get),v.exportSymbol("components.clearCachedDefinition",v.components.clearCachedDefinition)}(),function(e){function n(e,t,n,r){var i={},o=2,a=function(){0==--o&&r(i)},s=n.template,u=n.viewModel;s?c(t,s,function(t){v.components._getFirstResultFromLoaders("loadTemplate",[e,t],function(e){i.template=e,a()})}):a(),u?c(t,u,function(t){v.components._getFirstResultFromLoaders("loadViewModel",[e,t],function(e){i[h]=e,a()})}):a()}function r(e,t,n){if("string"==typeof t)n(v.utils.parseHtmlFragment(t));else if(t instanceof Array)n(t);else if(s(t))n(v.utils.makeArray(t.childNodes));else if(t.element){var r=t.element;if(a(r))n(o(r));else if("string"==typeof r){var i=l.getElementById(r);i?n(o(i)):e("Cannot find element with ID "+r)}else e("Unknown element type: "+r)}else e("Unknown template value: "+t)}function i(e,t,n){if("function"==typeof t)n(function(e){return new t(e)});else if("function"==typeof t[h])n(t[h]);else if("instance"in t){var r=t.instance;n(function(e,t){return r})}else"viewModel"in t?i(e,t.viewModel,n):e("Unknown viewModel value: "+t)}function o(e){switch(v.utils.tagNameLower(e)){case"script":return v.utils.parseHtmlFragment(e.text);case"textarea":return v.utils.parseHtmlFragment(e.value);case"template":if(s(e.content))return v.utils.cloneNodes(e.content.childNodes)}return v.utils.cloneNodes(e.childNodes)}function a(e){return u.HTMLElement?e instanceof HTMLElement:e&&e.tagName&&1===e.nodeType}function s(e){return u.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function c(e,n,r){"string"==typeof n.require?t||u.require?(t||u.require)([n.require],r):e("Uses require, but no AMD loader is present"):r(n)}function p(e){return function(t){throw new Error("Component '"+e+"': "+t)}}var d={};v.components.register=function(e,t){if(!t)throw new Error("Invalid configuration for "+e);if(v.components.isRegistered(e))throw new Error("Component "+e+" is already registered");d[e]=t},v.components.isRegistered=function(e){return d.hasOwnProperty(e)},v.components.unregister=function(e){delete d[e],v.components.clearCachedDefinition(e)},v.components.defaultLoader={getConfig:function(e,t){t(d.hasOwnProperty(e)?d[e]:null)},loadComponent:function(e,t,r){var i=p(e);c(i,t,function(t){n(e,i,t,r)})},loadTemplate:function(e,t,n){r(p(e),t,n)},loadViewModel:function(e,t,n){i(p(e),t,n)}};var h="createViewModel";v.exportSymbol("components.register",v.components.register),v.exportSymbol("components.isRegistered",v.components.isRegistered),v.exportSymbol("components.unregister",v.components.unregister),v.exportSymbol("components.defaultLoader",v.components.defaultLoader),v.components.loaders.push(v.components.defaultLoader),v.components._allRegisteredComponents=d}(),function(e){function t(e,t){var r=e.getAttribute("params");if(r){var i=n.parseBindingsString(r,t,e,{valueAccessors:!0,bindingParams:!0}),o=v.utils.objectMap(i,function(t,n){return v.computed(t,null,{disposeWhenNodeIsRemoved:e})}),a=v.utils.objectMap(o,function(t,n){var r=t.peek();return t.isActive()?v.computed({read:function(){return v.utils.unwrapObservable(t())},write:v.isWriteableObservable(r)&&function(e){t()(e)},disposeWhenNodeIsRemoved:e}):r});return a.hasOwnProperty("$raw")||(a.$raw=o),a}return{$raw:{}}}v.components.getComponentNameForNode=function(e){var t=v.utils.tagNameLower(e);if(v.components.isRegistered(t)&&(-1!=t.indexOf("-")||""+e=="[object HTMLUnknownElement]"||v.utils.ieVersion<=8&&e.tagName===t))return t},v.components.addBindingsForCustomElement=function(e,n,r,i){if(1===n.nodeType){var o=v.components.getComponentNameForNode(n);if(o){if(e=e||{},e.component)throw new Error('Cannot use the "component" binding on a custom element matching a component');var a={name:o,params:t(n,r)};e.component=i?function(){return a}:a}}return e};var n=new v.bindingProvider;v.utils.ieVersion<9&&(v.components.register=function(e){return function(t){return l.createElement(t),e.apply(this,arguments)}}(v.components.register),l.createDocumentFragment=function(e){return function(){var t=e(),n=v.components._allRegisteredComponents;for(var r in n)n.hasOwnProperty(r)&&t.createElement(r);return t}}(l.createDocumentFragment))}(),function(e){function t(e,t,n){var r=t.template;if(!r)throw new Error("Component '"+e+"' has no template");var i=v.utils.cloneNodes(r);v.virtualElements.setDomNodeChildren(n,i)}function n(e,t,n,r){var i=e.createViewModel;return i?i.call(e,r,{element:t,templateNodes:n}):r}var r=0;v.bindingHandlers.component={init:function(i,o,a,s,u){var l,c,p=function(){var e=l&&l.dispose;"function"==typeof e&&e.call(l),l=null,c=null},d=v.utils.makeArray(v.virtualElements.childNodes(i));return v.utils.domNodeDisposal.addDisposeCallback(i,p),v.computed(function(){var a,s,h=v.utils.unwrapObservable(o());if("string"==typeof h?a=h:(a=v.utils.unwrapObservable(h.name),s=v.utils.unwrapObservable(h.params)),!a)throw new Error("No component name specified");var f=c=++r;v.components.get(a,function(r){if(c===f){if(p(),!r)throw new Error("Unknown component '"+a+"'");t(a,r,i);var o=n(r,i,d,s),h=u.createChildContext(o,e,function(e){e.$component=o,e.$componentTemplateNodes=d});l=o,v.applyBindingsToDescendants(h,i)}})},null,{disposeWhenNodeIsRemoved:i}),{controlsDescendantBindings:!0}}},v.virtualElements.allowedBindings.component=!0}();var q={class:"className",for:"htmlFor"};v.bindingHandlers.attr={update:function(e,t,n){var r=v.utils.unwrapObservable(t())||{};v.utils.objectForEach(r,function(t,n){n=v.utils.unwrapObservable(n);var r=!1===n||null===n||n===s;r&&e.removeAttribute(t),v.utils.ieVersion<=8&&t in q?(t=q[t],r?e.removeAttribute(t):e[t]=n):r||e.setAttribute(t,n.toString()),"name"===t&&v.utils.setElementName(e,r?"":n.toString())})}},function(){v.bindingHandlers.checked={after:["value","attr"],init:function(e,t,n){function r(){var r=e.checked,i=h?o():r;if(!v.computedContext.isInitial()&&(!u||r)){var a=v.dependencyDetection.ignore(t);if(c){var s=p?a.peek():a;d!==i?(r&&(v.utils.addOrRemoveItem(s,i,!0),v.utils.addOrRemoveItem(s,d,!1)),d=i):v.utils.addOrRemoveItem(s,i,r),p&&v.isWriteableObservable(a)&&a(s)}else v.expressionRewriting.writeValueToProperty(a,n,"checked",i,!0)}}function i(){var n=v.utils.unwrapObservable(t());e.checked=c?v.utils.arrayIndexOf(n,o())>=0:a?n:o()===n}var o=v.pureComputed(function(){return n.has("checkedValue")?v.utils.unwrapObservable(n.get("checkedValue")):n.has("value")?v.utils.unwrapObservable(n.get("value")):e.value}),a="checkbox"==e.type,u="radio"==e.type;if(a||u){var l=t(),c=a&&v.utils.unwrapObservable(l)instanceof Array,p=!(c&&l.push&&l.splice),d=c?o():s,h=u||c;u&&!e.name&&v.bindingHandlers.uniqueName.init(e,function(){return!0}),v.computed(r,null,{disposeWhenNodeIsRemoved:e}),v.utils.registerEventHandler(e,"click",r),v.computed(i,null,{disposeWhenNodeIsRemoved:e}),l=s}}},v.expressionRewriting.twoWayBindings.checked=!0,v.bindingHandlers.checkedValue={update:function(e,t){e.value=v.utils.unwrapObservable(t())}}}();var _="__ko__cssValue";v.bindingHandlers.css={update:function(e,t){var n=v.utils.unwrapObservable(t());null!==n&&"object"==typeof n?v.utils.objectForEach(n,function(t,n){n=v.utils.unwrapObservable(n),v.utils.toggleDomNodeCssClass(e,t,n)}):(n=v.utils.stringTrim(String(n||"")),v.utils.toggleDomNodeCssClass(e,e[_],!1),e[_]=n,v.utils.toggleDomNodeCssClass(e,n,!0))}},v.bindingHandlers.enable={update:function(e,t){var n=v.utils.unwrapObservable(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},v.bindingHandlers.disable={update:function(e,t){v.bindingHandlers.enable.update(e,function(){return!v.utils.unwrapObservable(t())})}},v.bindingHandlers.event={init:function(e,t,n,r,i){var o=t()||{};v.utils.objectForEach(o,function(o){"string"==typeof o&&v.utils.registerEventHandler(e,o,function(e){var a,s=t()[o];if(s){try{var u=v.utils.makeArray(arguments);r=i.$data,u.unshift(r),a=s.apply(r,u)}finally{!0!==a&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1!==n.get(o+"Bubble")||(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},v.bindingHandlers.foreach={makeTemplateValueAccessor:function(e){return function(){var t=e(),n=v.utils.peekObservable(t);return n&&"number"!=typeof n.length?(v.utils.unwrapObservable(t),{foreach:n.data,as:n.as,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:v.nativeTemplateEngine.instance}):{foreach:t,templateEngine:v.nativeTemplateEngine.instance}}},init:function(e,t,n,r,i){return v.bindingHandlers.template.init(e,v.bindingHandlers.foreach.makeTemplateValueAccessor(t))},update:function(e,t,n,r,i){return v.bindingHandlers.template.update(e,v.bindingHandlers.foreach.makeTemplateValueAccessor(t),n,r,i)}},v.expressionRewriting.bindingRewriteValidators.foreach=!1,v.virtualElements.allowedBindings.foreach=!0;var I="__ko_hasfocusUpdating",D="__ko_hasfocusLastValue";v.bindingHandlers.hasfocus={init:function(e,t,n){var r=function(r){e[I]=!0;var i=e.ownerDocument;if("activeElement"in i){var o;try{o=i.activeElement}catch(e){o=i.body}r=o===e}var a=t();v.expressionRewriting.writeValueToProperty(a,n,"hasfocus",r,!0),e[D]=r,e[I]=!1},i=r.bind(null,!0),o=r.bind(null,!1);v.utils.registerEventHandler(e,"focus",i),v.utils.registerEventHandler(e,"focusin",i),v.utils.registerEventHandler(e,"blur",o),v.utils.registerEventHandler(e,"focusout",o)},update:function(e,t){var n=!!v.utils.unwrapObservable(t());e[I]||e[D]===n||(n?e.focus():e.blur(),!n&&e[D]&&e.ownerDocument.body.focus(),v.dependencyDetection.ignore(v.utils.triggerEvent,null,[e,n?"focusin":"focusout"]))}},v.expressionRewriting.twoWayBindings.hasfocus=!0,v.bindingHandlers.hasFocus=v.bindingHandlers.hasfocus,v.expressionRewriting.twoWayBindings.hasFocus=!0,v.bindingHandlers.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){v.utils.setHtml(e,t())}},y("if"),y("ifnot",!1,!0),y("with",!0,!1,function(e,t){return e.createChildContext(t)});var N={};v.bindingHandlers.options={init:function(e){if("select"!==v.utils.tagNameLower(e))throw new Error("options binding applies only to SELECT elements");for(;e.length>0;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(e,t,n){function r(){return v.utils.arrayFilter(e.options,function(e){return e.selected})}function i(e,t,n){var r=typeof t;return"function"==r?t(e):"string"==r?e[t]:n}function o(t,r,o){o.length&&(y=!f&&o[0].selected?[v.selectExtensions.readValue(o[0])]:[],b=!0);var a=e.ownerDocument.createElement("option");if(t===N)v.utils.setTextContent(a,n.get("optionsCaption")),v.selectExtensions.writeValue(a,s);else{var u=i(t,n.get("optionsValue"),t);v.selectExtensions.writeValue(a,v.utils.unwrapObservable(u));var l=i(t,n.get("optionsText"),u);v.utils.setTextContent(a,l)}return[a]}function a(t,r){if(b&&f)v.selectExtensions.writeValue(e,v.utils.unwrapObservable(n.get("value")),!0);else if(y.length){var i=v.utils.arrayIndexOf(y,v.selectExtensions.readValue(r[0]))>=0;v.utils.setOptionNodeSelectionState(r[0],i),b&&!i&&v.dependencyDetection.ignore(v.utils.triggerEvent,null,[e,"change"])}}var u,l,c=0==e.length,p=e.multiple,d=!c&&p?e.scrollTop:null,h=v.utils.unwrapObservable(t()),f=n.get("valueAllowUnset")&&n.has("value"),m=n.get("optionsIncludeDestroyed"),g={},y=[];f||(p?y=v.utils.arrayMap(r(),v.selectExtensions.readValue):e.selectedIndex>=0&&y.push(v.selectExtensions.readValue(e.options[e.selectedIndex]))),h&&(void 0===h.length&&(h=[h]),l=v.utils.arrayFilter(h,function(e){return m||e===s||null===e||!v.utils.unwrapObservable(e._destroy)}),n.has("optionsCaption")&&null!==(u=v.utils.unwrapObservable(n.get("optionsCaption")))&&u!==s&&l.unshift(N));var b=!1;g.beforeRemove=function(t){e.removeChild(t)};var x=a;n.has("optionsAfterRender")&&"function"==typeof n.get("optionsAfterRender")&&(x=function(e,t){a(e,t),v.dependencyDetection.ignore(n.get("optionsAfterRender"),null,[t[0],e!==N?e:s])}),v.utils.setDomNodeChildrenFromArrayMapping(e,l,o,g,x),v.dependencyDetection.ignore(function(){if(f)v.selectExtensions.writeValue(e,v.utils.unwrapObservable(n.get("value")),!0);else{var t;t=p?y.length&&r().length<y.length:y.length&&e.selectedIndex>=0?v.selectExtensions.readValue(e.options[e.selectedIndex])!==y[0]:y.length||e.selectedIndex>=0,t&&v.utils.triggerEvent(e,"change")}}),v.utils.ensureSelectElementIsRenderedCorrectly(e),d&&Math.abs(d-e.scrollTop)>20&&(e.scrollTop=d)}},v.bindingHandlers.options.optionValueDomDataKey=v.utils.domData.nextKey(),v.bindingHandlers.selectedOptions={after:["options","foreach"],init:function(e,t,n){v.utils.registerEventHandler(e,"change",function(){var r=t(),i=[];v.utils.arrayForEach(e.getElementsByTagName("option"),function(e){e.selected&&i.push(v.selectExtensions.readValue(e))}),v.expressionRewriting.writeValueToProperty(r,n,"selectedOptions",i)})},update:function(e,t){if("select"!=v.utils.tagNameLower(e))throw new Error("values binding applies only to SELECT elements");var n=v.utils.unwrapObservable(t()),r=e.scrollTop;n&&"number"==typeof n.length&&v.utils.arrayForEach(e.getElementsByTagName("option"),function(e){var t=v.utils.arrayIndexOf(n,v.selectExtensions.readValue(e))>=0;e.selected!=t&&v.utils.setOptionNodeSelectionState(e,t)}),e.scrollTop=r}},v.expressionRewriting.twoWayBindings.selectedOptions=!0,v.bindingHandlers.style={update:function(e,t){var n=v.utils.unwrapObservable(t()||{});v.utils.objectForEach(n,function(t,n){n=v.utils.unwrapObservable(n),null!==n&&n!==s&&!1!==n||(n=""),e.style[t]=n})}},v.bindingHandlers.submit={init:function(e,t,n,r,i){if("function"!=typeof t())throw new Error("The value for a submit binding must be a function");v.utils.registerEventHandler(e,"submit",function(n){var r,o=t();try{r=o.call(i.$data,e)}finally{!0!==r&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}})}},v.bindingHandlers.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){v.utils.setTextContent(e,t())}},v.virtualElements.allowedBindings.text=!0,function(){if(u&&u.navigator)var e=function(e){if(e)return parseFloat(e[1])},t=u.opera&&u.opera.version&&parseInt(u.opera.version()),n=u.navigator.userAgent,r=e(n.match(/^(?:(?!chrome).)*version\/([^ ]*) safari/i)),i=e(n.match(/Firefox\/([^ ]*)/));if(v.utils.ieVersion<10)var o=v.utils.domData.nextKey(),l=v.utils.domData.nextKey(),c=function(e){var t=this.activeElement,n=t&&v.utils.domData.get(t,l);n&&n(e)},p=function(e,t){var n=e.ownerDocument;v.utils.domData.get(n,o)||(v.utils.domData.set(n,o,!0),v.utils.registerEventHandler(n,"selectionchange",c)),v.utils.domData.set(e,l,t)};v.bindingHandlers.textInput={init:function(e,n,o){var u,l,c=e.value,d=function(t){clearTimeout(u),l=u=s;var r=e.value;c!==r&&(a&&t&&(e._ko_textInputProcessedEvent=t.type),c=r,v.expressionRewriting.writeValueToProperty(n(),o,"textInput",r))},h=function(t){if(!u){l=e.value;var n=a?d.bind(e,{type:t.type}):d;u=v.utils.setTimeout(n,4)}},f=9==v.utils.ieVersion?h:d,m=function(){var t=v.utils.unwrapObservable(n());if(null!==t&&t!==s||(t=""),l!==s&&t===l)return void v.utils.setTimeout(m,4);e.value!==t&&(c=t,e.value=t)},g=function(t,n){v.utils.registerEventHandler(e,t,n)};a&&v.bindingHandlers.textInput._forceUpdateOn?v.utils.arrayForEach(v.bindingHandlers.textInput._forceUpdateOn,function(e){"after"==e.slice(0,5)?g(e.slice(5),h):g(e,d)}):v.utils.ieVersion<10?(g("propertychange",function(e){"value"===e.propertyName&&f(e)}),8==v.utils.ieVersion&&(g("keyup",d),g("keydown",d)),v.utils.ieVersion>=8&&(p(e,f),g("dragend",h))):(g("input",d),r<5&&"textarea"===v.utils.tagNameLower(e)?(g("keydown",h),g("paste",h),g("cut",h)):t<11?g("keydown",h):i<4&&(g("DOMAutoComplete",d),g("dragdrop",d),g("drop",d))),g("change",d),v.computed(m,null,{disposeWhenNodeIsRemoved:e})}},v.expressionRewriting.twoWayBindings.textInput=!0,v.bindingHandlers.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),v.bindingHandlers.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++v.bindingHandlers.uniqueName.currentIndex;v.utils.setElementName(e,n)}}},v.bindingHandlers.uniqueName.currentIndex=0,v.bindingHandlers.value={after:["options","foreach"],init:function(e,t,n){if("input"==e.tagName.toLowerCase()&&("checkbox"==e.type||"radio"==e.type))return void v.applyBindingAccessorsToNode(e,{checkedValue:t});var r=["change"],i=n.get("valueUpdate"),o=!1,a=null;i&&("string"==typeof i&&(i=[i]),v.utils.arrayPushAll(r,i),r=v.utils.arrayGetDistinctValues(r));var s=function(){a=null,o=!1;var r=t(),i=v.selectExtensions.readValue(e);v.expressionRewriting.writeValueToProperty(r,n,"value",i)};v.utils.ieVersion&&"input"==e.tagName.toLowerCase()&&"text"==e.type&&"off"!=e.autocomplete&&(!e.form||"off"!=e.form.autocomplete)&&-1==v.utils.arrayIndexOf(r,"propertychange")&&(v.utils.registerEventHandler(e,"propertychange",function(){o=!0}),v.utils.registerEventHandler(e,"focus",function(){o=!1}),v.utils.registerEventHandler(e,"blur",function(){o&&s()})),v.utils.arrayForEach(r,function(t){var n=s;v.utils.stringStartsWith(t,"after")&&(n=function(){a=v.selectExtensions.readValue(e),v.utils.setTimeout(s,0)},t=t.substring("after".length)),v.utils.registerEventHandler(e,t,n)});var u=function(){var r=v.utils.unwrapObservable(t()),i=v.selectExtensions.readValue(e);if(null!==a&&r===a)return void v.utils.setTimeout(u,0);if(r!==i)if("select"===v.utils.tagNameLower(e)){var o=n.get("valueAllowUnset"),s=function(){v.selectExtensions.writeValue(e,r,o)};s(),o||r===v.selectExtensions.readValue(e)?v.utils.setTimeout(s,0):v.dependencyDetection.ignore(v.utils.triggerEvent,null,[e,"change"])}else v.selectExtensions.writeValue(e,r)};v.computed(u,null,{disposeWhenNodeIsRemoved:e})},update:function(){}},v.expressionRewriting.twoWayBindings.value=!0,v.bindingHandlers.visible={update:function(e,t){var n=v.utils.unwrapObservable(t()),r=!("none"==e.style.display);n&&!r?e.style.display="":!n&&r&&(e.style.display="none")}},g("click"),v.templateEngine=function(){},v.templateEngine.prototype.renderTemplateSource=function(e,t,n,r){throw new Error("Override renderTemplateSource")},v.templateEngine.prototype.createJavaScriptEvaluatorBlock=function(e){throw new Error("Override createJavaScriptEvaluatorBlock")},v.templateEngine.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){t=t||l;var n=t.getElementById(e);if(!n)throw new Error("Cannot find template with ID "+e);return new v.templateSources.domElement(n)}if(1==e.nodeType||8==e.nodeType)return new v.templateSources.anonymousTemplate(e);throw new Error("Unknown template type: "+e)},v.templateEngine.prototype.renderTemplate=function(e,t,n,r){var i=this.makeTemplateSource(e,r);return this.renderTemplateSource(i,t,n,r)},v.templateEngine.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},v.templateEngine.prototype.rewriteTemplate=function(e,t,n){var r=this.makeTemplateSource(e,n),i=t(r.text());r.text(i),r.data("isRewritten",!0)},v.exportSymbol("templateEngine",v.templateEngine),v.templateRewriting=function(){function e(e){for(var t=v.expressionRewriting.bindingRewriteValidators,n=0;n<e.length;n++){var r=e[n].key;if(t.hasOwnProperty(r)){var i=t[r];if("function"==typeof i){var o=i(e[n].value);if(o)throw new Error(o)}else if(!i)throw new Error("This template engine does not support the '"+r+"' binding within its templates")}}}function t(t,n,r,i){var o=v.expressionRewriting.parseObjectLiteral(t);e(o);var a=v.expressionRewriting.preProcessBindings(o,{valueAccessors:!0}),s="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+a+" } })()},'"+r.toLowerCase()+"')";return i.createJavaScriptEvaluatorBlock(s)+n}var n=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,r=/<!--\s*ko\b\s*([\s\S]*?)\s*-->/g;return{ensureTemplateIsRewritten:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return v.templateRewriting.memoizeBindingAttributeSyntax(e,t)},n)},memoizeBindingAttributeSyntax:function(e,i){return e.replace(n,function(){return t(arguments[4],arguments[1],arguments[2],i)}).replace(r,function(){return t(arguments[1],"\x3c!-- ko --\x3e","#comment",i)})},applyMemoizedBindingsToNextSibling:function(e,t){return v.memoization.memoize(function(n,r){var i=n.nextSibling;i&&i.nodeName.toLowerCase()===t&&v.applyBindingAccessorsToNode(i,e,r)})}}}(),v.exportSymbol("__tr_ambtns",v.templateRewriting.applyMemoizedBindingsToNextSibling),function(){function e(e){return v.utils.domData.get(e,u)||{}}function t(e,t){v.utils.domData.set(e,u,t)}v.templateSources={};var n=1,r=2,i=3,o=4;v.templateSources.domElement=function(e){if(this.domElement=e,e){var t=v.utils.tagNameLower(e);this.templateType="script"===t?n:"textarea"===t?r:"template"==t&&e.content&&11===e.content.nodeType?i:o}},v.templateSources.domElement.prototype.text=function(){var e=this.templateType===n?"text":this.templateType===r?"value":"innerHTML";if(0==arguments.length)return this.domElement[e];var t=arguments[0];"innerHTML"===e?v.utils.setHtml(this.domElement,t):this.domElement[e]=t};var a=v.utils.domData.nextKey()+"_";v.templateSources.domElement.prototype.data=function(e){if(1===arguments.length)return v.utils.domData.get(this.domElement,a+e);v.utils.domData.set(this.domElement,a+e,arguments[1])};var u=v.utils.domData.nextKey();v.templateSources.domElement.prototype.nodes=function(){var n=this.domElement;if(0==arguments.length){return e(n).containerData||(this.templateType===i?n.content:this.templateType===o?n:s)}t(n,{containerData:arguments[0]})},v.templateSources.anonymousTemplate=function(e){this.domElement=e},v.templateSources.anonymousTemplate.prototype=new v.templateSources.domElement,v.templateSources.anonymousTemplate.prototype.constructor=v.templateSources.anonymousTemplate,v.templateSources.anonymousTemplate.prototype.text=function(){if(0==arguments.length){var n=e(this.domElement);return n.textData===s&&n.containerData&&(n.textData=n.containerData.innerHTML),n.textData}var r=arguments[0];t(this.domElement,{textData:r})},v.exportSymbol("templateSources",v.templateSources),v.exportSymbol("templateSources.domElement",v.templateSources.domElement),v.exportSymbol("templateSources.anonymousTemplate",v.templateSources.anonymousTemplate)}(),function(){function e(e,t,n){for(var r,i=e,o=v.virtualElements.nextSibling(t);i&&(r=i)!==o;)i=v.virtualElements.nextSibling(r),n(r,i)}function t(t,n){if(t.length){var r=t[0],i=t[t.length-1],o=r.parentNode,a=v.bindingProvider.instance,s=a.preprocessNode;if(s){if(e(r,i,function(e,t){var n=e.previousSibling,o=s.call(a,e);o&&(e===r&&(r=o[0]||t),e===i&&(i=o[o.length-1]||n))}),t.length=0,!r)return;r===i?t.push(r):(t.push(r,i),v.utils.fixUpContinuousNodeArray(t,o))}e(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||v.applyBindings(n,e)}),e(r,i,function(e){1!==e.nodeType&&8!==e.nodeType||v.memoization.unmemoizeDomNodeAndDescendants(e,[n])}),v.utils.fixUpContinuousNodeArray(t,o)}}function n(e){return e.nodeType?e:e.length>0?e[0]:null}function r(e,r,i,o,s){s=s||{};var u=e&&n(e),l=(u||i||{}).ownerDocument,c=s.templateEngine||a;v.templateRewriting.ensureTemplateIsRewritten(i,c,l);var p=c.renderTemplate(i,o,s,l);if("number"!=typeof p.length||p.length>0&&"number"!=typeof p[0].nodeType)throw new Error("Template engine must return an array of DOM nodes");var d=!1;switch(r){case"replaceChildren":v.virtualElements.setDomNodeChildren(e,p),d=!0;break;case"replaceNode":v.utils.replaceDomNodes(e,p),d=!0;break;case"ignoreTargetNode":break;default:throw new Error("Unknown renderMode: "+r)}return d&&(t(p,o),s.afterRender&&v.dependencyDetection.ignore(s.afterRender,null,[p,o.$data])),p}function i(e,t,n){return v.isObservable(e)?e():"function"==typeof e?e(t,n):e}function o(e,t){var n=v.utils.domData.get(e,u);n&&"function"==typeof n.dispose&&n.dispose(),v.utils.domData.set(e,u,t&&t.isActive()?t:s)}var a;v.setTemplateEngine=function(e){if(e!=s&&!(e instanceof v.templateEngine))throw new Error("templateEngine must inherit from ko.templateEngine");a=e},v.renderTemplate=function(e,t,o,u,l){if(o=o||{},(o.templateEngine||a)==s)throw new Error("Set a template engine before calling renderTemplate");if(l=l||"replaceChildren",u){var c=n(u),p=function(){return!c||!v.utils.domNodeIsAttachedToDocument(c)},d=c&&"replaceNode"==l?c.parentNode:c;return v.dependentObservable(function(){var a=t&&t instanceof v.bindingContext?t:new v.bindingContext(v.utils.unwrapObservable(t)),s=i(e,a.$data,a),p=r(u,l,s,a,o);"replaceNode"==l&&(u=p,c=n(u))},null,{disposeWhen:p,disposeWhenNodeIsRemoved:d})}return v.memoization.memoize(function(n){v.renderTemplate(e,t,o,n,"replaceNode")})},v.renderTemplateForEach=function(e,n,o,a,u){var l,c=function(t,n){return l=u.createChildContext(t,o.as,function(e){e.$index=n}),r(null,"ignoreTargetNode",i(e,t,l),l,o)},p=function(e,n,r){t(n,l),o.afterRender&&o.afterRender(n,e),l=null};return v.dependentObservable(function(){var e=v.utils.unwrapObservable(n)||[];void 0===e.length&&(e=[e]);var t=v.utils.arrayFilter(e,function(e){return o.includeDestroyed||e===s||null===e||!v.utils.unwrapObservable(e._destroy)});v.dependencyDetection.ignore(v.utils.setDomNodeChildrenFromArrayMapping,null,[a,t,c,o,p])},null,{disposeWhenNodeIsRemoved:a})};var u=v.utils.domData.nextKey();v.bindingHandlers.template={init:function(e,t){var n=v.utils.unwrapObservable(t());if("string"==typeof n||n.name)v.virtualElements.emptyNode(e);else if("nodes"in n){var r=n.nodes||[];if(v.isObservable(r))throw new Error('The "nodes" option must be a plain, non-observable array.');var i=v.utils.moveCleanedNodesToContainerElement(r);new v.templateSources.anonymousTemplate(e).nodes(i)}else{var o=v.virtualElements.childNodes(e),i=v.utils.moveCleanedNodesToContainerElement(o);new v.templateSources.anonymousTemplate(e).nodes(i)}return{controlsDescendantBindings:!0}},update:function(e,t,n,r,i){var a,s,u=t(),l=v.utils.unwrapObservable(u),c=!0,p=null;if("string"==typeof l?(s=u,l={}):(s=l.name,"if"in l&&(c=v.utils.unwrapObservable(l.if)),c&&"ifnot"in l&&(c=!v.utils.unwrapObservable(l.ifnot)),a=v.utils.unwrapObservable(l.data)),"foreach"in l){var d=c&&l.foreach||[];p=v.renderTemplateForEach(s||e,d,l,e,i)}else if(c){var h="data"in l?i.createChildContext(a,l.as):i;p=v.renderTemplate(s||e,h,l,e)}else v.virtualElements.emptyNode(e);o(e,p)}},v.expressionRewriting.bindingRewriteValidators.template=function(e){var t=v.expressionRewriting.parseObjectLiteral(e);return 1==t.length&&t[0].unknown?null:v.expressionRewriting.keyValueArrayContainsKey(t,"name")?null:"This template engine does not support anonymous templates nested within its templates"},v.virtualElements.allowedBindings.template=!0}(),v.exportSymbol("setTemplateEngine",v.setTemplateEngine),v.exportSymbol("renderTemplate",v.renderTemplate),v.utils.findMovesInArrayComparison=function(e,t,n){if(e.length&&t.length){var r,i,o,a,s;for(r=i=0;(!n||r<n)&&(a=e[i]);++i){for(o=0;s=t[o];++o)if(a.value===s.value){a.moved=s.index,s.moved=a.index,t.splice(o,1),r=o=0;break}r+=o}}},v.utils.compareArrays=function(){function e(e,i,o){return o="boolean"==typeof o?{dontLimitMoves:o}:o||{},e=e||[],i=i||[],e.length<i.length?t(e,i,n,r,o):t(i,e,r,n,o)}function t(e,t,n,r,i){var o,a,s,u,l,c,p=Math.min,d=Math.max,h=[],f=e.length,m=t.length,g=m-f||1,y=f+m+1;for(o=0;o<=f;o++)for(u=s,h.push(s=[]),l=p(m,o+g),c=d(0,o-1),a=c;a<=l;a++)if(a)if(o)if(e[o-1]===t[a-1])s[a]=u[a-1];else{var b=u[a]||y,x=s[a-1]||y;s[a]=p(b,x)+1}else s[a]=a+1;else s[a]=o+1;var C,w=[],P=[],V=[];for(o=f,a=m;o||a;)C=h[o][a]-1,a&&C===h[o][a-1]?P.push(w[w.length]={status:n,value:t[--a],index:a}):o&&C===h[o-1][a]?V.push(w[w.length]={status:r,value:e[--o],index:o}):(--a,--o,i.sparse||w.push({status:"retained",value:t[a]}));return v.utils.findMovesInArrayComparison(V,P,!i.dontLimitMoves&&10*f),w.reverse()}var n="added",r="deleted";return e}(),v.exportSymbol("utils.compareArrays",v.utils.compareArrays),function(){function e(e,t,n,r,i){var o=[],a=v.dependentObservable(function(){var a=t(n,i,v.utils.fixUpContinuousNodeArray(o,e))||[];o.length>0&&(v.utils.replaceDomNodes(o,a),r&&v.dependencyDetection.ignore(r,null,[n,a,i])),o.length=0,v.utils.arrayPushAll(o,a)},null,{disposeWhenNodeIsRemoved:e,disposeWhen:function(){return!v.utils.anyDomNodeIsAttachedToDocument(o)}});return{mappedNodes:o,dependentObservable:a.isActive()?a:s}}var t=v.utils.domData.nextKey(),n=v.utils.domData.nextKey();v.utils.setDomNodeChildrenFromArrayMapping=function(r,i,o,a,u){function l(e,t){p=m[t],C!==t&&(T[e]=p),p.indexObservable(C++),v.utils.fixUpContinuousNodeArray(p.mappedNodes,r),b.push(p),P.push(p)}function c(e,t){if(e)for(var n=0,r=t.length;n<r;n++)t[n]&&v.utils.arrayForEach(t[n].mappedNodes,function(r){e(r,n,t[n].arrayEntry)})}i=i||[],a=a||{};for(var p,d,h,f=v.utils.domData.get(r,t)===s,m=v.utils.domData.get(r,t)||[],g=v.utils.arrayMap(m,function(e){return e.arrayEntry}),y=v.utils.compareArrays(g,i,a.dontLimitMoves),b=[],x=0,C=0,w=[],P=[],V=[],T=[],S=[],k=0;d=y[k];k++)switch(h=d.moved,d.status){case"deleted":h===s&&(p=m[x],p.dependentObservable&&(p.dependentObservable.dispose(),p.dependentObservable=s),v.utils.fixUpContinuousNodeArray(p.mappedNodes,r).length&&(a.beforeRemove&&(b.push(p),P.push(p),p.arrayEntry===n?p=null:V[k]=p),p&&w.push.apply(w,p.mappedNodes))),x++;break;case"retained":l(k,x++);break;case"added":h!==s?l(k,h):(p={arrayEntry:d.value,indexObservable:v.observable(C++)},b.push(p),P.push(p),f||(S[k]=p))}v.utils.domData.set(r,t,b),c(a.beforeMove,T),v.utils.arrayForEach(w,a.beforeRemove?v.cleanNode:v.removeNode);for(var E,R,k=0,O=v.virtualElements.firstChild(r);p=P[k];k++){p.mappedNodes||v.utils.extend(p,e(r,o,p.arrayEntry,u,p.indexObservable));for(var q=0;R=p.mappedNodes[q];O=R.nextSibling,E=R,q++)R!==O&&v.virtualElements.insertAfter(r,R,E);!p.initialized&&u&&(u(p.arrayEntry,p.mappedNodes,p.indexObservable),p.initialized=!0)}for(c(a.beforeRemove,V),k=0;k<V.length;++k)V[k]&&(V[k].arrayEntry=n);c(a.afterMove,T),c(a.afterAdd,S)}}(),v.exportSymbol("utils.setDomNodeChildrenFromArrayMapping",v.utils.setDomNodeChildrenFromArrayMapping),v.nativeTemplateEngine=function(){this.allowTemplateRewriting=!1},v.nativeTemplateEngine.prototype=new v.templateEngine,v.nativeTemplateEngine.prototype.constructor=v.nativeTemplateEngine,v.nativeTemplateEngine.prototype.renderTemplateSource=function(e,t,n,r){var i=!(v.utils.ieVersion<9),o=i?e.nodes:null,a=o?e.nodes():null;if(a)return v.utils.makeArray(a.cloneNode(!0).childNodes);var s=e.text();return v.utils.parseHtmlFragment(s,r)},v.nativeTemplateEngine.instance=new v.nativeTemplateEngine,v.setTemplateEngine(v.nativeTemplateEngine.instance),v.exportSymbol("nativeTemplateEngine",v.nativeTemplateEngine),function(){v.jqueryTmplTemplateEngine=function(){function e(){if(n<2)throw new Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.")}function t(e,t,n){return p.tmpl(e,t,n)}var n=this.jQueryTmplVersion=function(){if(!p||!p.tmpl)return 0;try{if(p.tmpl.tag.tmpl.open.toString().indexOf("__")>=0)return 2}catch(e){}return 1}();this.renderTemplateSource=function(n,r,i,o){o=o||l,i=i||{},e();var a=n.data("precompiled");if(!a){var s=n.text()||"";s="{{ko_with $item.koBindingContext}}"+s+"{{/ko_with}}",a=p.template(null,s),n.data("precompiled",a)}var u=[r.$data],c=p.extend({koBindingContext:r},i.templateOptions),d=t(a,u,c);return d.appendTo(o.createElement("div")),p.fragments={},d},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){l.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},n>0&&(p.tmpl.tag.ko_code={open:"__.push($1 || '');"},p.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},v.jqueryTmplTemplateEngine.prototype=new v.templateEngine,v.jqueryTmplTemplateEngine.prototype.constructor=v.jqueryTmplTemplateEngine;var e=new v.jqueryTmplTemplateEngine;e.jQueryTmplVersion>0&&v.setTemplateEngine(e),v.exportSymbol("jqueryTmplTemplateEngine",v.jqueryTmplTemplateEngine)}()})}()}()},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(4),s=n(16);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;n.question=t,n._koValue=i.observableArray();var r=!1;n._koValue.subscribe(function(e){r||(n.question.value=e)}),Object.defineProperty(n.question,"koValue",{get:function(){if(!a.a.isTwoValueEquals(n._koValue(),n.getKoValue()))try{r=!0,n._koValue(n.getKoValue())}finally{r=!1}return n._koValue},enumerable:!0,configurable:!0});var o=n;return t.surveyLoadCallback=function(){o.onSurveyLoad()},n.koTemplateName=i.pureComputed(function(){return o.getTemplateName()}),n.koElementType=i.observable("survey-question"),n.question.koElementType=n.koElementType,n.question.koTemplateName=n.koTemplateName,n.question.updateQuestion=function(){o.updateQuestion()},n.question.koCss=i.pureComputed(function(){return o.question.cssClasses}),n.question.koRootClass=i.pureComputed(function(){return o.question.cssMainRoot}),t.registerFunctionOnPropertyValueChanged("visibleIndex",function(){o.onVisibleIndexChanged()}),n.koDummy=i.observable(0),n.question.koQuestionAfterRender=function(e,t){o.koQuestionAfterRender(e,t)},n}return r.a(t,e),t.prototype.getKoValue=function(){return this.question.value},t.prototype.updateQuestion=function(){this.updateKoDummy()},t.prototype.onVisibleIndexChanged=function(){this.updateKoDummy()},t.prototype.onSurveyLoad=function(){},t.prototype.getQuestionTemplate=function(){return this.question.getTemplate()},t.prototype.getTemplateName=function(){return this.question.customWidget&&!this.question.customWidget.widgetJson.isDefaultRender?"survey-widget-"+this.question.customWidget.name:"survey-question-"+this.getQuestionTemplate()},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 n=this,r=o.b.GetFirstNonTextElement(e),a=e[0];"#text"===a.nodeName&&(a.data=""),a=e[e.length-1],"#text"===a.nodeName&&(a.data=""),r&&this.question.customWidget&&(this.question.customWidget.afterRender(this.question,r),i.utils.domNodeDisposal.addDisposeCallback(r,function(){n.question.customWidget.willUnmount(n.question,r)}))},t}(s.a)},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(1),a=n(5),s=n(2),u=n(11),l=n(32),c=n(23),p=n(10),d=n(13),h=n(28);n.d(t,"a",function(){return f});var f=function(e){function t(n){var r=e.call(this,n)||this;r.name=n,r.conditionRunner=null,r.isCustomWidgetRequested=!1,r.customWidgetData={isNeedRender:!0},r.isValueChangedInSurvey=!1,r.locNotificationInData=!1,r.locOwner=null,r.id=t.getQuestionId(),r.onCreating();var i=r;return r.createNewArray("validators",function(e){e.errorOwner=i}),r.createLocalizableString("title",r,!0).onRenderedHtmlCallback=function(e){return i.fullTitle},r.createLocalizableString("description",r,!0),r.createLocalizableString("commentText",r,!0).onGetTextCallback=function(e){return e||s.a.getString("otherItemText")},r.createLocalizableString("requiredErrorText",r),r.registerFunctionOnPropertyValueChanged("width",function(){i.parent&&i.parent.elementWidthChanged(i)}),r.registerFunctionOnPropertiesValueChanged(["indent","rightIndent"],function(){i.onIndentChanged()}),r.registerFunctionOnPropertiesValueChanged(["hasComment","hasOther"],function(){i.initCommentFromSurvey()}),r}return r.a(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!0,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},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}),t.prototype.getPanel=function(){return null},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!0,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},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=[])},Object.defineProperty(t.prototype,"useDisplayValuesInTitle",{get:function(){return this.getPropertyValue("useDisplayValuesInTitle",!0)},set:function(e){this.setPropertyValue("useDisplayValuesInTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e),this.runConditions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible||this.areInvisibleElementsShowing},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"question"},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.runConditions=function(){!this.data||this.isLoadingFromJson||this.isDesignMode||(this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.isDesignMode&&!this.isDesignMode&&this.onVisibleChanged(),this.runConditions()},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),this.onParentChanged()},enumerable:!0,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),t&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},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,"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=h.a.Instance.getCustomWidget(this)},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.getQuestionTitleTemplate=function(){return this.questionTitleTemplateCallback?this.questionTitleTemplateCallback():this.survey?this.survey.getQuestionTitleTemplate():null},t.prototype.calcFullTitle=function(){var e=this.getQuestionTitleTemplate();if(e){if(!this.textPreProcessor){var t=this;this.textPreProcessor=new c.a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return this.textPreProcessor.process(e,this.useDisplayValuesInTitle)}var n=this.requiredText;return n&&(n=" "+n),this.processedTitle+n},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}),Object.defineProperty(t.prototype,"cssMainRoot",{get:function(){var e=this.cssClasses,t=this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot;return this.isFlowLayout||"left"!=this.getTitleLocation()||(t+=" "+e.titleLeftRoot),this.errors.length>0&&(t+=" "+e.hasError),t},enumerable:!0,configurable:!0}),t.prototype.getRootCss=function(e){return e.question.root},t.prototype.updateCssClasses=function(e,t){this.isRequired&&(t.question.required&&(e.root=(e.root?e.root+" ":"")+n),t.question.titleRequired&&(e.title+=" "+t.question.titleRequired));var n=t[this.getType()];if(void 0!==n&&null!==n)if("string"==typeof n||n instanceof String)e.root=(e.root?e.root+" ":"")+n;else for(var r in n)e[r]=n[r]},Object.defineProperty(t.prototype,"css",{get:function(){return d.a.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}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddintLeft","")},set:function(e){this.setPropertyValue("paddintLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){void 0===e&&(e=!1),a.b.ScrollElementToTop(this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();a.b.FocusElement(t)&&this.fireCallback(this.focusCallback)},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.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(n)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[n]||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.isLoadingFromJson||this.locTitle.onChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e),this.runConditions()},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,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},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,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(e,t){this.isDesignMode||(this.areInvisibleElementsShowing||this.runVisibleIfCondition(e,t),this.runEnableIfCondition(e,t),this.runRequiredIfCondition(e,t))},t.prototype.runVisibleIfCondition=function(e,t){this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new p.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.visible=this.conditionRunner.run(e,t))},t.prototype.runEnableIfCondition=function(e,t){this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new p.a(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.readOnly=!this.conditionEnabelRunner.run(e,t))},t.prototype.runRequiredIfCondition=function(e,t){this.requiredIf&&(this.conditionRequiredRunner||(this.conditionRequiredRunner=new p.a(this.requiredIf)),this.conditionRequiredRunner.expression=this.requiredIf,this.isRequired=this.conditionRequiredRunner.run(e,t))},Object.defineProperty(t.prototype,"no",{get:function(){if(this.visibleIndex<0)return"";var e=1,t=!0,n="";return this.survey&&this.survey.questionStartIndex&&(n=this.survey.questionStartIndex,parseInt(n)?e=parseInt(n):1==n.length&&(t=!1)),t?(this.visibleIndex+e).toString():String.fromCharCode(n.charCodeAt(0)+this.visibleIndex)},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.updateDisplayValue()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults()},t.prototype.initDataFromSurvey=function(){this.data&&(this.updateValueFromSurvey(this.data.getValue(this.getValueName())),this.initCommentFromSurvey())},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){this.value=null,this.comment=null},t.prototype.createValueCopy=function(){return i.a.getUnbindValue(this.value)},t.prototype.canClearValueAsInvisible=function(){return(!this.isVisible||!this.isParentVisible)&&((!this.page||!this.page.isStarted)&&(!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()},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.updateDisplayValue(),this.getPropertyValue("displayValue","")},enumerable:!0,configurable:!0}),t.prototype.updateDisplayValue=function(){this.isLoadingFromJson||this.setPropertyValue("displayValue",this.getDisplayValue(!0))},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}),t.prototype.getPlainData=function(e){var t=this;if(void 0===e&&(e={includeEmpty:!0}),e.includeEmpty||!this.isEmpty()){var n={name:this.name,title:this.title,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return(e.calculations||[]).forEach(function(e){n[e.propertyName]=t[e.propertyName]}),n}},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.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&(this.isEmpty()&&this.isDefaultValueEmpty()||this.setDefaultValue())},t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return this.isValueEmpty(this.defaultValue)},t.prototype.setDefaultValue=function(){this.value=this.defaultValue},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getComment()},set:function(e){e&&(e=e.toString().trim()),this.comment!=e&&this.setComment(e)},enumerable:!0,configurable:!0}),t.prototype.getComment=function(){return 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.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!0,configurable:!0}),t.prototype.addConditionNames=function(e){e.push(this.name)},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.name,text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var n=(new o.b).toJsonObject(this);return n.type=this.getType(),n},t.prototype.hasErrors=function(e){void 0===e&&(e=!0);var t=this.checkForErrors();return e&&(this.errors=t),t.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)},t.prototype.removeError=function(e){var t=this.errors,n=t.indexOf(e);-1!==n&&t.splice(n,1)},t.prototype.checkForErrors=function(){var e=new Array;return this.isVisible&&!this.isReadOnly&&this.collectErrors(e),e},t.prototype.collectErrors=function(e){if(this.onCheckForErrors(e),0==e.length){var t=this.runValidators();if(t.length>0){e.length=0;for(var n=0;n<t.length;n++)e.push(t[n])}}if(this.survey&&0==e.length){var r=this.fireSurveyValidation();r&&e.push(r)}},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e){this.hasRequiredError()&&e.push(new u.d(this.requiredErrorText,this))},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){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.data.setValue(this.getValueName(),e,this.locNotificationInData)},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e)},t.prototype.updateValueFromSurvey=function(e){e=i.a.getUnbindValue(e),this.setQuestionValue(this.valueFromData(e))},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.setQuestionValue=function(e){this.questionValue=e,this.fireCallback(this.valueChangedCallback)},t.prototype.onSurveyValueChanged=function(e){this.isLoadingFromJson||this.updateDisplayValue()},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.clearIncorrectValues=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=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.getSurveyMarkdownHtml(this,e):this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,this.useDisplayValuesInTitle):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},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.questionCounter=100,t}(a.b);o.a.addClass("question",["!name",{name:"visible:boolean",default:!0},{name:"useDisplayValuesInTitle:boolean",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},"valueName","enableIf:condition","defaultValue:value","correctAnswer:value","isRequired:boolean","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"}]),o.a.addAlterNativeClassName("question","questionbase")},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={commentPrefix:"-Comment",webserviceEncodeParameters:!0,surveyServiceUrl:"https://dxsurveyapi.azurewebsites.net/api/Survey",itemValueSeparator:"|",defaultLocaleName:"default",matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20}},function(e,t,n){"use strict";var r=n(0),i=n(15),o=n(36);n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u});var a=function(){function e(e){this.processValue=new i.a,this.parser=new o.a,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e))},enumerable:!0,configurable:!0}),e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return!!this.canRun()&&this.operand.hasFunction()},e.prototype.canRun=function(){return!!this.operand},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.operand?(this.processValue.values=e,this.processValue.properties=t,this.operand.evaluate(this.processValue)):null},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),1==this.runCore(e,t)},t}(a),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t}(a)},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(5);n.d(t,"d",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"l",function(){return l}),n.d(t,"g",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"c",function(){return d}),n.d(t,"k",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"i",function(){return m}),n.d(t,"h",function(){return g}),n.d(t,"b",function(){return y});var a=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return i.a.getString("requiredError")},t}(o.d),s=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return i.a.getString("requiredErrorInPanel")},t}(o.d),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return i.a.getString("numericError")},t}(o.d),l=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.maxSize=t,r.locText.text=r.getText(),r}return r.a(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return i.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 n=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,n)).toFixed(t[n])+" "+e[n]},t}(o.d),c=function(e){function t(t,n,r){void 0===r&&(r=null);var i=e.call(this,null,r)||this;return i.status=t,i.response=n,i}return r.a(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){return i.a.getString("urlRequestError").format(this.status,this.response)},t}(o.d),p=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return i.a.getString("urlGetChoicesError")},t}(o.d),d=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return i.a.getString("otherRequiredError")},t}(o.d),h=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return i.a.getString("uploadingFile")},t}(o.d),f=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return i.a.getString("requiredInAllRowsError")},t}(o.d),m=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,null,n)||this;return r.minRowCount=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return i.a.getString("minRowCountError").format(this.minRowCount)},t}(o.d),g=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return i.a.getString("keyDuplicationError")},t}(o.d),y=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.text=t,r}return r.a(t,e),t.prototype.getErrorType=function(){return"custom"},t}(o.d)},function(e,t,n){"use strict";var r=n(0),i=n(14),o=n(1),a=n(4),s=n(10),u=n(5),l=n(9);n.d(t,"a",function(){return c});var c=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r="itemvalue");var o=e.call(this)||this;return o.typeName=r,o.visibleIfValue="",o.isVisibleValue=!0,o.locTextValue=new i.a(null,!0),o.locTextValue.onGetTextCallback=function(e){return e||(o.isValueItemEmpty?null:o.value.toString())},n&&(o.locText.text=n),t&&"object"==typeof t?o.setData(t):o.value=t,o.onCreating(),o}return r.a(t,e),Object.defineProperty(t,"Separator",{get:function(){return l.a.itemValueSeparator},set:function(e){l.a.itemValueSeparator=e},enumerable:!0,configurable:!0}),t.createArray=function(e){var n=[];return t.setupArray(n,e),n},t.setupArray=function(e,t){e.push=function(e){var n=Array.prototype.push.call(this,e);return e.locOwner=t,n},e.unshift=function(e){var n=Array.prototype.unshift.call(this,e);return e.locOwner=t,n},e.splice=function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=(s=Array.prototype.splice).call.apply(s,[this,e,n].concat(r));r||(r=[]);for(var a=0;a<r.length;a++)r[a].locOwner=t;return o;var s}},t.setData=function(e,n){e.length=0;for(var r=0;r<n.length;r++){var i,a=n[r];i="function"==typeof a.getType?o.a.createClass(a.getType()):new t(null),i.setData(a),e.push(i)}},t.getData=function(e){for(var t=new Array,n=0;n<e.length;n++)t.push(e[n].getData());return t},t.getItemByValue=function(e,t){for(var n=0;n<e.length;n++)if(a.a.isTwoValueEquals(e[n].value,t))return e[n];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return null!==r?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locText.strChanged()},t.runConditionsForItems=function(e,n,r,i,o){return t.runConditionsForItemsCore(e,n,r,i,o,!0)},t.runEnabledConditionsForItems=function(e,n,r,i){return t.runConditionsForItemsCore(e,null,n,r,i,!1)},t.runConditionsForItemsCore=function(e,t,n,r,i,o){r||(r={});for(var a=r.item,s=r.choice,u=!1,l=0;l<e.length;l++){var c=e[l];r.item=c.value,r.choice=c.value;var p=!!c.getConditionRunner&&c.getConditionRunner(o);p||(p=n);var d=!0;p&&(d=p.run(r,i)),t&&d&&t.push(c);d!=(o?c.isVisible:c.isEnabled)&&(u=!0,o?c.setIsVisible&&c.setIsVisible(d):c.setIsEnabled&&c.setIsEnabled(d))}return a?r.item=a:delete r.item,s?r.choice=s:delete r.choice,u},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this.locText.owner},set:function(e){this.locText.owner=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue},set:function(e){if(this.itemValue=e,this.itemValue){var t=this.itemValue.toString(),n=t.indexOf(l.a.itemValueSeparator);n>-1?(this.itemValue=t.slice(0,n),this.text=t.slice(n+1)):this.hasText||this.locText.onChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.text},set:function(e){this.locText.text=e},enumerable:!0,configurable:!0}),t.prototype.getData=function(){var e=this.toJSON();return e.value&&e.value.pos&&delete e.value.pos,1!=Object.keys(e).length||a.a.isValueEmpty(e.value)?e:this.value},t.prototype.toJSON=function(){var e={},t=o.a.getProperties(this.getType());t&&0!=t.length||(t=o.a.getProperties("itemvalue"));for(var n=new o.b,r=0;r<t.length;r++)n.valueToJson(this,e,t[r]);return e},t.prototype.setData=function(e){if(!a.a.isValueEmpty(e))if(void 0!==e.value){var t=e;"function"==typeof e.toJSON&&(t=e.toJSON()),(new o.b).toObject(t,this)}else this.value=e},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.visibleIfValue},set:function(e){this.visibleIfValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.isVisibleValue},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this.isVisibleValue=e},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!0,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new s.a(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new s.a(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"isValueItemEmpty",{get:function(){return!this.itemValue&&0!==this.itemValue&&!1!==this.itemValue},enumerable:!0,configurable:!0}),t}(u.c);u.c.createItemValue=function(e){var t=null;return t="function"==typeof e.getType?new c(null,void 0,e.getType()):new c(null),t.setData(e),t},u.c.itemValueLocStrChanged=function(e){c.locStrsChanged(e)},o.c.getItemValuesDefaultValue=function(e){var t=new Array;return c.setData(t,e||[]),t},o.a.addClass("itemvalue",["value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",visible:!1},{name:"enableIf:condition",visible:!1}],function(e){return new c(e)})},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:i;return e||(e=i),e}},i={root:"sv_main sv_default_css",header:"sv_header",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",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",flowRoot:"sv_q_flow sv_qstn",titleLeftRoot:"sv_qstn_left",title:"sv_q_title",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer"},panel:{title:"sv_p_title",description:"sv_p_description",container:"sv_p_container"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},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",column:"sv_q_select_column"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other"},html:{root:""},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"sv_q_matrix_dropdown"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:""},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",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},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",removeFile:"sv_q_file_remove"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};r.standard=i},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(9);n.d(t,"a",function(){return a});var a=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,"defaultLocale",{get:function(){return o.a.defaultLocaleName},set:function(e){o.a.defaultLocaleName=e},enumerable:!0,configurable:!0}),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 e=this.locale;e||(e=o.a.defaultLocaleName);var t=this.values[e];return t||e!=o.a.defaultLocaleName||(t=this.values[i.a.defaultLocale]),t||e===o.a.defaultLocaleName||(t=this.values[o.a.defaultLocaleName]),t||(t=""),t},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(e){e||(e=o.a.defaultLocaleName);var t=this.values[e];return t||""},e.prototype.setLocaleText=function(e,t){t!=this.getLocaleText(e)&&(t&&e&&e!=o.a.defaultLocaleName&&!this.values[e]&&t==this.getLocaleText(o.a.defaultLocaleName)||(e||(e=o.a.defaultLocaleName),delete this.htmlValues[e],t?"string"==typeof t&&(e!=o.a.defaultLocaleName&&t==this.getLocaleText(o.a.defaultLocaleName)?this.setLocaleText(e,null):(this.values[e]=t,e==o.a.defaultLocaleName&&this.deleteValuesEqualsToDefault(t))):this.values[e]&&delete this.values[e],this.strChanged()))},e.prototype.hasNonDefaultText=function(){var e=Object.keys(this.values);return 0!=e.length&&(e.length>1||e[0]!=o.a.defaultLocaleName)},e.prototype.getLocales=function(){var e=Object.keys(this.values);return 0==e.length?[]:e},e.prototype.getJson=function(){var e=Object.keys(this.values);return 0==e.length?null:1==e.length&&e[0]==o.a.defaultLocaleName?this.values[e[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)&&r.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 e=this.text;if(!e)return!1;var t=this.locale;return t||(t=o.a.defaultLocaleName),this.htmlValues[t]=this.owner.getMarkdownHtml(e),!!this.htmlValues[t]},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=o.a.defaultLocaleName),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){for(var t=Object.keys(this.values),n=0;n<t.length;n++)t[n]!=o.a.defaultLocaleName&&this.values[t[n]]==e&&delete this.values[t[n]]},e}()},function(e,t,n){"use strict";var r=n(4);n.d(t,"a",function(){return i});var i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var n="";if(t&&(n=this.getFirstPropertyName(e,t)))return n;for(var r=0;r<e.length;r++){var i=e[r];if("."==i||"["==i)break;n+=i}return n},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.setValue=function(e,t,n){if(t){var r=this.getNonNestedObject(e,t);r&&(e=r.value,t=r.text,e&&t&&(e[t]=n))}},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 n={hasValue:!1,value:null},i=t;if(!i)return n;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-".length".length&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(i,e);return o?(n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!r.a.isValueEmpty(n.value),n):n},e.prototype.getNonNestedObject=function(e,t){for(var n=this.getFirstPropertyName(t,e);t!=n&&e;){if("["==t[0]){var r=this.getObjInArray(e,t);if(!r)return null;e=r.value,t=r.text}else{if(!n&&t==this.getFirstName(t))return{value:e,text:t};if(!(e=this.getObjectValue(e,n)))return null;t=t.substr(n.length)}t&&"."==t[0]&&(t=t.substr(1)),n=this.getFirstPropertyName(t,e)}return{value:e,text:t}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var n=1,r="";n<t.length&&"]"!=t[n];)r+=t[n],n++;return t=n<t.length?t.substr(n+1):"",n=this.getIntValue(r),n<0||n>=e.length?null:{value:e[n],text:t}},e.prototype.getFirstPropertyName=function(e,t){if(!e)return e;if(t.hasOwnProperty(e))return e;e=e.toLowerCase();var n=e[0],r=n.toUpperCase();for(var i in t){var o=i[0];if(o===r||o===n){var a=i.toLowerCase();if(a==e)return i;if(e.length<=a.length)continue;var s=e[a.length];if("."!=s&&"["!=s)continue;if(a==e.substr(0,a.length))return i}}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},function(e,t,n){"use strict";var r=n(6);n.n(r);n.d(t,"a",function(){return i});var i=function(){function e(t){this.element=t,t.iteratePropertiesHash(function(t,n){e.doIterateProperties(t,n)}),t.getPropertyValueCoreHandler=function(e,t){return void 0===e[t]&&(e[t]=r.observable()),r.unwrap(e[t])},t.setPropertyValueCoreHandler=function(e,t,n){return void 0!==e[t]?e[t](n):e[t]=r.observable(n)}}return e.doIterateProperties=function(e,t){var n=e[t];Array.isArray(n)?(e[t]=r.observableArray(n),n.onArrayChanged=function(){return e[t].notifySubscribers()}):e[t]=r.observable(n)},e}()},function(e,t,n){"use strict";var r=n(0),i=n(7);n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var o=function(e){function t(t){var n=e.call(this,t)||this;return n.onCreated(),n}return r.a(t,e),t.prototype.onCreated=function(){},Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.question.isOtherSelected},enumerable:!0,configurable:!0}),t}(i.a),a=function(e){function t(t){var n=e.call(this,t)||this;return n.question.koAfterRender=n.koAfterRender,n}return r.a(t,e),t.prototype.koAfterRender=function(e,t){var n=e[0];"#text"==n.nodeName&&(n.data=""),n=e[e.length-1],"#text"==n.nodeName&&(n.data="")},t}(o)},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(19)),a=n(5),s=n(26),u=n(13),l=n(41),c=n(28),p=n(14),d=n(12),h=n(16);n.d(t,"b",function(){return f}),n.d(t,"a",function(){return m}),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 f=function(e){function t(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=e.call(this,t)||this;if(o.onRendered=new a.a,o.isFirstRender=!0,o.mouseDownPage=null,new h.a(o),void 0===i)throw new Error("knockoutjs library is not loaded.");return r&&(o.css=r),n&&(o.renderedElement=n),o.render(n),o}return r.a(t,e),Object.defineProperty(t,"cssType",{get:function(){return u.a.currentType},set:function(e){u.a.currentType=e},enumerable:!0,configurable:!0}),t.prototype.getDataValueCore=function(e,t){return void 0===e[t]&&(e[t]=i.observable()),i.unwrap(e[t])},t.prototype.setDataValueCore=function(e,t,n){i.isWriteableObservable(e[t])?e[t](n):e[t]=i.observable(n)},t.prototype.deleteDataValueCore=function(e,t){i.isWriteableObservable(e[t])?e[t](void 0):delete e[t]},t.prototype.nextPageUIClick=function(){this.mouseDownPage&&this.mouseDownPage!==this.currentPage||(this.mouseDownPage=null,this.nextPage())},t.prototype.nextPageMouseDown=function(){this.mouseDownPage=this.currentPage;var e=document.activeElement;e&&e.blur&&e.blur()},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.a.getCss();return e.body+" "+e.completedPage},enumerable:!0,configurable:!0}),t.prototype.getNavigationCss=function(e,t){var n="";return e&&(n=e),t&&(n+=" "+t),n},Object.defineProperty(t.prototype,"css",{get:function(){return u.a.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)&&(t.startTimerFromUI(),t.applyBinding())},t.prototype.clear=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=!0),e.prototype.clear.call(this,t,n),this.render()},t.prototype.onLocaleChanged=function(){this.render()},t.prototype.koEventAfterRender=function(e,t){t.onRendered.fire(self,{}),t.afterRenderSurvey(e)},t.prototype.loadSurveyFromService=function(t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),r&&(this.renderedElement=r),e.prototype.loadSurveyFromService.call(this,t,n)},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.a(e)},t.prototype.getHtmlTemplate=function(){return l.b},t.prototype.onBeforeCreating=function(){var e=this,t=this;this.dummyObservable=i.observable(0),this.koCurrentPage=i.observable(this.currentPage),this.koIsFirstPage=i.computed(function(){return e.dummyObservable(),e.isFirstPage}),this.koIsLastPage=i.computed(function(){return e.dummyObservable(),e.isLastPage}),this.koProgressText=i.computed(function(){return e.dummyObservable(),e.progressText}),this.koProgress=i.computed(function(){return e.dummyObservable(),e.getProgress()}),this.koState=i.observable(this.state),this.koCompletedState=i.observable(""),this.koCompletedStateText=i.observable(""),this.koCompletedStateCss=i.observable(""),this.koTimerInfoText=i.observable(this.timerInfoText),this.koAfterRenderPage=function(e,n){var r=a.b.GetFirstNonTextElement(e);r&&t.afterRenderPage(r)}},t.prototype.currentPageChanged=function(t,n){this.updateKoCurrentPage(),e.prototype.currentPageChanged.call(this,t,n),this.isDesignMode||this.scrollToTopOnPageChange()},t.prototype.pageVisibilityChanged=function(t,n){e.prototype.pageVisibilityChanged.call(this,t,n),this.updateKoCurrentPage()},t.prototype.onLoadSurveyFromService=function(){this.render()},t.prototype.onLoadingSurveyFromService=function(){this.render()},t.prototype.setCompletedState=function(t,n){e.prototype.setCompletedState.call(this,t,n),this.koCompletedState(this.completedState),this.koCompletedStateText(this.completedStateText),this.koCompletedStateCss(""!==this.completedState?this.css.saveData[this.completedState]:"")},t.prototype.doTimer=function(){e.prototype.doTimer.call(this),this.koTimerInfoText(this.timerInfoText)},t.prototype.applyBinding=function(){this.renderedElement&&(this.updateKoCurrentPage(),i.cleanNode(this.renderedElement),this.isFirstRender||this.updateCurrentPageQuestions(),this.isFirstRender=!1,i.renderTemplate("survey-content",this,{afterRender:this.koEventAfterRender},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 n=e[t];n.visible&&n.updateQuestion()}},t}(o.a);p.a.prototype.onCreating=function(){var e=this;this.koReRender=i.observable(0),Object.defineProperty(e,"koHasHtml",{get:function(){return e.koReRender(),e.hasHtml}}),this.koRenderedHtml=i.pureComputed(function(){return e.koReRender(),e.renderedHtml})},d.a.prototype.onCreating=function(){new h.a(this)},p.a.prototype.onChanged=function(){this.koReRender(this.koReRender()+1)},i.components.register("survey",{viewModel:{createViewModel:function(e,t){return i.unwrap(e.survey).render(),e.survey}},template:l.b}),i.bindingHandlers.surveyProp={update:function(e,t,n){var r=i.utils.unwrapObservable(t())||{};for(var o in r)if("string"==typeof o){var a=i.utils.unwrapObservable(r[o]);e[o]=a}}},o.a.platform="knockout";var m=function(e,t){e.surveyTemplateEngine=function(){},e.surveyTemplateEngine.prototype=new e.nativeTemplateEngine,e.surveyTemplateEngine.prototype.makeTemplateSource=function(n,r){if("string"==typeof n){r=r||document;var i=r.getElementById("survey-content-"+t);i||(i=document.createElement("div"),i.id="survey-content-"+o.a.platform,i.style.display="none",i.innerHTML=l.b,document.body.appendChild(i));for(var a,s=0;s<i.children.length;s++)if(i.children[s].id===n){a=i.children[s];break}if(a||(a=r.getElementById(n)),!a)throw new Error("Cannot find template with ID "+n);return new e.templateSources.domElement(a)}if(1===n.nodeType||8===n.nodeType)return new e.templateSources.anonymousTemplate(n);throw new Error("Unknown template type: "+n)};var n=new e.surveyTemplateEngine;e.setTemplateEngine(n)}},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(1),a=n(5),s=n(27),u=n(23),l=n(15),c=n(37),p=n(2),d=n(11),h=n(14),f=n(59),m=n(61),g=n(10),y=n(9);n.d(t,"a",function(){return v});var v=function(e){function t(n){void 0===n&&(n=null);var r=e.call(this)||this;r.valuesHash={},r.variablesHash={},r.localeValue="",r.completedStateValue="",r.completedStateTextValue="",r.isTimerStarted=!1,r.onCompleting=new a.a,r.onComplete=new a.a,r.onStarted=new a.a,r.onPartialSend=new a.a,r.onCurrentPageChanging=new a.a,r.onCurrentPageChanged=new a.a,r.onValueChanging=new a.a,r.onValueChanged=new a.a,r.onVisibleChanged=new a.a,r.onPageVisibleChanged=new a.a,r.onPanelVisibleChanged=new a.a,r.onQuestionAdded=new a.a,r.onQuestionRemoved=new a.a,r.onPanelAdded=new a.a,r.onPanelRemoved=new a.a,r.onPageAdded=new a.a,r.onValidateQuestion=new a.a,r.onServerValidateQuestions=new a.a,r.onValidatePanel=new a.a,r.onErrorCustomText=new a.a,r.onValidatedErrorsOnCurrentPage=new a.a,r.onProcessHtml=new a.a,r.onGetQuestionTitle=new a.a,r.onTextMarkdown=new a.a,r.onSendResult=new a.a,r.onGetResult=new a.a,r.onUploadFiles=new a.a,r.onDownloadFile=new a.a,r.onClearFiles=new a.a,r.onLoadChoicesFromServer=new a.a,r.onProcessTextValue=new a.a,r.onUpdateQuestionCssClasses=new a.a,r.onUpdatePanelCssClasses=new a.a,r.onAfterRenderSurvey=new a.a,r.onAfterRenderPage=new a.a,r.onAfterRenderQuestion=new a.a,r.onAfterRenderPanel=new a.a,r.onMatrixRowAdded=new a.a,r.onMatrixBeforeRowAdded=new a.a,r.onMatrixRowRemoved=new a.a,r.onMatrixCellCreated=new a.a,r.onMatrixAfterCellRender=new a.a,r.onMatrixCellValueChanged=new a.a,r.onMatrixCellValueChanging=new a.a,r.onMatrixCellValidate=new a.a,r.onDynamicPanelAdded=new a.a,r.onDynamicPanelRemoved=new a.a,r.onTimer=new a.a,r.onTimerPanelInfoText=new a.a,r.onDynamicPanelItemValueChanged=new a.a,r.onIsAnswerCorrect=new a.a,r.onDragDropAllow=new a.a,r.jsonErrors=null,r.questionTitleTemplateCache=void 0,r.conditionVersion=0,r.origionalPages=null,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.timerFunc=null,r.timeSpent=0;var i=r;return"undefined"!=typeof document&&(t.stylesManager=new f.a),r.createLocalizableString("title",r,!0),r.createLocalizableString("description",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){i.getProcessedTextValue(e)},r.pagesValue=r.createNewArray("pages",function(e){i.doOnPageAdded(e)}),r.triggersValue=r.createNewArray("triggers",function(e){e.setOwner(i)}),r.completedHtmlOnConditionValue=r.createNewArray("completedHtmlOnCondition",function(e){e.locOwner=i}),r.registerFunctionOnPropertyValueChanged("questionTitleTemplate",function(){i.questionTitleTemplateCache=void 0}),r.registerFunctionOnPropertyValueChanged("firstPageIsStarted",function(){i.onFirstPageIsStartedChanged()}),r.registerFunctionOnPropertyValueChanged("isSinglePage",function(){i.onIsSinglePageChanged()}),r.onBeforeCreating(),n&&(("string"==typeof n||n instanceof String)&&(n=JSON.parse(n)),n&&n.clientId&&(r.clientId=n.clientId),r.setJsonObject(n),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),r}return r.a(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return y.a.commentPrefix},set:function(e){y.a.commentPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageValue",{get:function(){return this.getPropertyValue("currentPageValue",null)},set:function(e){this.setPropertyValue("currentPageValue",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,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError",!0)},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){!0!==e&&void 0!==e||(e="bottom"),!1===e&&(e="none"),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")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},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.questionTitleTemplateCache=void 0,p.a.currentLocale=e,this.localeValue=p.a.currentLocale,this.setPropertyValue("locale",this.localeValue),this.locStrsChanged(),this.onLocaleChanged()},enumerable:!0,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var n=p.a.defaultLocale,r=e.indexOf(n);r>-1&&e.splice(r,1),t=e.indexOf("default"),e[t]=n}return e},t.prototype.onLocaleChanged=function(){},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){return this.getSurveyMarkdownHtml(this,e)},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return p.a.getString(e)},t.prototype.getErrorCustomText=function(e,t){var n={text:e,name:t.getErrorType(),error:t};return this.onErrorCustomText.fire(this,n),n.text},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,"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,"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,"completedHtmlOnCondition",{get:function(){return this.completedHtmlOnConditionValue},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!0,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new g.b(e).run(t,n)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),n=this.getFilteredProperties();return new g.a(e).run(t,n)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){if(0==this.completedHtmlOnCondition.length)return this.completedHtml;for(var e=this.getFilteredValues(),t=this.getFilteredProperties(),n=0;n<this.completedHtmlOnCondition.length;n++){var r=this.completedHtmlOnCondition[n];if(r.runCondition(e,t))return r.html}return this.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){if(e&&-1!==e.indexOf("{no}")){for(var t=e.indexOf("{no}"),n=t,r=t+4;n>=0&&"}"!==e[n];)n--;for(;r<e.length&&"{"!==e[r];)r++;e=e.substring(0,n+1)+e.substring(r)}this.setLocalizableStringText("questionTitleTemplate",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleTemplate=function(){return void 0===this.questionTitleTemplateCache&&(this.questionTitleTemplateCache=this.locQuestionTitleTemplate.textOrHtml),this.questionTitleTemplateCache},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 n={question:e,title:t};return this.onGetQuestionTitle.fire(this,n),n.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")},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")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){this.setPropertyValue("progressBarType",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return"top"===this.showProgressBar||"both"===this.showProgressBar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return"bottom"===this.showProgressBar||"both"===this.showProgressBar},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")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"!=e&&"display"!=e||this.setPropertyValue("mode",e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){var e={};for(var t in this.valuesHash){var n=this.getDataValueCore(this.valuesHash,t);void 0!==n&&(e[t]=n)}return e},set:function(e){if(this.valuesHash={},e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.checkTriggers(this.valuesHash,!1),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){void 0===e&&(e={includeEmpty:!0});var t=[];return this.getAllQuestions().forEach(function(n){var r=n.getPlainData(e);r&&t.push(r)}),t},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.getDataValueCore(this.valuesHash,t);return e.conditionVersion=++this.conditionVersion,e},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getDataValueCore=function(e,t){return e[t]},t.prototype.setDataValueCore=function(e,t,n){e[t]=n},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.getDataValueCore(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(){var e=this.firstPageIsStarted&&this.pages.length>0?this.pages[0]:null;return e&&e.onFirstRendering(),e},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 n=this.visiblePages;if(!(null!=t&&n.indexOf(t)<0)&&t!=this.currentPageValue){var r=this.currentPageValue;this.currentPageChanging(t,r)&&(t&&t.onFirstRendering(),this.currentPageValue=t,t&&(t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,r))}}},enumerable:!0,configurable:!0}),t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),n=this.visiblePages;return e<0||e>=n.length?null:n[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")},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,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},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 n=0;n<this.pages.length;n++)this.pages[n].timeSpent=0,this.pages[n].setWasShown(!1);this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.isStartedState=this.firstPageIsStarted,t&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){if(t&&e)for(var n in e){var r=e[n];r&&"object"==typeof r?(t[n]||(t[n]={}),this.mergeValues(r,t[n])):t[n]=r}},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].questions,n=0;n<t.length;n++)t[n].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var n={oldCurrentPage:t,newCurrentPage:e,allowChanging:!0};return this.onCurrentPageChanging.fire(this,n),n.allowChanging},t.prototype.currentPageChanged=function(e,t){this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e})},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("questions"===this.progressBarType){var e=this.getAllQuestions(),t=e.reduce(function(e,t){return e+(t.isEmpty()?0:1)},0);return Math.ceil(100*t/e.length)}if("correctQuestions"===this.progressBarType){var e=this.getAllQuestions(),n=this.getCorrectedAnswerCount();return Math.ceil(100*n/e.length)}var r=this.visiblePages.indexOf(this.currentPage)+1;return Math.ceil(100*r/this.visiblePageCount)},Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"bottom":"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},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,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.updateAllElementsVisibility(t)},enumerable:!0,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];n.updateElementVisibility(),e.indexOf(n)>-1!=n.isVisible&&this.onPageVisibleChanged.fire(this,{page:n,visible:n.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!0,configurable:!0}),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 this.checkIsCurrentPageHasErrors()},enumerable:!0,configurable:!0}),t.prototype.checkIsCurrentPageHasErrors=function(e){if(void 0===e&&(e=void 0),void 0===e&&(e=this.focusOnFirstError),null==this.currentPage)return!0;var t=this.currentPage.hasErrors(!0,e);return this.fireValidatedErrorsOnCurrentPage(),t},t.prototype.fireValidatedErrorsOnCurrentPage=function(){if(!this.onValidatedErrorsOnCurrentPage.isEmpty){for(var e=this.currentPage.questions,t=new Array,n=new Array,r=0;r<e.length;r++){var i=e[r];if(i.errors.length>0){t.push(i);for(var o=0;o<i.errors.length;o++)n.push(i.errors[o])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:t,errors:n})}},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.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<this.origionalPages.length;t++)this.pages.push(this.origionalPages[t])}this.origionalPages=null}else{this.questionHashesClear(),this.origionalPages=this.pages.slice(0,this.pages.length);var n=this.firstPageIsStarted?1:0;e.prototype.startLoadingFromJson.call(this);var r=this.createSinglePage(n),i=this.pages.length-n;this.pages.splice(n,i,r),e.prototype.endLoadingFromJson.call(this),r.endLoadingFromJson(),r.setSurveyImpl(this),this.doElementsOnLoad()}this.updateVisibleIndexes()},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var n=e;n<this.pages.length;n++){var r=this.pages[n],i=o.a.createClass("panel");t.addPanel(i);var a=(new o.b).toJsonObject(r);(new o.b).toObject(a,i)}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={allowComplete:!0};if(this.onCompleting.fire(this,e),e.allowComplete){var t=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var n=this,r={showDataSaving:function(e){n.setCompletedState("saving",e)},showDataSavingError:function(e){n.setCompletedState("error",e)},showDataSavingSuccess:function(e){n.setCompletedState("success",e)},showDataSavingClear:function(e){n.setCompletedState("","")}};this.onComplete.fire(this,r),!t&&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||this.onServerValidateQuestions.isEmpty)return!1;for(var e=this,t={data:{},errors:{},survey:this,complete:function(){e.completeServerValidation(t)}},n=0;n<this.currentPage.questions.length;n++){var r=this.currentPage.questions[n];if(r.visible){var i=this.getValue(r.getValueName());this.isValueEmpty(i)||(t.data[r.getValueName()]=i)}}return this.setIsValidatingOnServer(!0),"function"==typeof this.onServerValidateQuestions?this.onServerValidateQuestions(this,t):this.onServerValidateQuestions.fire(this,t),!0},t.prototype.completeServerValidation=function(e){if(this.setIsValidatingOnServer(!1),e||e.survey){var t=e.survey,n=!1;if(e.errors)for(var r in e.errors){var i=t.getQuestionByName(r);i&&i.errors&&(n=!0,i.addError(new d.b(e.errors[r],this)))}n||(t.isLastPage?t.doComplete():t.doNextPage())}},t.prototype.doNextPage=function(){if(this.checkOnPageTriggers(),this.isCompleted)this.doComplete();else{this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0);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(){var e=this.renderedCompletedHtml;return e?this.processHtml(e):"<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"";if("questions"===this.progressBarType){var e=this.getAllQuestions(),t=e.reduce(function(e,t){return e+(t.isEmpty()?0:1)},0);return this.getLocString("questionsProgressText").format(t,e.length)}if("correctQuestions"===this.progressBarType){var e=this.getAllQuestions(),n=this.getCorrectedAnswerCount();return this.getLocString("questionsProgressText").format(n,e.length)}var r=this.visiblePages,i=r.indexOf(this.currentPage)+1;return this.getLocString("progressText").format(i,r.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.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e){this.onMatrixRowAdded.fire(this,{question:e})},t.prototype.getQuestionByValueNameFromArray=function(e,t,n){var r=this.getQuestionsByValueNameCore(e);if(r){for(var i=0;i<r.length;i++){var o=r[i].getQuestionFromArray(t,n);if(o)return o}return null}},t.prototype.matrixRowRemoved=function(e,t,n){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:n})},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.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new d.b(t.error,this):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.dragAndDropAllow=function(e){return e.allow=!0,this.onDragDropAllow.fire(this,e),e.allow},t.prototype.uploadFiles=function(e,t,n){this.onUploadFiles.isEmpty?n("error",t):this.onUploadFiles.fire(this,{name:e,files:t||[],callback:n}),this.surveyPostId&&this.uploadFilesCore(e,t,n)},t.prototype.downloadFile=function(e,t,n){this.onDownloadFile.isEmpty&&!!n&&n("success",t.content||t),this.onDownloadFile.fire(this,{name:e,content:t.content||t,fileValue:t,callback:n})},t.prototype.clearFiles=function(e,t,n,r){this.onClearFiles.isEmpty&&!!r&&r("success",t),this.onClearFiles.fire(this,{name:e,value:t,fileName:n,callback:r})},t.prototype.updateChoicesFromServer=function(e,t,n){var r={question:e,choices:t,serverResult:n};return this.onLoadChoicesFromServer.fire(this,r),r.choices},t.prototype.createSurveyService=function(){return new c.a},t.prototype.uploadFilesCore=function(e,t,n){var r=this,i=[];t.forEach(function(e){n&&n("uploading",e),r.createSurveyService().sendFile(r.surveyPostId,e,function(r,o){r?(i.push({content:o,file:e}),i.length===t.length&&n&&n("success",i)):n&&n("error",{response:o,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 n=t?this.questionHashes.namesInsensitive:this.questionHashes.names,r=n[e];return r?r[0]:null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var n=this.getQuestionsByValueNameCore(e,t);return n?n[0]:null},t.prototype.getQuestionsByValueNameCore=function(e,t){void 0===t&&(t=!1);var n=t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,r=n[e];return r||null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var i=this.getQuestionByName(e[r],t);i&&n.push(i)}return n},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var n=this.pages[t];if(n.containsElement(e))return n}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 n=0;n<e.length;n++)if(e[n]){var r=this.getPageByName(e[n]);r&&t.push(r)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addQuestionsToList(n,e,t);return n},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.firstPageIsStarted?1:0,n=t;n<this.pages.length;n++)if(this.pages[n].isVisible)for(var r=this.pages[n].questions,o=0;o<r.length;o++){var a=r[o];a.isVisible&&a.hasInput&&!i.a.isValueEmpty(a.correctAnswer)&&e.push(a)}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var n=this.getAllPanels();t&&(e=e.toLowerCase());for(var r=0;r<n.length;r++){var i=n[r].name;if(t&&(i=i.toLowerCase()),i==e)return n[r]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var n=new Array,r=0;r<this.pages.length;r++)this.pages[r].addPanelsIntoList(n,e,t);return n},t.prototype.createNewPage=function(e){return new s.a(e)},t.prototype.questionOnValueChanging=function(e,t){if(this.onValueChanging.isEmpty)return t;var n={name:e,question:this.getQuestionByValueName(e),value:t,oldValue:this.getValue(e)};return this.onValueChanging.fire(this,n),n.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueNameCore(e);if(n)for(var r=0;r<n.length;r++)this.isTwoValueEquals(n[r].value,t)||n[r].updateValueFromSurvey(t)}},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueNameCore(e);if(n)for(var r=0;r<n.length;r++){var i=n[r];if("onValueChanged"==this.checkErrorsMode){var o=i.errors.length;i.hasErrors(!0),(o>0||i.errors.length>0)&&this.fireValidatedErrorsOnCurrentPage()}i.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:i,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.notifyElementsOnAnyValueOrVariableChanged(e)}},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson){for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var n=e[t],r=n.getValueName();n.updateValueFromSurvey(this.getValue(r)),n.requireUpdateCommentValue&&n.updateCommentFromSurvey(this.getComment(r))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(){for(var e=this.getCurrentPageQuestions(),t={},n=0;n<e.length;n++){var r=e[n],i=r.getValueName();t[i]=this.getValue(i)}this.checkTriggers(t,!0)},t.prototype.getCurrentPageQuestions=function(){var e=[],t=this.currentPage;if(!t)return e;for(var n=0;n<t.questions.length;n++){var r=t.questions[n];r.visible&&r.name&&e.push(r)}return e},t.prototype.checkTriggers=function(e,t){if(!this.isCompleted&&0!=this.triggers.length)for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),i=0;i<this.triggers.length;i++){var o=this.triggers[i];o.isOnNextPage==t&&o.checkExpression(e,n,r)}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson)for(var e=this.pages,t=this.getFilteredValues(),n=this.getFilteredProperties(),r=0;r<e.length;r++)e[r].runCondition(t,n)},t.prototype.sendResult=function(e,t,n){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),this.isEditMode&&(n&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!n||this.clientId))){var r=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,function(e,t,n){r.surveyShowDataSaving&&(e?r.setCompletedState("success",""):r.setCompletedState("error","")),r.onSendResult.fire(r,{success:e,response:t,request:n})},this.clientId,n)}},t.prototype.getResult=function(e,t){var n=this;this.createSurveyService().getResult(e,t,function(e,t,r,i){n.onGetResult.fire(n,{success:e,data:t,dataList:r,response:i})})},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 n=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(e,t,r,i){n.isLoading=!1,e&&(n.isCompletedBefore="completed"==r,n.loadSurveyFromServiceJson(t))}):this.createSurveyService().loadSurvey(this.surveyId,function(e,t,r){n.isLoading=!1,e&&n.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.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson)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 n="on"==this.showQuestionNumbers?0:-1,t=0;t<this.pages.length;t++)n+=this.pages[t].setVisibleIndex(n)},t.prototype.updatePageVisibleIndexes=function(e){for(var t=0,n=0;n<this.pages.length;n++)this.pages[n].visibleIndex=this.pages[n].visible?t++:-1,this.pages[n].num=e&&this.pages[n].visible?this.pages[n].visibleIndex+1:-1},t.prototype.setJsonObject=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new o.b;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors)}},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.isStartedState=this.firstPageIsStarted,this.onIsSinglePageChanged(),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes()},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){if("pageno"===t){e.isExists=!0;var n=this.currentPage;return void(e.value=null!=n?this.visiblePages.indexOf(n)+1:0)}if("pagecount"===t)return e.isExists=!0,void(e.value=this.visiblePageCount);if("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:p.a.defaultLocale);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 r=(new l.a).getFirstName(t,this.data),i=this.getVariable(t);if(void 0!==i)return e.isExists=!0,void(e.value=i);r&&(r=r.toLowerCase());var o=this.getQuestionByValueName(r,!0);if(o){e.isExists=!0,t=o.getValueName()+t.substr(r.length),t=t.toLocaleLowerCase();var a={};return a[r]=e.returnDisplayValue?o.getDisplayValue(!1):o.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){var t=this.getQuestionsByValueNameCore(e);if(!t)return!1;for(var n=0;n<t.length;n++)if(t[n].isVisible)return!0;return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueNameCore(e);return t?t.length:0},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 i.a.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,n){void 0===n&&(n=!1);var r=this.questionOnValueChanging(e,t);if(!(this.isValueEqual(e,r)&&this.isTwoValueEquals(r,t)||(this.isValueEmpty(r)?this.deleteDataValueCore(this.valuesHash,e):(r=this.getUnbindValue(r),this.setDataValueCore(this.valuesHash,e,r)),this.updateQuestionValue(e,r),!0===n))){var i={};i[e]=r,this.checkTriggers(i,!1),this.runConditions(),this.notifyQuestionOnValueChanged(e,r),this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==t||(t=null);var n=this.getValue(e);return""!==n&&void 0!==n||(n=null),null===t||null===n?t===n:this.isTwoValueEquals(t,n)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e);var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.generateNewName=function(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].name]=!0;for(var i=1;n[t+i];)i++;return t+i},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())){var n=this.getCurrentPageQuestions();if(!(n.indexOf(t)<0)){for(var r=0;r<n.length;r++)if(n[r].hasInput&&n[r].isEmpty())return;this.checkIsCurrentPageHasErrors(!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){if(t||(t=""),!i.a.isTwoValueEquals(t,this.getComment(e))){var n=e+this.commentPrefix;i.a.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,n):this.setDataValueCore(this.valuesHash,n,t);var r=this.getQuestionsByValueNameCore(e);if(r)for(var o=0;o<r.length;o++)r[o].updateCommentFromSurvey(t);this.tryGoNextPageAutomatic(e);var a=this.getQuestionByName(e);a&&this.onValueChanged.fire(this,{name:n,question:a,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!0,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible: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,n,r){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||this.updateVisibleIndexes(),this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parentPanel:n,rootPanel:r})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name})},t.prototype.questionRenamed=function(e,t,n){this.questionHashesRemoved(e,t,n),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,n=0;n<t.length;n++)this.questionHashesAdded(t[n])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,n){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),n&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,n),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,n.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,n){var r=e[n];if(r){var r=e[n];r.indexOf(t)<0&&r.push(t)}else e[n]=[t]},t.prototype.questionHashRemovedCore=function(e,t,n){var r=e[n];if(r){var i=r.indexOf(t);i>-1&&r.splice(i,1),0==r.length&&delete e[n]}},t.prototype.panelAdded=function(e,t,n,r){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parentPanel:n,rootPanel:r})},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 d.b(t.error,this):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 d.b(t.error,this):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.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,n){var r={text:this.processTextCore(e,t,n),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},t.prototype.processTextCore=function(e,t,n){return void 0===n&&(n=!1),this.isDesignMode?e:this.textPreProcessor.process(e,t,n)},t.prototype.getSurveyMarkdownHtml=function(e,t){var n={element:e,text:t,html:null};return this.onTextMarkdown.fire(this,n),n.html},t.prototype.getCorrectedAnswerCount=function(){for(var e=this.getQuizQuestions(),t=0,n={question:null,result:!1},r=0;r<e.length;r++)n.question=e[r],n.result=n.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,n),n.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()};this.onTimerPanelInfoText.fire(this,e);var t=new h.a(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!0,configurable:!0}),t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),n=this.getDisplayTime(this.timeSpent),r=this.getPageMaxTimeToFinish(e),i=this.getDisplayTime(r),o=this.getDisplayTime(this.maxTimeToFinish);if("page"==this.showTimerPanelMode)return this.getTimerInfoPageText(e,t,i);if("survey"==this.showTimerPanelMode)return this.getTimerInfoSurveyText(n,o);if("all"==this.showTimerPanelMode){if(r<=0&&this.maxTimeToFinish<=0)return this.getLocString("timerSpentAll").format(t,n);if(r>0&&this.maxTimeToFinish>0)return this.getLocString("timerLimitAll").format(t,i,n,o);return this.getTimerInfoPageText(e,t,i)+" "+this.getTimerInfoSurveyText(n,o)}return""},t.prototype.getTimerInfoPageText=function(e,t,n){return this.getPageMaxTimeToFinish(e)>0?this.getLocString("timerLimitPage").format(t,n):this.getLocString("timerSpentPage").format(t,n)},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),n=e%60,r="";return t>0&&(r+=t+" "+this.getLocString("timerMin")),r&&0==n?r:(r&&(r+=" "),r+n+" "+this.getLocString("timerSec"))},t.prototype.startTimer=function(){if(!this.isTimerStarted&&!this.isDesignMode){var e=this;this.timerFunc=function(){e.doTimer()},this.isTimerStarted=!0,m.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,m.a.instance.stop(this.timerFunc))},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 n=[];return Array.prototype.push.apply(n,this.getPagesByNames(e)),Array.prototype.push.apply(n,this.getQuestionsByNames(t)),n},t.prototype.setTriggerValue=function(e,t,n){if(e)if(n)this.setVariable(e,t);else{var r=new l.a,i=r.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getValue(i))return;var o=this.getUnbindValue(this.getFilteredValues());r.setValue(o,e,t),this.setValue(i,o[i])}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var n=new l.a,r=n.getValue(t,this.getFilteredValues());this.setTriggerValue(e,r,!1)}},t.stylesManager=null,t.platform="unknown",t}(a.c);o.a.addClass("survey",[{name:"locale",choices:function(){return p.a.getLocales()},onGetValue:function(e){return e.locale==p.a.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages",className:"page",visible:!1},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,n){var r=e.addNewPage("");n.toObject({questions:t},r)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{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","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","correctQuestions"]},{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,n){"use strict";var r=n(0),i=n(1),o=n(5),a=n(10),s=n(3),u=n(13),l=n(11),c=n(9);n.d(t,"c",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"b",function(){return f});var p=function(){function e(e,t,n){void 0===n&&(n=-1),this.source=e,this.target=t,this.nestedPanelDepth=n}return e}(),d=function(e){function t(t){var n=e.call(this)||this;return n.panel=t,n.visible=t.areInvisibleElementsShowing,n.createNewArray("elements"),n}return r.a(t,e),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.elements.filter(function(e){return e.isVisible})},enumerable:!0,configurable:!0}),t.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!0,configurable:!0}),t.prototype.setWidth=function(){var e=this.visibleElements.length;if(0!=e)for(var t=0,n=0;n<this.elements.length;n++)if(this.elements[n].isVisible){var r=this.elements[n];r.renderWidth=r.width&&"string"==typeof r.width?r.width:(100/e).toFixed(6)+"%",r.rightIndent=t<e-1?1:0,t++}else this.elements[n].renderWidth=""},t.prototype.calcVisible=function(){return this.visibleElements.length>0},t}(o.c),h=function(e){function t(n){void 0===n&&(n="");var r=e.call(this,n)||this;return r.name=n,r.isQuestionsReady=!1,r.questionsValue=new Array,r.conditionVersion=-1,r.createNewArray("rows"),r.elementsValue=r.createNewArray("elements",r.onAddElement.bind(r),r.onRemoveElement.bind(r)),r.registerFunctionOnPropertyValueChanged("questionTitleLocation",r.onVisibleChanged.bind(r)),r.id=t.getPanelId(),r.createLocalizableString("title",r,!0),r.createLocalizableString("description",r,!0),r.createLocalizableString("requiredErrorText",r),r}return r.a(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].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}),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.getSurveyMarkdownHtml(this,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,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},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.a.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}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},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 n=t.questions,r=0;r<n.length;r++)this.questionsValue.push(n[r]);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,n=0;n<t.length;n++)if(t[n].name==e)return t[n];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.name==e)return r;var i=r.getPanel();if(i){var o=i.getElementByName(e);if(o)return o}}return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,n=0;n<t.length;n++)if(t[n].getValueName()==e)return t[n];return null},t.prototype.getValue=function(){for(var e={},t=this.questions,n=0;n<t.length;n++){var r=t[n];if(!r.isEmpty()){var i=r.getValueName();if(e[i]=r.value,this.data){var o=this.data.getComment(i);o&&(e[i+c.a.commentPrefix]=o)}}}return e},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,n=0;n<t.length;n++){var r=t[n],i=this.data.getComment(r.getValueName());i&&(e[r.getValueName()]=i)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},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 n=this.elements[t];if(n==e)return!0;var r=n.getPanel();if(r&&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 n={fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1};return this.hasErrorsCore(n),n.firstErrorQuestion&&n.firstErrorQuestion.focus(!0),n.result},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var n=this.survey.validatePanel(this);n&&(t.push(n),e.result=!0)}e.fireCallback&&(this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getErrorCustomText(e,t):e},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){var n=[];if(this.addQuestionsToList(n,!0),0!=n.length){for(var r=0;r<n.length;r++)if(!n[r].isEmpty())return;e.result=!0,t.push(new l.a(this.requiredErrorText,this)),e.firstErrorQuestion||(e.firstErrorQuestion=n[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,n=null,r=0;r<t.length;r++)if(n=t[r],n.isVisible)if(n.isPanel)n.hasErrorsCore(e);else if("paneldynamic"===n.getType())n.panels.forEach(function(t){t.hasErrorsCore(e)});else{var i=n;if(i.isReadOnly)continue;i.hasErrors(e.fireCallback)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=i),e.result=!0)}this.hasErrorsInPanels(e)},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e){void 0===e&&(e=!1);for(var t=this.elements,n=0;n<t.length;n++){var r=t[n];if(r.isVisible)if(r.isPanel){var i=r.getFirstQuestionToFocus(e);if(i)return i}else{var o=r;if(o.hasInput&&(!e||o.currentErrorCount>0))return o}}return null},t.prototype.addQuestionsToList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!1)},t.prototype.addPanelsIntoList=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.addElementsToList(e,t,n,!0)},t.prototype.addElementsToList=function(e,t,n,r){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,n,r)},t.prototype.addElementsToListCore=function(e,t,n,r,i){for(var o=0;o<t.length;o++){var a=t[o];n&&!a.visible||((i&&a.isPanel||!i&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,n,r,i):r&&this.addElementsToListCore(e,a.getElementsInDesign(!1),n,r,i))}},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")},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"},t.prototype.getChildrenLayoutType=function(){return"row"},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRow=function(){return new d(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onFirstRendering();this.onRowsChanged()},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setPropertyValue("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.updateRowsOnElementAdded(e,t),e.isPanel){var n=e;this.survey&&this.survey.panelAdded(n,t,this,this.root)}else if(this.survey){var r=e;this.survey.questionAdded(r,t,this,this.root)}this.addElementCallback&&this.addElementCallback(e);var i=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],function(){i.onElementVisibilityChanged(e)},this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",function(){i.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this)},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,n=0;n<t.length;n++){var r=t[n];if(r.elements.indexOf(e)>-1){r.updateVisible();break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,t=0;t<this.elements.length;t++){var n=this.elements[t],r=0==t||n.startWithNewLine,i=r?this.createRow():e[e.length-1];r&&e.push(i),i.addElement(n)}for(var t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.updateRowsOnElementAdded=function(e,t){if(this.canBuildRows()){var n=new p(null,e);n.target=e,n.isEdge=this.elements.length>1,this.elements.length<2?n.destination=this:(n.isBottom=t>0,n.destination=0==t?this.elements[1]:this.elements[t-1]),this.dragDropAddTargetToRow(n,null)}},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(t&&t.panel){var n=t.elements.indexOf(e);n<0||(t.elements.splice(n,1),t.elements.length>0?t.updateVisible():t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.findRowByElement=function(e){for(var t=this.rows,n=0;n<t.length;n++)if(t[n].elements.indexOf(e)>-1)return t[n];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},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.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)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 n=e,t=0;t<this.elements.length;t++)e+=this.elements[t].setVisibleIndex(e);return e-n},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!0,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var n=this.elements[t];n.setPropertyValue("isReadOnly",n.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=-1);var r=s.b.Instance.createQuestion(e,t);return this.addQuestion(r,n)?r:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){return new f(e)},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var n=0;n<this.elements.length;n++)if(this.elements[n].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||e.conditionVersion<this.conditionVersion)){this.conditionVersion=e.conditionVersion;for(var n=this.elements.slice(),r=0;r<n.length;r++){if(e.conditionVersion<this.conditionVersion)return;n[r].runCondition(e,t)}e.conditionVersion<this.conditionVersion||(this.areInvisibleElementsShowing||this.runVisibleCondition(e,t),this.runEnableCondition(e,t))}},t.prototype.runVisibleCondition=function(e,t){if(this.visibleIf){var n=new a.a(this.visibleIf);this.visible=n.run(e,t)}},t.prototype.runEnableCondition=function(e,t){if(this.enableIf){var n=new a.a(this.enableIf);this.readOnly=!n.run(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].onAnyValueChanged(e)},t.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.updateRowsRemoveElementFromRow(e.target,t)},t.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,n=this.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(t)>-1)return n[r];for(var r=0;r<this.elements.length;r++){var i=this.elements[r].getPanel();if(i){var o=i.dragDropFindRow(t);if(o)return o}}return null},t.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPanel(e))return!0;var n=e.destination,r=this.dragDropFindRow(n);return!r||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,r,t):this.dragDropAddTargetToExistingRow(e,r,t))},t.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){var n=t;if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},t.prototype.dragDropAddTargetToExistingRow=function(e,t,n){var r=t.elements.indexOf(e.destination);if(0==r&&!e.isBottom&&t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,n)):this.dragDropAddTargetToNewRow(e,t,n);var i=-1;n==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&r++;var o=this.findRowByElement(e.source);return(o!=t||o.elements.indexOf(e.source)!=r)&&(r!=i&&(i>-1&&(t.elements.splice(i,1),i<r&&r--),t.elements.splice(r,0,e.target),t.updateVisible(),i<0))},t.prototype.dragDropAddTargetToNewRow=function(e,t,n){var r=t.panel.createRow();r.addElement(e.target);var i=t.index;if(e.isBottom&&i++,n&&n.panel==r.panel&&n.index==i)return!1;var o=this.findRowByElement(e.source);return(!o||o.panel!=r.panel||1!=o.elements.length||o.index!=i)&&(t.panel.rows.splice(i,0,r),!0)},t.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,n){var r=e.createRow();r.addElement(t),0==e.elements.length||n?e.rows.push(r):e.rows.splice(0,0,r)},t.prototype.dragDropMoveElement=function(e,t,n){n>e.parent.elements.indexOf(e)&&n--,this.removeElement(e),this.addElement(t,n)},t.panelCounter=100,t}(o.b),f=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.name=t;var r=n;return n.registerFunctionOnPropertyValueChanged("state",function(){r.stateChangedCallback&&r.stateChangedCallback()}),n.registerFunctionOnPropertyValueChanged("width",function(){r.parent&&r.parent.elementWidthChanged(r)}),n.registerFunctionOnPropertiesValueChanged(["indent","innerIndent","rightIndent"],function(){r.onIndentChanged()}),n}return r.a(t,e),t.prototype.getType=function(){return"panel"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},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")},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.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},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,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",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}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},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.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.setPropertyValue("isVisible",this.isVisible),null!=this.survey&&this.survey.panelVisibilityChanged(this,this.visible)},t}(h);i.a.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:boolean",default:!0},"visibleIf:condition","enableIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new h}),i.a.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:"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.map(function(e){return{value:e.name,text:e.title}}):[]}}],function(){return new f},"panelbase")},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(8),a=n(12),s=n(4),u=n(2),l=n(11),c=n(35),p=n(10);n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h});var d=function(e){function t(t){var n=e.call(this,t)||this;n.filteredChoicesValue=null,n.otherItemValue=new a.a("other"),n.choicesFromUrl=null,n.cachedValueForUrlRequests=null,n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isFirstLoadChoicesFromUrl=!0;var r=n;n.choices=n.createItemValues("choices"),n.registerFunctionOnPropertyValueChanged("choices",function(){r.filterItems()||r.onVisibleChoicesChanged()}),n.registerFunctionOnPropertyValueChanged("hideIfChoicesEmpty",function(){r.updateVisibilityBasedOnChoices()}),n.createNewArray("visibleChoices"),n.choicesByUrl=n.createRestfull(),n.choicesByUrl.owner=n;var i=n.createLocalizableString("otherText",n,!0);return n.createLocalizableString("otherErrorText",n,!0),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(i),i.onGetTextCallback=function(e){return e||u.a.getString("otherItemText")},n.choicesByUrl.getResultCallback=function(e){r.onLoadChoicesFromUrl(e)},n.choicesByUrl.updateResultCallback=function(e,t){return r.survey?r.survey.updateChoicesFromServer(r,e,t):e},n.createLocalizableString("otherPlaceHolder",n),n}return r.a(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},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}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsEnableCondition(t,n),this.runItemsCondition(t,n)},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var n=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=null),n&&(this.filteredChoicesValue&&this.clearIncorrectValues(),this.onVisibleChoicesChanged()),n},t.prototype.runItemsEnableCondition=function(e,t){this.setConditionalEnableChoicesRunner(),a.a.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t)&&this.clearDisabledValues()},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.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.a(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.runConditionsForItems=function(e,t){return this.filteredChoicesValue=[],a.a.runConditionsForItems(this.activeChoices,this.filteredChoices,this.conditionChoicesVisibleIfRunner,e,t)},t.prototype.getHasOther=function(e){return e===this.otherItem.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!0,configurable:!0}),t.prototype.createRestfull=function(){return new c.a},t.prototype.getComment=function(){return this.commentValue?this.commentValue:this.getStoreOthersAsComment()?e.prototype.getComment.call(this):this.commentValue},t.prototype.setComment=function(t){this.hasComment||this.getStoreOthersAsComment()?e.prototype.setComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e),this.value=this.rendredValueToData(e)},enumerable:!0,configurable:!0}),t.prototype.setQuestionValue=function(t){if(!s.a.isTwoValueEquals(this.value,t)&&(e.prototype.setQuestionValue.call(this,t),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),!this.hasComment)){var n=this.isOtherSelected;if(n&&this.prevCommentValue){var r=this.prevCommentValue;this.prevCommentValue="",this.comment=r}!n&&this.comment&&(this.getStoreOthersAsComment()&&(this.prevCommentValue=this.comment),this.comment="")}},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var n=a.a.getItemByValue(this.activeChoices,t);return n?n.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0)?(this.comment=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=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),!s.a.isValueEmpty(e)&&((!t||e!=this.otherItem.value)&&null==a.a.getItemByValue(this.filteredChoices,e))},t.prototype.isValueDisabled=function(e){var t=a.a.getItemByValue(this.filteredChoices,e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment","default")},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")},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,"otherPlaceHolder",{get:function(){return this.getLocalizableStringText("otherPlaceHolder")},set:function(e){this.setLocalizableStringText("otherPlaceHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherPlaceHolder",{get:function(){return this.getLocalizableString("otherPlaceHolder")},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.getPropertyValue("visibleChoices",[])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,n=0;n<t.length;n++)t[n].isEnabled&&e.push(t[n]);return e},enumerable:!0,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=new Array,t=this.calcVisibleChoices();t||(t=[]);for(var n=0;n<t.length;n++)e.push(t[n]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.filteredChoices;var e=this.sortVisibleChoices(this.filteredChoices.slice());return this.addToVisibleChoices(e),e},t.prototype.canUseFilteredChoices=function(){return!this.hasOther&&"none"==this.choicesOrder},t.prototype.addToVisibleChoices=function(e){this.hasOther&&e.push(this.otherItem)},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var i=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=i.map(function(e,r){var i=a.a.getItemByValue(n.visibleChoices,e),o={name:r,title:"Choice",value:e,displayValue:n.getChoicesDisplayValue(n.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return i&&(t.calculations||[]).forEach(function(e){o[e.propertyName]=i[e.propertyName]}),o})}return r},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 n=a.a.getTextOrHtmlByValue(e,t);return""==n&&t?t:n},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.getChoices()},enumerable:!0,configurable:!0}),t.prototype.getChoices=function(){return this.choices},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.c(this.otherErrorText,this))},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&(!0===this.storeOthersAsComment||"default"==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.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t;var n=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var i=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&e.length>0&&(n=new Array,a.a.setData(n,e)),this.choicesFromUrl=n,this.filterItems(),this.onVisibleChoicesChanged(),n){var o=this.updateCachedValueForUrlRequests(i,n);o&&(this.locNotificationInData=!0,this.value=void 0,this.locNotificationInData=!1,this.value=o.value)}},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++)n.push(this.createCachedValueForUrlRequests(e[r],!0));return n}return{value:e,isExists:!t||!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var n=[],r=0;r<e.length;r++){var i=this.updateCachedValueForUrlRequests(e[r],t);if(i&&!this.isValueEmpty(i.value)){var o=i.value,s=a.a.getItemByValue(t,i.value);s&&(o=s.value),n.push(o)}}return{value:n}}var u=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,s=a.a.getItemByValue(t,u);return s&&(u=s.value),{value:u}},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.updateVisibilityBasedOnChoices())},t.prototype.updateVisibilityBasedOnChoices=function(){this.hideIfChoicesEmpty&&(this.visible=!this.filteredChoices||this.filteredChoices.length>0)},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,n){return e.text<n.text?-1*t:e.text>n.text?1*t:0})},t.prototype.randomizeArray=function(e){return s.a.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){this.keepIncorrectValues||this.survey&&this.survey.questionCountByValueName(this.getValueName())>1||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearIncorrectValues()},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return!(!this.getStoreOthersAsComment()&&this.isOtherSelected)&&this.hasUnknownValue(e,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment="")},t.prototype.getColumnClass=function(){var e=this.cssClasses.column;return this.hasColumns&&(e+=" sv-q-column-"+this.colCount),e},Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.colCount;if(this.hasColumns&&this.visibleChoices.length>0)for(var n=0;n<t;n++){for(var r=[],i=n;i<this.visibleChoices.length;i+=t)r.push(this.visibleChoices[i]);e.push(r)}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return this.colCount>1},enumerable:!0,configurable:!0}),t}(o.a),h=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return r.a(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:1)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!0,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t}(d);i.a.addClass("selectbase",[{name:"hasComment:boolean",layout:"row"},{name:"commentText",serializationProperty:"locCommentText",layout:"row"},"hasOther:boolean",{name:"otherPlaceHolder",serializationProperty:"locOtherPlaceHolder"},{name:"choices:itemvalue[]",baseValue:function(){return u.a.getString("choices_Item")}},{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)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition","choicesEnableIf:condition",{name:"otherText",serializationProperty:"locOtherText"},{name:"otherErrorText",serializationProperty:"locOtherErrorText"},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),i.a.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},function(e,t,n){"use strict";function r(e,t,n,r){e.hasOther&&(e.storeOthersAsComment=!1),e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=n.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r)}var i=n(0),o=n(1),a=n(43),s=n(4),u=n(5),l=n(23),c=n(15),p=n(2),d=n(3),h=n(14),f=n(30),m=n(25),g=n(9);n.d(t,"e",function(){return y}),n.d(t,"d",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"b",function(){return C}),n.d(t,"a",function(){return S});var y={dropdown:{properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,i){r(e,t,n,i),e.locOptionsCaption.isEmpty&&(e.optionsCaption=n.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,i){r(e,t,n,i),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText","choicesVisibleIf"],onCellQuestionUpdate:function(e,t,n,i){r(e,t,n,i),e.colCount=t.colCount>-1?t.colCount:n.columnColCount}},text:{properties:["placeHolder","inputType","maxLength"],onCellQuestionUpdate:function(e,t,n,r){}},comment:{properties:["placeHolder","rows","maxLength"],onCellQuestionUpdate:function(e,t,n,r){}},boolean:{properties:["defaultValue"],onCellQuestionUpdate:function(e,t,n,r){e.showTitle=!0}},expression:{properties:["expression","displayStyle","currency"],onCellQuestionUpdate:function(e,t,n,r){}}},v=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;r.colOwnerValue=null,r.indexValue=-1,r._isVisible=!0;var i=r;return r.createLocalizableString("totalFormat",r),r.registerFunctionOnPropertiesValueChanged(["totalType","totalExpression","totalFormat","totalCurrency","totalDisplayStyle","totalMaximumFractionDigits","totalMinimumFractionDigits"],function(){i.doColumnPropertiesChanged()}),r.updateTemplateQuestion(),r.name=t,n&&(r.title=n),r}return i.a(t,e),t.getColumnTypes=function(){var e=[];for(var t in y)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=y[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()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},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")},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,"value",{get:function(){return this.templateQuestion.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},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,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},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,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCondition",{get:function(){return!!this.visibleIf||!this.enableIf||!this.requiredIf},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,"totalType",{get:function(){return this.getPropertyValue("totalType","none")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){n.i(f.b)().indexOf(e)<0||this.setPropertyValue("totalCurrency",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(),n=this.createNewQuestion(t);return this.updateCellQuestion(n,e),n},t.prototype.updateCellQuestion=function(e,t){this.setQuestionProperties(e);var n=e.getType(),r=y[n];r&&r.onCellQuestionUpdate&&r.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():g.a.matrixDefaultCellType},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 n=this;this.templateQuestion.locTitle.onGetTextCallback=function(e){return n.getFullTitle(e)},this.templateQuestion.onPropertyChanged.add(function(){n.doColumnPropertiesChanged()})}},t.prototype.createNewQuestion=function(e){var t=o.a.createClass(e);return this.setQuestionProperties(t),t},t.prototype.setQuestionProperties=function(e){if(this.templateQuestion){var t=(new o.b).toJsonObject(this.templateQuestion,!0);t.type=e.getType(),e.startLoadingFromJson(),(new o.b).toObject(t,e),e.endLoadingFromJson(),e.onSurveyLoad()}},t.prototype.propertyValueChanged=function(t,n,r){e.prototype.propertyValueChanged.call(this,t,n,r),this.doColumnPropertiesChanged()},t.prototype.doColumnPropertiesChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertiesChanged(this)},t.prototype.getProperties=function(e){var t=y[e];return t&&t.properties?o.a.findProperties(e,t.properties):[]},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),n=0;n<t.length;n++){var r=t[n];delete this[r.name],r.serializationProperty&&delete this[r.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,n=this.getProperties(e),r=0;r<n.length;r++){var i=n[r];this.addProperty(t,i.name,!1),i.serializationProperty&&this.addProperty(t,i.serializationProperty,!0)}},t.prototype.addProperty=function(e,t,n){var r={configurable:!0,get:function(){return e[t]}};n||(r.set=function(n){e[t]=n}),Object.defineProperty(this,t,r)},t}(u.c),b=function(){function e(e,t,n){this.column=e,this.row=t,this.data=n,this.questionValue=this.createQuestion(e,t,n),this.questionValue.updateCustomWidget()}return e.prototype.createQuestion=function(e,t,n){var r=n.createQuestion(this.row,this.column);return r.validateValueCallback=function(){return n.validateCell(t,e.name,t.value)},o.d.getProperties(e.getType()).forEach(function(t){var n=t.name;void 0!==e[n]&&(r[n]=e[n])}),r},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}(),x=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.column=t,i.row=n,i.data=r,i.updateCellQuestion(),i}return i.a(t,e),t.prototype.createQuestion=function(e,t,n){var r=o.a.createClass("expression");return r.setSurveyImpl(t),r},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation()},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"";var e=this.column.totalType+"InArray";return m.a.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),C=function(){function e(t,n){this.isSettingValue=!1,this.cells=[],this.data=t,this.textPreProcessor=new l.a;var r=this;this.textPreProcessor.onProcess=function(e){r.getProcessedTextValue(e)},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(){for(var e={},t=0;t<this.cells.length;t++){var n=this.cells[t].question;n.isEmpty()||(e[n.getValueName()]=n.value)}return e},set:function(e){this.isSettingValue=!0;for(var t=0;t<this.cells.length;t++){var n=this.cells[t].question,r=e?e[n.getValueName()]:null;n.updateValueFromSurvey(r),n.onSurveyValueChanged(r)}this.isSettingValue=!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var n in e)t[n]=e[n];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.runCondition=function(t,n){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,n||(n={}),n[e.RowVariableName]=this;for(var r=0;r<this.cells.length;r++)t[e.RowVariableName]=this.value,this.cells[r].runCondition(t,n)},e.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question.onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var n=this.getSurvey();return n?n.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByColumnName(e);return t?t.value:null},e.prototype.setValue=function(t,n){if(!this.isSettingValue){var r=this.value,i=this.getValue(t),o=this.getQuestionByColumnName(t),a=this.data.onRowChanging(this,t,r);o&&!s.a.isTwoValueEquals(a,i)?this.getQuestionByColumnName(t).value=a:(this.data.onRowChanged(this,t,r,null==n&&!o),this.onAnyValueChanged(e.RowVariableName))}},e.prototype.getComment=function(e){var t=this.getValue(e+g.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+g.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.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var n=this.getQuestionByColumnName(t);if(n){var r=n.value;n.clearIncorrectValues(),s.a.isTwoValueEquals(r,n.value)||this.setValue(t,n.value)}else this.getSharedQuestionByName(t)||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.updateCellQuestionOnColumnChanged=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column===e)return void this.updateCellOnColumnChanged(this.cells[t])},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question&&(this.cells[t].question.readOnly=e)},e.prototype.updateCellOnColumnChanged=function(e){e.column.updateCellQuestion(e.question,this)},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,n=0;n<t.length;n++){var r=t[n];if(r.isVisible){var i=this.createCell(r);this.cells.push(i),e&&!s.a.isValueEmpty(e[r.name])&&(i.question.value=e[r.name])}}this.isSettingValue=!1;for(var n=0;n<this.cells.length;n++){var i=this.cells[n];i.question.isEmpty()||e&&s.a.isTwoValueEquals(i.question.value,e[i.column.name])||this.setValue(i.column.name,i.question.value)}},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!0,configurable:!0}),e.prototype.getProcessedTextValue=function(t){var n=(new c.a).getFirstName(t.name);if(t.isExists=n==e.RowVariableName,t.canProcess=t.isExists,t.isExists){var r={row:this.value};t.value=(new c.a).getValue(t.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 n=this.textPreProcessor.hasAllValuesOnLastRun,r=this.getSurvey().processTextEx(e,t,!1);return r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.idCounter=1,e}(),w=function(e){function t(t){var n=e.call(this,t,null)||this;return n.buildCells(null),n}return i.a(t,e),t.prototype.createCell=function(e){return new x(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,n){var r,i=0;do{r=s.a.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,n),i++}while(!s.a.isTwoValueEquals(r,this.value)&&i<3)},t.prototype.updateCellOnColumnChanged=function(e){e.updateCellQuestion()},t}(C),P=function(){function e(){this.minWidth="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),e.counter=1,e}(),V=function(){function e(){this.cells=[],this.idValue=e.counter++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),e.counter=1,e}(),T=function(e){function t(t){var n=e.call(this)||this;return n.matrix=t,n.createNewArray("rows"),n.build(),n}return i.a(t,e),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRow",{get:function(){return this.hasRemoveRowValue},enumerable:!0,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRow!=this.matrix.canRemoveRow||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowValue=this.matrix.canRemoveRow,this.buildHeader(),this.buildRows(),this.buildFooter()},t.prototype.onAddedRow=function(){this.rows.length>=this.matrix.visibleRows.length||this.rows.push(this.createHorizontalRow(this.matrix.visibleRows[this.matrix.visibleRows.length-1]))},t.prototype.onRemovedRow=function(e){this.rows.length<=e||this.rows.splice(e,1)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,t=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",t),t){if(this.headerRowValue=new V,this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var n=0;n<this.matrix.visibleColumns.length;n++)this.headerRow.cells.push(this.createHeaderCell(this.matrix.visibleColumns[n]));else for(var r=this.matrix.visibleRows,n=0;n<r.length;n++)this.headerRow.cells.push(this.createTextCell(r[n].locText));this.hasRemoveRow&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=new V,this.matrix.hasRowText&&this.footerRow.cells.push(this.createHeaderCell(null));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++)this.footerRow.cells.push(this.createEditCell(e[t]));this.hasRemoveRow&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.setPropertyValue("rows",e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],n=0;n<e.length;n++)t.push(this.createHorizontalRow(e[n]));return t},t.prototype.createHorizontalRow=function(e){var t=new V;this.matrix.hasRowText&&t.cells.push(this.createTextCell(e.locText));for(var n=0;n<e.cells.length;n++)t.cells.push(this.createEditCell(e.cells[n]));return this.hasRemoveRow&&t.cells.push(this.createRemoveRowCell(e)),t},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.visibleColumns,t=[],n=0;n<e.length;n++)t.push(this.createVerticalRow(e[n],n));return this.hasRemoveRow&&t.push(this.createVerticalRemoveRow()),t},t.prototype.createVerticalRow=function(e,t){var n=new V;this.matrix.showHeader&&n.cells.push(this.createTextCell(e.locTitle));for(var r=this.matrix.visibleRows,i=0;i<r.length;i++)n.cells.push(this.createEditCell(r[i].cells[t]));return this.matrix.hasTotal&&n.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),n},t.prototype.createVerticalRemoveRow=function(){var e=new V;this.matrix.showHeader&&e.cells.push(this.createTextCell(null));for(var t=this.matrix.visibleRows,n=0;n<t.length;n++)e.cells.push(this.createRemoveRowCell(t[n]));return this.matrix.hasTotal&&e.cells.push(this.createTextCell(null)),e},t.prototype.createEditCell=function(e){var t=new P;return t.cell=e,t.row=e.row,t.question=e.question,t.matrix=this.matrix,t},t.prototype.createHeaderCell=function(e){var t=this.createTextCell(e?e.locTitle:null);return t.minWidth=null!=e?this.matrix.getColumnWidth(e):"",t},t.prototype.createRemoveRowCell=function(e){var t=new P;return t.row=e,t.isRemoveRow=!0,t},t.prototype.createTextCell=function(e){var t=new P;return t.locTitle=e||new h.a(this.matrix,!1),t},t}(u.c),S=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1;var r=n;return n.choicesValue=n.createItemValues("choices"),n.createLocalizableString("optionsCaption",n),n.registerFunctionOnPropertyValueChanged("columns",function(e){r.updateColumnsIndexes(e),r.generatedVisibleRows=null,r.generatedTotalRow=null,r.resetRenderedTable(),r.fireCallback(r.columnsChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["columnLayout","addRowLocation"],function(){r.fireCallback(r.columnLayoutChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["cellType","optionsCaption","columnColCount"],function(){r.generatedVisibleRows=null,r.resetRenderedTable(),r.fireCallback(r.columnsChangedCallback)}),n.registerFunctionOnPropertiesValueChanged(["columnLayout","showHeader","minRowCount","isReadOnly","rowCount","hasFooter"],function(){r.resetRenderedTable()}),n}return i.a(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return g.a.matrixDefaultCellType},set:function(e){g.a.matrixDefaultCellType=e},enumerable:!0,configurable:!0}),t.addDefaultColumns=function(e){for(var t=d.b.DefaultColums,n=0;n<t.length;n++)e.addColumn(t[n])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(t){t.colOwner=e})},t.prototype.getType=function(){return"matrixdropdownbase"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return"vertical"!=this.columnLayout},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRow",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0},t.prototype.onEndRowAdding=function(){this.lockResetRenderedTable=!1,this.renderedTable&&(this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onAddedRow())},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onRemovedRow(e)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isLoadingFromJson||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!0,configurable:!0}),t.prototype.createRenderedTable=function(){return new T(this)},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},n=0;n<this.visibleColumns.length;n++){t.column=this.columns[n],t.columnName=t.column.name;var r=e.cells[n];t.cell=r,t.cellQuestion=r.question,t.value=r.value,this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",g.a.matrixDefaultCellType)},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.updateHasFooter(),this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].updateCellQuestionOnColumnChanged(e);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e)}},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!0,configurable:!0}),t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!0,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);for(var r="",i=n.length-1;i>=0&&"."!=n[i];i--)r=n[i]+r;var o=this.getColumnByName(r);if(!o)return null;var a=o.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(this.getRowValue(t))},t.prototype.clearErrors=function(){if(e.prototype.clearErrors.call(this),this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var n=this.generatedVisibleRows[t],r=0;r<n.cells.length;r++)n.cells[r].question.clearErrors()},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runCellsCondition(t,n),this.runTotalsCondition(t,n)},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows&&this.hasCellsCondition)for(var n=this.getRowConditionValues(e),r=this.generatedVisibleRows,i=0;i<r.length;i++)r[i].runCondition(n,t)},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t={};return e&&e instanceof Object&&(t=JSON.parse(JSON.stringify(e))),t.row={},t},Object.defineProperty(t.prototype,"hasCellsCondition",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasCondition)return!0;return!1},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);var t=this.generatedVisibleRows;if(t){for(var n=this.columns,r=0;r<n.length;r++)n[r].locStrsChanged();for(var r=0;r<t.length;r++)t[r].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.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",p.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 n=new v(e,t);return this.columns.push(n),n},t.prototype.getVisibleRows=function(){var e=this;if(this.isLoadingFromJson)return null;if(!this.generatedVisibleRows&&(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach(function(t){return e.onMatrixRowCreated(t)}),this.data)){var t={survey:this.survey};this.runCellsCondition(this.data.getAllValues(),t)}return this.generatedVisibleRows},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal?this.visibleTotalRow.value:{}},enumerable:!0,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isLoadingFromJson)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.generatedVisibleRows=null,this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var n=this.createNewValue();return this.getRowValueCore(t[e],n)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var n=this.visibleRows;if(e>=n.length)return null;this.onRowChanged(n[e],"",t,!1),this.onValueChanged()},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new w(this)},t.prototype.createNewValue=function(){return this.value?this.createValueCopy():{}},t.prototype.getRowValueCore=function(e,t,n){void 0===n&&(n=!1);var r=t[e.rowName]?t[e.rowName]:null;return!r&&n&&(r={},t[e.rowName]=r),r},t.prototype.getRowDisplayValue=function(e,t){if(!t)return t;for(var n in t){var r=e.getQuestionByColumnName(n);r||(r=this.getSharedQuestionByName(n,e)),r&&(t[n]=r.displayValue)}return t},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.visibleRows.map(function(e){var r={name:e.rowName,title:e.rowName,value:e.value,displayValue:n.getRowDisplayValue(e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map(function(e){return e.question.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){r[t.propertyName]=e[t.propertyName]}),r})),r},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var n=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(n,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t),this.onSetQuestionValue()},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 n=this.generatedVisibleRows[t].cells;if(n)for(var r=0;r<n.length;r++){var i=n[r].question;if(i&&(!i.supportGoNextPageAutomatic()||!i.value))return!1}}return!0},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var n=this.hasErrorInColumns(t);return e.prototype.hasErrors.call(this,t)||n},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=this.generatedVisibleRows,r=0;r<n.length;r++)for(var i=n[r],o=0;o<i.cells.length;o++){var a=i.cells[o].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,n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n].cells;if(r)for(var i=0;i<r.length;i++)if(r[i]){var o=r[i].question;t=o&&o.visible&&o.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 n=this.generatedVisibleRows[t].cells,r=0;r<n.length;r++){if(!e)return n[r].question;if(n[r].question.currentErrorCount>0)return n[r].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var n=t.createCellQuestion(e);return this.isReadOnly&&(n.readOnly=!0),n.setSurveyImpl(e),n},t.prototype.deleteRowValue=function(e,t){return delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e},t.prototype.onAnyValueChanged=function(e){if(!this.isLoadingFromJson&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,n=0;n<t.length;n++)t[n].onAnyValueChanged(e);this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,n){var r=this,i=function(t){for(var n=0;r.columns.length;n++)if(r.columns[n].name===t)return e.cells[n].question;return null};return{row:e,columnName:t,rowValue:n,value:n?n[t]:null,getCellQuestion:i}},t.prototype.onCellValueChanged=function(e,t,n){if(this.survey){var r=this.getOnCellValueChangedOptions(e,t,n);this.survey.matrixCellValueChanged(this,r)}},t.prototype.validateCell=function(e,t,n){if(this.survey){var r={row:e,columnName:t,rowValue:n,value:n[t]};return this.survey.matrixCellValidate(this,r)}},t.prototype.onRowChanging=function(e,t,n){if(!this.survey)return n?n[t]:null;var r=this.getOnCellValueChangedOptions(e,t,n),i=this.getRowValueCore(e,this.createNewValue(),!0);return r.oldValue=i?i[t]:null,this.survey.matrixCellValueChanging(this,r),r.value},t.prototype.onRowChanged=function(e,t,n,r){var i=this.createNewValue();this.isMatrixValueEmpty(i)&&(i=null);var o=this.createNewValue(),a=this.getRowValueCore(e,o,!0);a||(a={}),r&&delete a[t];for(var s=0;s<e.cells.length;s++){var u=e.cells[s].question.getValueName();delete a[u]}if(n){n=JSON.parse(JSON.stringify(n));for(var u in n)this.isValueEmpty(n[u])||(a[u]=n[u])}this.isObject(a)&&0===Object.keys(a).length&&(o=this.deleteRowValue(o,e)),this.isTwoValueEquals(i,o)||(this.isRowChanging=!0,this.setNewValue(o),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a))},t.prototype.getRowIndex=function(e){return this.visibleRows.indexOf(e)},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var n=this.getRowIndex(t);return n<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,n)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&this.data.setValue(this.getValueName()+g.a.matrixTotalValuePostFix,this.totalValue,!0)},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByColumnName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&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);o.a.addClass("matrixdropdowncolumn",["!name",{name:"title",serializationProperty:"locTitle"},{name:"cellType",default:"default",choices:function(){var e=v.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"hasOther:boolean","readOnly:boolean","minWidth","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return n.i(f.b)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1}],function(){return new v("")}),o.a.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},"horizontalScroll:boolean",{name:"choices:itemvalue[]"},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"dropdown",choices:function(){return v.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth"],function(){return new S("")},"matrixbase")},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=function(){function e(){}return e}(),i=function(){function e(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0}return e}(),o=function(){function e(){}return e.prototype.process=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var r=this.getItems(e),o=r.length-1;o>=0;o--){var a=r[o],s=this.getName(e.substring(a.start+1,a.end));if(s){var u=new i(s,t);if(this.onProcess(u),u.isExists){u.value||(this.hasAllValuesOnLastRunValue=!1);var l=u.value?u.value:"";n&&(l=encodeURIComponent(l)),e=e.substr(0,a.start)+l+e.substr(a.end+1)}else u.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=[],n=e.length,i=-1,o="",a=0;a<n;a++)if(o=e[a],"{"==o&&(i=a),"}"==o){if(i>-1){var s=new r;s.start=i,s.end=a,t.push(s)}i=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}()},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(25);n.d(t,"g",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"b",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"h",function(){return h});var a=function(){function e(){}return e.prototype.hasFunction=function(){return!1},e}(),s=function(e){function t(t,n,r,i){void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=!1);var o=e.call(this)||this;return o.operatorName=t,o.left=n,o.right=r,o.consumer=i?h.binaryFunctions.arithmeticOp(t):h.binaryFunctions[t],null==o.consumer&&h.throwInvalidOperatorError(t),o}return r.a(t,e),t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(){return"("+h.safeToString(this.left)+" "+h.operatorToString(this.operatorName)+" "+h.safeToString(this.right)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t}(a),u=function(e){function t(t,n){var r=e.call(this)||this;return r.expression=t,r.operatorName=n,r.consumer=h.unaryFunctions[n],null==r.consumer&&h.throwInvalidOperatorError(n),r}return r.a(t,e),t.prototype.toString=function(){return h.operatorToString(this.operatorName)+this.expression.toString()},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(a),l=function(e){function t(t){var n=e.call(this)||this;return n.values=t,n}return r.a(t,e),t.prototype.toString=function(){return"["+this.values.map(function(e){return e.toString()}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(t){return t.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(t){t.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t}(a),c=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return r.a(t,e),t.prototype.toString=function(){return this.value.toString()},t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e:this.isNumericValue(e)?0==e.indexOf("0x")?parseInt(e):parseFloat(e):e:e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t.prototype.isNumericValue=function(e){if(e&&(e.indexOf("-")>-1||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)},t}(a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.variableName=t,n}return r.a(t,e),t.prototype.toString=function(){return"{"+this.variableName+"}"},t.prototype.evaluate=function(e){var t=this.variableName.toLowerCase();return e.hasValue(t)?this.getCorrectValue(e.getValue(t)):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t}(c),d=function(e){function t(t,n){var r=e.call(this)||this;return r.origionalValue=t,r.parameters=n,Array.isArray(n)&&0===n.length&&(r.parameters=new l([])),r}return r.a(t,e),t.prototype.evaluate=function(e){return o.a.Instance.run(this.origionalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(){return this.origionalValue+"("+this.parameters.toString()+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.hasFunction=function(){return!0},t}(a),h=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw new Error("Invalid operator: '"+e+"'")},e.safeToString=function(e){return null==e?"":e.toString()},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isNumeric=function(e){if(e&&(e.indexOf("-")>-1||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.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.operatorToString=function(t){var n=e.signs[t];return null==n?t:n},e.unaryFunctions={empty:function(e){return null==e||!e},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){return function(n,r){i.a.isValueEmpty(n)&&(n=0),i.a.isValueEmpty(r)&&(r=0);var o=e.binaryFunctions[t];return null==o?null:o.call(this,n,r)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return e+t},minus:function(e,t){return e-t},mul:function(e,t){return e*t},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},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},equal:function(e,t){return i.a.isTwoValueEquals(e,t,!0)},notequal:function(e,t){return!i.a.isTwoValueEquals(e,t,!0)},contains:function(t,n){return e.binaryFunctions.containsCore(t,n,!0)},notcontains:function(t,n){return!t&&!i.a.isValueEmpty(n)||e.binaryFunctions.containsCore(t,n,!1)},anyof:function(t,n){if(!t&&i.a.isValueEmpty(n))return!0;if(!t||!Array.isArray(t)||0===t.length)return!1;if(i.a.isValueEmpty(n))return!0;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(e.binaryFunctions.contains(t,n[r]))return!0;return!1},allof:function(t,n){if(!t&&!i.a.isValueEmpty(n))return!1;if(!Array.isArray(n))return e.binaryFunctions.contains(t,n);for(var r=0;r<n.length;r++)if(!e.binaryFunctions.contains(t,n[r]))return!1;return!0},containsCore:function(e,t,n){if(!e)return!1;if(e.length||(e=e.toString()),"string"==typeof e||e instanceof String){if(!t)return!1;t=t.toString();var r=e.indexOf(t)>-1;return n?r:!r}for(var o=Array.isArray(t)?t:[t],a=0;a<o.length;a++){var s=0;for(t=o[a];s<e.length&&!i.a.isTwoValueEquals(e[s],t);s++);if(s==e.length)return!n}return n}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"&&",or:"||",power:"^",mod:"%",negate:"!"},e}()},function(e,t,n){"use strict";function r(e){for(var t=0,n=0;n<e.length;n++)t+=e[n];return t}function i(e){for(var t=0,n=0;n<e.length;n++)t+=e[n];return e.length>0?t/e.length:0}function o(e){if(2!=e.length)return null;var t=e[0];if(!t)return null;if(!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var n=e[1];return"string"==typeof n||n instanceof String?{data:t,name:n}:null}function a(e,t){var n=o(e);if(n){var r=void 0;if(Array.isArray(n.data))for(var i=0;i<n.data.length;i++){var a=n.data[i];a&&a[n.name]&&(r=t(r,a[n.name]))}else for(var s in n.data){var a=n.data[s];a&&a[n.name]&&(r=t(r,a[n.name]))}return r}}function s(e){var t=a(e,function(e,t){return void 0==e&&(e=0),e+t});return void 0!==t?t:0}function u(e){return a(e,function(e,t){return void 0==e?t:e<t?e:t})}function l(e){return a(e,function(e,t){return void 0==e?t:e>t?e:t})}function c(e){var t=a(e,function(e,t){return void 0==e&&(e=0),e+1});return void 0!==t?t:0}function p(e){var t=c(e);return 0==t?0:s(e)/t}function d(e){return e||3===e.length?e[0]?e[1]:e[2]:""}function h(e){return!e&&e.length<1?null:e[0]?new Date(e[0]):null}function f(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),n=Date.now()-t.getTime(),r=new Date(n);return Math.abs(r.getUTCFullYear()-1970)}function m(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],n=this.survey.getPageByName(t);if(n||(n=this.survey.getPanelByName(t)),!n)return!1;for(var r=n.questions,i=0;i<r.length;i++)if(r[i].hasErrors(!1))return!1;return!0}function g(){return this.survey&&this.survey.isDisplayMode}function y(){return new Date}n.d(t,"a",function(){return v});var v=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.hasFunction=function(e){return!!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,n){void 0===n&&(n=null);var r=this.functionHash[e];if(!r)return null;var i={func:r};if(n)for(var o in n)i[o]=n[o];return i.func(t)},e.Instance=new e,e}();v.Instance.register("sum",r),v.Instance.register("avg",i),v.Instance.register("sumInArray",s),v.Instance.register("minInArray",u),v.Instance.register("maxInArray",l),v.Instance.register("countInArray",c),v.Instance.register("avgInArray",p),v.Instance.register("iif",d),v.Instance.register("getDate",h),v.Instance.register("age",f),v.Instance.register("isContainerReady",m),v.Instance.register("isDisplayMode",g),v.Instance.register("currentDate",y)},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(27)),a=n(20),s=n(1),u=n(5),l=n(3),c=n(16);n.d(t,"b",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"a",function(){return f});var p=function(e){function t(t){var n=e.call(this,t)||this;n.panel=t,new c.a(n);var r=n;return n.koGetType=function(e){return r.getElementType(e)},n.koElementAfterRender=function(e,t){return r.elementAfterRender(e,t)},n}return r.a(t,e),t.prototype.getElementType=function(e){return e.isPanel?"survey-panel":"survey-question"},t.prototype.koAfterRender=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];"#text"==r.nodeName&&(r.data="")}},t.prototype.elementAfterRender=function(e,t){if(this.panel&&this.panel.survey){var n=u.b.GetFirstNonTextElement(e);if(n){t.isPanel?this.panel.survey.afterRenderPanel(t,n):this.panel.survey.afterRenderQuestion(t,n)}}},t}(a.a),d=function(e){function t(t){var n=e.call(this,t)||this;return n.panel=t,n}return r.a(t,e),t}(c.a),h=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;new d(n),n.onCreating();var r=n;return n.koElementType=i.observable("survey-panel"),n.koCss=i.pureComputed(function(){return r.cssClasses}),n.koIsCollapsed=i.observable(n.isCollapsed),n.koIsExpanded=i.observable(n.isExpanded),n.stateChangedCallback=function(){r.onStateChanged()},n.doExpand=function(){r.changeExpanded()},n}return r.a(t,e),t.prototype.createRow=function(){return new p(this)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},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.onStateChanged()},t}(a.b),f=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;return new c.a(n),n.onCreating(),n}return r.a(t,e),t.prototype.createRow=function(){return new p(this)},t.prototype.createNewPanel=function(e){return new h(e)},t.prototype.onCreating=function(){},t.prototype.onNumChanged=function(e){this.locTitle.onChanged()},t}(o.a);s.a.overrideClassCreator("panel",function(){return new h}),s.a.overrideClassCreator("page",function(){return new f}),l.a.Instance.registerElement("panel",function(e){return new h(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(4),a=n(5),s=n(20);n.d(t,"a",function(){return u});var u=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.name=t,n.hasShownValue=!1,n.isRandomizing=!1,n.timeSpent=0;var r=n;return n.locTitle.onRenderedHtmlCallback=function(e){return r.num>0?r.num+". "+e:e},n}return r.a(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},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")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!0,configurable:!0}),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){e!=this.hasShownValue&&(this.hasShownValue=e,this.isDesignMode||1==e&&this.areQuestionsRandomized&&this.randomizeElements())},t.prototype.randomizeElements=function(){if(!this.isRandomizing){this.isRandomizing=!0;for(var e=[],t=this.elements,n=0;n<t.length;n++)e.push(t[n]);var r=o.a.randomizeArray(e);this.elements.splice(0,this.elements.length);for(var n=0;n<r.length;n++)this.elements.push(r[n]);this.isRandomizing=!1}},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")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.scrollToTop=function(){a.b.ScrollElementToTop(this.id)},t.prototype.getPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=new Array;return this.addPanelsIntoList(n,e,t),n},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(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.dragDropStart=function(e,t,n){void 0===n&&(n=-1),this.dragDropInfo=new s.c(e,t,n)},t.prototype.dragDropMoveTo=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.dragDropFindRow(this.dragDropInfo.target);this.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.dragDropAddTarget(this.dragDropInfo),!0},t.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},t.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.survey)return!0;var t=null,n=null,r=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var i=e.parent;if(i){var o=i.elements,a=o.indexOf(e);a>-1&&(t=e,n=e,this.dragDropInfo.isBottom?t=a<o.length-1?o[a+1]:null:n=a>0?o[a-1]:null)}}var s={target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:r,insertAfter:n,insertBefore:t};return this.survey.dragAndDropAllow(s)},t.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,n=this.dragDropFindRow(t),r=this.dragDropGetElementIndex(t,n);if(this.updateRowsRemoveElementFromRow(t,n),!e&&n){var i=this.dragDropInfo.source,o=!1;i&&i.parent&&(o=n.panel==i.parent,o?(n.panel.dragDropMoveElement(i,t,r),r=-1):i.parent.removeElement(i)),r>-1&&n.panel.addElement(t,r)}return this.dragDropInfo=null,e?null:t}},t.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var n=t.elements.indexOf(e);if(0==t.index)return n;var r=t.panel.rows[t.index-1],i=r.elements[r.elements.length-1];return n+t.panel.elements.indexOf(i)+1},t.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!(e&&!e.isPage)||this.dragDropCanDropCore(this.dragDropInfo.target,e)},t.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;return!!this.dragDropCanDropCore(e,t)&&this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},t.prototype.dragDropCanDropCore=function(e,t){if(!t)return!0;if(this.dragDropIsSameElement(t,e))return!1;if(e.isPanel){var n=e;if(n.containsElement(t)||n.getElementByName(t.name))return!1}return!0},t.prototype.dragDropCanDropNotNext=function(e,t,n,r){if(!t||t.isPanel&&!n)return!0;if(e.parent!==t.parent)return!0;var i=e.parent,o=i.elements.indexOf(e),a=i.elements.indexOf(t);return a<o&&!r&&a--,r&&a++,o<a?a-o>1:o-a>0},t.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},t}(s.d);i.a.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,n){"use strict";var r=n(5);n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o});var i=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}(),o=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new r.a}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 n=e.name;n||(n="widget_"+this.widgets.length+1);var r=new i(n,e);this.widgetsValues.push(r),this.widgetsActivatedBy[n]=t,r.activatedByChanged(t),this.onCustomWidgetAdded.fire(r,null)},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var n=this.getCustomWidgetByName(e);n&&(this.widgetsActivatedBy[e]=t,n.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,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(21),s=n(2),u=n(12);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("optionsCaption",n);var r=n;return n.registerFunctionOnPropertiesValueChanged(["choicesMin","choicesMax","choicesStep"],function(){r.onVisibleChoicesChanged()}),n}return r.a(t,e),Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.getPropertyValue("showOptionsCaption")},set:function(e){this.setPropertyValue("showOptionsCaption",e)},enumerable:!0,configurable:!0}),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"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.isEmpty()?null:u.a.getItemByValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var n=[],r=0;r<t.length;r++)n.push(t[r]);for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)n.push(new u.a(r));return n},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin",0)},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax",0)},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep",1)},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!0,configurable:!0}),t}(a.b);i.a.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"showOptionsCaption:boolean",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1}],function(){return new l("")},"selectbase"),o.b.Instance.registerQuestion("dropdown",function(e){var t=new l(e);return t.choices=o.b.DefaultChoices,t})},function(e,t,n){"use strict";function r(){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","KRW","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 i=n(0),o=n(4),a=n(8),s=n(1),u=n(3),l=n(10);n.d(t,"a",function(){return c}),t.b=r;var c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("format",n);var r=n;return n.registerFunctionOnPropertyValueChanged("expression",function(){r.expressionRunner&&(r.expressionRunner=new l.b(r.expression))}),n}return i.a(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.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,n){if(e.prototype.runCondition.call(this,t,n),this.expression&&!this.expressionIsRunning){this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.b(this.expression));var r=this.expressionRunner.run(t,n);o.a.isTwoValueEquals(r,this.value)||(this.value=r),this.unlocCalculation()}},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e){var t=this.isValueEmpty(this.value)?this.defaultValue:this.value;if(this.isValueEmpty(t))return"";var n=this.getValueAsStr(t);return this.format?this.format.format(n):n},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){r().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 n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(t,n)}return e.toString()},t}(a.a);s.a.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"currency",choices:function(){return r()},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{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 c("")},"question"),u.b.Instance.registerQuestion("expression",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(1),a=n(8),s=n(4),u=n(32);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("placeHolder",n),n}return r.a(t,e),t.prototype.getType=function(){return"text"},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),"datetime_local"==e&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||"email"!==e||this.validators.some(function(e){return"emailvalidator"===e.getType()})||this.validators.push(new u.b)},enumerable:!0,configurable:!0}),t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},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")},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);o.a.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 l("")},"question"),i.b.Instance.registerQuestion("text",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(11),a=n(2),s=n(1),u=n(10),l=n(4);n.d(t,"h",function(){return c}),n.d(t,"f",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"d",function(){return h}),n.d(t,"g",function(){return f}),n.d(t,"c",function(){return m}),n.d(t,"e",function(){return g}),n.d(t,"b",function(){return y});var c=function(){function e(e,t){void 0===t&&(t=null),this.value=e,this.error=t}return e}(),p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return r.a(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,n,r){return void 0===r&&(r=null),null},t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.errorOwner?this.errorOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){return new o.b(this.getErrorText(e),this.errorOwner)},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(i.c),d=function(){function e(){}return e.prototype.run=function(e){for(var t=[],n=0;n<e.validators.length;n++){var r=null,i=e.validators[n];r=i.isValidateAllValues?i.validateAllValues(e.validatedValue,e.getDataFilteredValues(),e.getDataFilteredProperties(),e.getValidatorTitle()):i.validate(e.validatedValue,e.getValidatorTitle()),r&&r.error&&t.push(r.error)}return t},e}(),h=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minValue=t,r.maxValue=n,r}return r.a(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),l.a.isValueEmpty(e))return null;if(!this.isNumber(e))return new c(null,new o.e(null,this.errorOwner));var n=new c(parseFloat(e));return null!==this.minValue&&this.minValue>n.value?(n.error=this.createCustomError(t),n):null!==this.maxValue&&this.maxValue<n.value?(n.error=this.createCustomError(t),n):"number"==typeof e?null:n},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}(p),f=function(e){function t(t,n,r){void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=!0);var i=e.call(this)||this;return i.minLength=t,i.maxLength=n,i.allowDigits=r,i}return r.a(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),""!==e&&l.a.isValueEmpty(e))return null;if(!this.allowDigits){if(!/^[A-Za-z\s]*$/.test(e))return new c(null,this.createCustomError(t))}return this.minLength>0&&e.length<this.minLength?new c(null,this.createCustomError(t)):this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(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}(p),m=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.minCount=t,r.maxCount=n,r}return r.a(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 n=e.length;return this.minCount&&n<this.minCount?new c(null,this.createCustomError(a.a.getString("minSelectError").format(this.minCount))):this.maxCount&&n>this.maxCount?new c(null,this.createCustomError(a.a.getString("maxSelectError").format(this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},t}(p),g=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this)||this;return n.regex=t,n}return r.a(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 n=new RegExp(this.regex);if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=this.hasError(n,e[r],t);if(i)return i}return this.hasError(n,e,t)},t.prototype.hasError=function(e,t,n){return e.test(t)?null:new c(t,this.createCustomError(n))},t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,t}return r.a(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 c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidEmail")},t}(p),v=function(e){function t(){var t=e.call(this)||this;return t.conditionRunner=null,t}return r.a(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,n,r){return void 0===r&&(r=null),this.expression?(this.conditionRunner||(this.conditionRunner=new u.a(this.expression)),this.conditionRunner.expression=this.expression,this.conditionRunner.run(t,n)?null:new c(e,this.createCustomError(r))):null},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidExpression").format(this.expression)},t}(p);s.a.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.a.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new h},"surveyvalidator"),s.a.addClass("textvalidator",["minLength:number","maxLength:number","allowDigits:boolean"],function(){return new f},"surveyvalidator"),s.a.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new m},"surveyvalidator"),s.a.addClass("regexvalidator",["regex"],function(){return new g},"surveyvalidator"),s.a.addClass("emailvalidator",[],function(){return new y},"surveyvalidator"),s.a.addClass("expressionvalidator",["expression:condition"],function(){return new v},"surveyvalidator")},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(60)),a=n(18);n.d(t,"a",function(){return u});var s=n(96),u=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;r.koExpanded=i.observable(!1),r.koExpandedCss=i.observable(r.getButtonCss());var o=r;return r.expandedChangedCallback=function(){o.koExpanded(o.isExpanded),o.koExpandedCss(o.getButtonCss())},r.showingChangedCallback=function(){o.doShowingChanged()},r.doExpand=function(){o.changeExpanded()},r}return r.a(t,e),t.prototype.createSurvey=function(e){return new a.b(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,i.cleanNode(this.windowElement),i.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}(o.a)},function(e,t){},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(12),a=n(1),s=n(11),u=n(9);n.d(t,"a",function(){return c});var l=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,n){Array.isArray(e[t])?e[t].push(n):void 0!==e[t]?e[t]=[e[t]].concat(n):"object"==typeof n&&1===Object.keys(n).length&&Object.keys(n)[0]===t?e[t]=n[t]:e[t]=n},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var r=e.children[n],i={};this.xml2Json(r,i),this.assignValue(t,r.nodeName,i)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),n={};return this.xml2Json(t,n),n},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 r.a(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return u.a.webserviceEncodeParameters},set:function(e){u.a.webserviceEncodeParameters=e},enumerable:!0,configurable:!0}),t.clearCache=function(){t.itemsResult={}},t.addSameRequest=function(e){var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){var r=t.sendingSameRequests[e.objHash];delete t.sendingSameRequests[e.objHash];for(var i=0;i<r.length;i++)r[i].getResultCallback&&r[i].getResultCallback(n)},t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return!!r&&(e.getResultCallback&&e.getResultCallback(r),!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.error=null,this.useChangedItemsResults()||t.addSameRequest(this)||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,u.a.webserviceEncodeParameters),n=e.processTextEx(this.path,!1,u.a.webserviceEncodeParameters);t.hasAllValuesOnLastRun&&n.hasAllValuesOnLastRun?(this.processedUrl=t.text,this.processedPath=n.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 n=new l;t=n.parseXmlString(e)}else try{t=JSON.parse(e)}catch(n){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 n=this;e.onload=function(){n.isRunningValue=!1,200===e.status?n.onLoad(n.parseResponse(e.response)):n.onError(e.statusText,e.responseText)};var r={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,r),r.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,n=0;n<e.length;n++)t.push(this.getCustomPropertyName(e[n].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=a.a.getProperties(this.itemValueType),t=[],n=0;n<e.length;n++)"value"!==e[n].name&&"text"!==e[n].name&&"visibleIf"!==e[n].name&&"enableIf"!==e[n].name&&t.push(e[n]);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(),n=0;n<t.length;n++)e[t[n]]&&(this[t[n]]=e[t[n]])},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(),n=0;n<t.length;n++)this[t[n]]&&(e[t[n]]=this[t[n]]);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,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse",!1)},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=a.a.findProperty(this.owner.getType(),"choices");return e?"itemvalue[]"==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 n=[],r=this.getResultAfterPath(e);if(r&&r.length)for(var i=0;i<r.length;i++){var a=r[i];if(a){var u=this.getItemValueCallback?this.getItemValueCallback(a):this.getValue(a),l=this.getTitle(a),c=new o.a(u,l);this.setCustomProperties(c,a),n.push(c)}}else this.allowEmptyResponse||(this.error=new s.f(null,this.owner));this.updateResultCallback&&(n=this.updateResultCallback(n,e)),t.itemsResult[this.objHash]=n,this.getResultCallback(n),t.unregisterSameRequests(this,n)},t.prototype.setCustomProperties=function(e,t){for(var n=this.getCustomProperties(),r=0;r<n.length;r++){var i=n[r],o=this.getValueCore(t,this.getPropertyBinding(i.name));this.isValueEmpty(o)||(e[i.name]=o)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new s.g(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),n=0;n<t.length;n++)if(!(e=e[t[n]]))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 n=t.split("."),r=0;r<n.length;r++)if(!(e=e[n[r]]))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.sendingSameRequests={},t}(i.c);a.a.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"allowEmptyResponse:boolean",default:!1}],function(){return new c})},function(e,t,n){"use strict";var r=n(101);n.d(t,"a",function(){return o});var i=function(){function e(e,t){this.at=e,this.code=t}return e}(),o=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/==/g,"= ").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var o=e.parserCache[t];return void 0===o&&(o=n.i(r.a)(this.patchExpression(t)),e.parserCache[t]=o),o}catch(e){e instanceof r.b&&(this.conditionError=new i(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!0,configurable:!0}),e.parserCache={},e}()},function(e,t,n){"use strict";var r=n(9);n.d(t,"a",function(){return i});var i=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r.a.surveyServiceUrl},set:function(e){r.a.surveyServiceUrl=e},enumerable:!0,configurable:!0}),e.prototype.loadSurvey=function(t,n){var r=new XMLHttpRequest;r.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response);n(200==r.status,e,r.response)},r.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,n,r){var i=new XMLHttpRequest;i.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+n),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){var e=JSON.parse(i.response),t=e?e.survey:null,n=e?e.isCompleted:null;r(200==i.status,t,n,i.response)},i.send()},e.prototype.sendResult=function(t,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=!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(n)};i&&(s.clientId=i),o&&(s.isPartialCompleted=!0);var u=JSON.stringify(s);a.onload=a.onerror=function(){r&&r(200===a.status,a.response,a)},a.send(u)},e.prototype.sendFile=function(t,n,r){var i=new XMLHttpRequest;i.onload=i.onerror=function(){r&&r(200==i.status,JSON.parse(i.response))},i.open("POST",e.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",n),o.append("postId",t),i.send(o)},e.prototype.getResult=function(t,n,r){var i=new XMLHttpRequest,o="resultId="+t+"&name="+n;i.open("GET",e.serviceUrl+"/getResult?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null,t=null;if(200==i.status){e=JSON.parse(i.response),t=[];for(var n in e.QuestionResult){var o={name:n,value:e.QuestionResult[n]};t.push(o)}}r(200==i.status,e,t,i.response)},i.send()},e.prototype.isCompleted=function(t,n,r){var i=new XMLHttpRequest,o="resultId="+t+"&clientId="+n;i.open("GET",e.serviceUrl+"/isCompleted?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null;200==i.status&&(e=JSON.parse(i.response)),r(200==i.status,e,i.response)},i.send()},e}()},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(20);n.d(t,"a",function(){return a});var a=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.createLocalizableString("content",n,!0);var r=n;return n.registerFunctionOnPropertyValueChanged("content",function(){r.onContentChanged()}),n}return r.a(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!0,configurable:!0}),t.prototype.onContentChanged=function(){var e="";e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,n=this.content,r=0,i=null;null!==(i=t.exec(n));){i.index>r&&(e.push(n.substr(r,i.index-r)),r=i.index);var o=this.getQuestionFromText(i[0]);o?e.push(this.getHtmlForQuestion(o)):e.push(n.substr(r,i.index+i[0].length-r)),r=i.index+i[0].length}return r<n.length&&e.push(n.substr(r,n.length-r)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substr(1,e.length-2),e=e.replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,n){e.prototype.onAddElement.call(this,t,n),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var n=this.getElementContentText(t);this.content=this.content.replace(n,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,n){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||!window&&!window.getSelection)return!1;var n=window.getSelection();if(n.getRangeAt&&n.rangeCount){var r=n.getRangeAt(0);r.deleteContents(),r.insertNode(document.createTextNode(e));var i=this;if(i.getContent){var o=i.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(o.b);i.a.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new a},"panel")},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(52),s=n(22),u=n(1),l=n(3),c=n(7),p=n(16);n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h});var d=function(e){function t(t){var n=e.call(this,t)||this,r=n;return n.koCellAfterRender=function(e,t){return r.cellAfterRender(e,t)},n.koRecalc=i.observable(0),n.koTable=i.pureComputed(function(){return r.koRecalc(),r.question.renderedTable}),n.question.onRenderedTableCreatedCallback=function(e){new p.a(e)},n.question.onRenderedTableResetCallback=function(){r.koRecalc(r.koRecalc()+1)},n.koAddRowClick=function(){r.addRow()},n.koRemoveRowClick=function(e){r.removeRow(e.row)},n.koIsAddRowOnTop=i.pureComputed(function(){return r.koRecalc(),r.isAddRowTop()}),n.koIsAddRowOnBottom=i.pureComputed(function(){return r.koRecalc(),r.isAddRowBottom()}),n.koCanRemoveRow=i.pureComputed(function(){return r.koRecalc(),r.canRemoveRow()}),n.question.koTable=n.koTable,n.question.koCellAfterRender=n.koCellAfterRender,n.question.koAddRowClick=n.koAddRowClick,n.question.koRemoveRowClick=n.koRemoveRowClick,n.question.koIsAddRowOnTop=n.koIsAddRowOnTop,n.question.koIsAddRowOnBottom=n.koIsAddRowOnBottom,n.question.koCanRemoveRow=n.koCanRemoveRow,n}return r.a(t,e),t.prototype.getQuestionTemplate=function(){return"matrixdynamic"},t.prototype.cellAfterRender=function(e,t){if(this.question.survey){var n=o.b.GetFirstNonTextElement(e);if(n){var r=t;r.question.customWidget&&(r.question.customWidget.afterRender(r.question,n),i.utils.domNodeDisposal.addDisposeCallback(n,function(){r.question.customWidget.willUnmount(r.question,n)}));var a={cell:r.cell,cellQuestion:r.question,htmlElement:n,row:r.row,column:r.cell?r.cell.column:null};this.question.survey.matrixAfterCellRender(this.question,a)}}},t.prototype.isAddRowTop=function(){return!1},t.prototype.isAddRowBottom=function(){return!1},t.prototype.canRemoveRow=function(){return!1},t.prototype.addRow=function(){},t.prototype.removeRow=function(e){},t}(c.a),h=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new d(n),n}return r.a(t,e),t}(a.a);u.a.overrideClassCreator("matrixdropdown",function(){return new h("")}),l.b.Instance.registerQuestion("matrixdropdown",function(e){var t=new h(e);return t.choices=[1,2,3,4,5],t.rows=l.b.DefaultRows,s.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(31),o=n(1),a=n(3),s=n(7);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new s.a(n),n}return r.a(t,e),t}(i.a);o.a.overrideClassCreator("text",function(){return new u("")}),a.b.Instance.registerQuestion("text",function(e){return new u(e)})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r=n(95),i=function(){function e(){}return e.prototype.addText=function(e,t,n){t=this.getId(t,n),this.text=this.text+'<script type="text/html" '+t+">"+e+"<\/script>"},e.prototype.replaceText=function(e,t,n){void 0===n&&(n=null);var r=this.getId(t,n),i=this.text.indexOf(r);if(i<0)return void this.addText(e,t,n);if(!((i=this.text.indexOf(">",i))<0)){var o=i+1;i=this.text.indexOf("<\/script>",o),i<0||(this.text=this.text.substr(0,o)+e+this.text.substr(i))}},e.prototype.getId=function(e,t){var n='id="survey-'+e;return t&&(n+="-"+t),n+'"'},Object.defineProperty(e.prototype,"text",{get:function(){return r},set:function(e){r=e},enumerable:!0,configurable:!0}),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",questionsProgressText:"Answered {0}/{1} questions",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:"Loading Survey...",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)...",noFileChosen:"No file chosen",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",clearCaption:"Clear",removeFileCaption:"Remove this file"}},function(e,t,n){"use strict";var r=n(0),i=n(12),o=n(8),a=n(1),s=n(10),u=n(4);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.filteredColumns=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return r.a(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runItemsCondition(t,n)},t.prototype.filterItems=function(){return this.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.runItemsCondition=function(e,t){var n=this.runConditionsForRows(e,t);return n=this.runConditionsForColumns(e,t)||n,n&&((this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),this.generatedVisibleRows=null,this.onRowsChanged()),n},t.prototype.runConditionsForRows=function(e,t){var n=this.rowsVisibleIf?new s.a(this.rowsVisibleIf):null;this.filteredRows=[];var r=i.a.runConditionsForItems(this.rows,this.filteredRows,n,e,t);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),r},t.prototype.runConditionsForColumns=function(e,t){var n=this.columnsVisibleIf?new s.a(this.columnsVisibleIf):null;this.filteredColumns=[];var r=i.a.runConditionsForItems(this.columns,this.filteredColumns,n,e,t);return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),r},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,o=this.filteredRows?this.filteredRows:this.rows,a=this.filteredColumns?this.filteredColumns:this.columns;for(var s in t)i.a.getItemByValue(o,s)&&i.a.getItemByValue(a,t[s])?(null==n&&(n={}),n[s]=t[s]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=u.a.getUnbindValue(this.value),t={},n=this.visibleRows,r=0;r<n.length;r++){var i=this.getRowName(n[r]);e[i]&&(t[i]=e[i])}u.a.isTwoValueEquals(t,this.value)||(this.value=t)}},t.prototype.getRowName=function(e){return e.name},t}(o.a);a.a.addClass("matrixbase",["columnsVisibleIf:condition","rowsVisibleIf:condition",{name:"showHeader:boolean",default:!0}],void 0,"question")},function(e,t,n){"use strict";var r=n(0),i=n(3),o=n(1),a=n(8);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("label",n,!0),n}return r.a(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},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")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},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);o.a.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"),i.b.Instance.registerQuestion("boolean",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(21),s=n(4),u=n(12),l=n(2);n.d(t,"a",function(){return c});var c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.noneItemValue=new u.a("none"),n.selectAllItemValue=new u.a("selectall");var r=n.createLocalizableString("noneText",n,!0);r.onGetTextCallback=function(e){return e||l.a.getString("noneItemText")},n.noneItemValue.locOwner=n,n.noneItemValue.setLocText(r);var i=n.createLocalizableString("selectAllText",n,!0);i.onGetTextCallback=function(e){return e||l.a.getString("selectAllItemText")},n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(i);var o=n;return n.registerFunctionOnPropertiesValueChanged(["hasNone","noneText","hasSelectAll","selectAllText"],function(){o.onVisibleChoicesChanged()}),n}return r.a(t,e),t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText",l.a.getString("noneItemText"))},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText",l.a.getString("selectAllItemText"))},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.getPropertyValue("hasSelectAll",!1)},set:function(e){this.setPropertyValue("hasSelectAll",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var n=e.length;return this.isItemSelected(this.otherItem)&&n--,n===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!0,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var n=this.visibleChoices[t];n!==this.noneItem&&n!==this.otherItem&&n!==this.selectAllItem&&e.push(n.value)}this.value=e},Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.getPropertyValue("hasNone",!1)},set:function(e){this.setPropertyValue("hasNone",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var n=0;n<t.length;n++)if(s.a.isTwoValueEquals(t[n],e.value))return!0;return!1},t.prototype.setNewValue=function(t){t=this.valueFromData(t);var n=this.value;if(t||(t=[]),n||(n=[]),!s.a.isTwoValueEquals(n,t)){if(this.hasNone){var r=this.noneIndexInArray(n),i=this.noneIndexInArray(t);r>-1?i>-1&&t.length>1&&t.splice(i,1):i>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,t)}},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,n=0;n<e.length;n++)if(e[n]==t)return n;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasNone&&!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.addToVisibleChoices=function(t){this.hasSelectAll&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t),this.hasNone&&t.push(this.noneItem)},t.prototype.getDisplayValueCore=function(e){if(this.isEmpty())return"";for(var t=this.visibleChoices,n=this.createValueCopy(),r="",i=0;i<n.length;i++){var o=this.getChoicesDisplayValue(t,n[i]);o&&(r&&(r+=", "),r+=o)}return r},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value;if(t){if(!Array.isArray(t)||0==t.length)return void(e||(this.hasComment?this.value=null:this.clearValue()));for(var n=[],r=0;r<t.length;r++)(!e&&!this.canClearValueAnUnknow(t[r])||e&&!this.isValueDisabled(t[r]))&&n.push(t[r]);n.length!=t.length&&(0==n.length?this.clearValue():this.value=n)}},t.prototype.getConditionJson=function(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(r.type="radiogroup"),r},t.prototype.isAnswerCorrect=function(){return s.a.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getHasOther=function(e){return!(!e||!Array.isArray(e))&&e.indexOf(this.otherItem.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var n=[],r=0;r<t.length;r++){var i=u.a.getItemByValue(this.activeChoices,t[r]);i?n.push(i.value):n.push(t[r])}return n},t.prototype.renderedValueFromDataCore=function(e){e&&Array.isArray(e)||(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 n=e.slice();return n[t]=this.otherItem.value,n}}return e},t.prototype.rendredValueToDataCore=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 n=e.slice();return n[t]=this.getComment(),n}return e},t.prototype.hasUnknownValue=function(t,n){return void 0===n&&(n=!1),(!this.hasNone||t!=this.noneItemValue.value)&&e.prototype.hasUnknownValue.call(this,t,n)},t.prototype.getType=function(){return"checkbox"},t}(a.a);i.a.addClass("checkbox",["hasSelectAll:boolean","hasNone:boolean",{name:"noneText",serializationProperty:"locNoneText"},{name:"selectAllText",serializationProperty:"locSelectAllText"}],function(){return new c("")},"checkboxbase"),o.b.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=o.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(1),a=n(3),s=n(4);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.createLocalizableString("placeHolder",n),n}return r.a(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},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")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},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}(i.a);o.a.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.b.Instance.registerQuestion("comment",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(8);n.d(t,"a",function(){return a});var a=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return r.a(t,e),t.prototype.getType=function(){return"empty"},t}(o.a);i.a.addClass("empty",[],function(){return new a("")},"question")},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(1),a=n(3),s=n(5),u=n(11),l=n(2);n.d(t,"a",function(){return c});var c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.isUploading=!1,n.onStateChanged=new s.a,n.previewValue=[],n.currentState="empty",n}return r.a(t,e),t.prototype.getType=function(){return"file"},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},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,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},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,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",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,"removeFileCaption",{get:function(){return l.a.getString("removeFileCaption")},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(e){var t=this;this.survey.clearFiles(this.name,this.value,null,function(n,r){"success"===n&&(t.value=void 0,t.errors=[],!!e&&e())})},t.prototype.removeFile=function(e){var t=this;this.survey.clearFiles(this.name,this.value,e.name,function(n,r){if("success"===n){var i=t.value;Array.isArray(i)?t.value=i.filter(function(t){return t.name!==e.name}):t.value=void 0}})},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){this.stateChanged("loading");var n=function(){var n=[];t.storeDataAsText?e.forEach(function(r){var i=new FileReader;i.onload=function(o){n=n.concat([{name:r.name,type:r.type,content:i.result}]),n.length===e.length&&(t.value=(t.value||[]).concat(n))},i.readAsDataURL(r)}):t.survey.uploadFiles(t.name,e,function(e,n){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(n.map(function(e){return{name:e.file.name,type:e.file.type,content:e.content}})))})};this.allowMultiple?n():this.clear(n)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.setQuestionValue=function(t){var n=this;e.prototype.setQuestionValue.call(this,t),this.previewValue=[];var r=!Array.isArray(t)&&t||Array.isArray(t)&&t.length>0?this.showPreview?"loading":"loaded":"empty";if(this.stateChanged(r),this.showPreview&&t){var i=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(i.forEach(function(e){var t=e.content||e;n.previewValue=n.previewValue.concat([{name:e.name,type:e.type,content:t}])}),"loading"===r&&this.stateChanged("loaded")):i.forEach(function(e){e.content;n.survey.downloadFile(n.name,e,function(t,r){"success"===t?(n.previewValue=n.previewValue.concat([{content:r,name:e.name,type:e.type}]),n.previewValue.length===i.length&&n.stateChanged("loaded")):n.stateChanged("error")})})}},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.isUploading&&this.waitForUpload&&t.push(new u.k(l.a.getString("uploadingFile"),this))},t.prototype.stateChanged=function(e){"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e})},t.prototype.allFilesOk=function(e){var t=this,n=this.errors?this.errors.length:0;return(e||[]).forEach(function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new u.l(t.maxSize,t))}),n===this.errors.length},t.prototype.isFileImage=function(e){if(!e)return!1;var t="data:image",n=e.content&&e.content.substr(0,t.length);return(n=n&&n.toLowerCase())===t||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}})}return n},t}(i.a);o.a.addClass("file",[{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},"maxSize:number"],function(){return new c("")},"question"),a.b.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(58),o=n(1),a=n(3);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;n.name=t;var r=n.createLocalizableString("html",n),i=n;return r.onGetTextCallback=function(e){return i.survey?i.survey.processHtml(e):e},n}return r.a(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}(i.a);o.a.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new s("")},"nonvalue"),a.b.Instance.registerQuestion("html",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(21);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.colCount=0,n}return r.a(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect",!1)},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!0,configurable:!0}),t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!t)return;if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var n=[],r=0;r<t.length;r++)this.hasUnknownValue(t[r],!0)||n.push(t[r]);if(n.length==t.length)return;0==n.length?this.clearValue():this.value=n}else e.prototype.clearIncorrectValues.call(this)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel",!1)},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!0,configurable:!0}),t.prototype.getValueCore=function(){return e.prototype.getValueCore.call(this)||this.multiSelect&&[]||void 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,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!0,configurable:!0}),t}(a.a);i.a.addClass("imageitemvalue",["imageLink"],null,"itemvalue"),i.a.addClass("imagepicker",[{name:"hasOther",visible:!1},{name:"otherText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150},{name:"imageWidth:number",default:200}],function(){return new s("")},"checkboxbase"),i.a.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),i.a.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),i.a.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),i.a.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),o.b.Instance.registerQuestion("imagepicker",function(e){return new s(e)})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(12),a=n(43),s=n(1),u=n(2),l=n(11),c=n(3),p=n(14),d=n(29),h=n(9);n.d(t,"a",function(){return f}),n.d(t,"c",function(){return m}),n.d(t,"b",function(){return g});var f=function(){function e(e,t,n,r){this.fullName=t,this.item=e,this.data=n,this.rowValue=r}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}(),m=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,n){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t)if(n)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=n;else if(this.values[e]&&this.values[e][t]){var r=this.values[e][t];r.text="",r.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(h.a.matrixDefaultRowName,e,t)},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(e,t){return this.getCellLocText(h.a.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var n=this.getCellLocText(e,t);return n&&!n.isEmpty?n:(n=this.getCellLocText(h.a.matrixDefaultRowName,t))&&!n.isEmpty?n:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText?t.locText:null)},e.prototype.getCellText=function(e,t){var n=this.getCellLocText(e,t);return n?n.text:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(h.a.matrixDefaultRowName,e);return t?t.text:null},e.prototype.getCellDisplayText=function(e,t){var n=this.getCellDisplayLocText(e,t);return n?n.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 n={},r=this.values[t];for(var i in r)n[i]=r[i].getJson();e[t]=n}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var n=e[t];this.values[t]={};for(var r in n)if("pos"!=r){var i=this.createString();i.setJson(n[r]),this.values[t][r]=i}}},e.prototype.createString=function(){return new p.a(this.cellsOwner,!0)},e}(),g=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isRowChanging=!1,n.emptyLocalizableString=new p.a(n),n.cellsValue=new m(n);var r=n;return n.registerFunctionOnPropertyValueChanged("columns",function(){r.onColumnsChanged()}),n.registerFunctionOnPropertyValueChanged("rows",function(){r.filterItems()||r.onRowsChanged()}),n}return r.a(t,e),t.prototype.getType=function(){return"matrix"},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.rows.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var n=this.filteredRows?this.filteredRows:this.rows,r=0;r<n.length;r++){var i=n[r];this.isValueEmpty(i.value)||e.push(this.createMatrixRow(i,this.id+"_"+i.value.toString().replace(/\s/g,"_"),t[i.value]))}return 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new o.a(null),this.name.replace(/\s/g,"_"),t)),this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return"random"===this.rowsOrder.toLowerCase()?i.a.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),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,n){this.cells.setCellText(e,t,n)},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 n=this.cells.getCellDisplayLocText(e,t);return n||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new l.j(null,this))},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,n){return new f(e,t,this,n)},t.prototype.setQuestionValue=function(t){if(e.prototype.setQuestionValue.call(this,t),!this.isRowChanging&&this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var n=this.value;if(n||(n={}),0==this.rows.length)this.generatedVisibleRows[0].value=n;else for(var r=0;r<this.generatedVisibleRows.length;r++){var i=this.generatedVisibleRows[r],o=n[i.name]?n[i.name]:null;this.generatedVisibleRows[r].value=o}this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e){var t=this.createValueCopy();if(!t)return t;var n={};for(var r in t){var i=e?o.a.getTextOrHtmlByValue(this.rows,r):r;i||(i=r);var a=o.a.getTextOrHtmlByValue(this.columns,t[r]);a||(a=t[r]),n[i]=a}return n},t.prototype.getPlainData=function(t){var n=this;void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){var i=this.createValueCopy();r.isNode=!0,r.data=Object.keys(i||{}).map(function(e){var r=n.rows.filter(function(t){return t.value===e})[0],a={name:e,title:r?r.text:"row",value:i[e],displayValue:o.a.getTextOrHtmlByValue(n.visibleColumns,i[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},s=o.a.getItemByValue(n.visibleColumns,i[e]);return s&&(t.calculations||[]).forEach(function(e){a[e.propertyName]=s[e.propertyName]}),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.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.rows.length;n++){var r=this.rows[n];r.value&&e.push({name:this.name+"."+r.value,text:this.processedTitle+"."+r.text,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=new d.a(n);r.choices=this.columns;var i=(new s.b).toJsonObject(r);return i.type=r.getType(),i},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},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}(a.a);s.a.addClass("matrix",[{name:"columns:itemvalue[]",baseValue:function(){return u.a.getString("matrix_column")}},{name:"rows:itemvalue[]",baseValue:function(){return u.a.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean"],function(){return new g("")},"matrixbase"),c.b.Instance.registerQuestion("matrix",function(e){var t=new g(e);return t.rows=c.b.DefaultRows,t.columns=c.b.DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),i=n(22),o=n(1),a=n(12),s=n(3);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var u=function(e){function t(t,n,r,i){var o=e.call(this,r,i)||this;return o.name=t,o.item=n,o.buildCells(i),o}return r.a(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}(i.b),l=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.createLocalizableString("totalText",n,!0);var r=n;return n.registerFunctionOnPropertyValueChanged("rows",function(){r.generatedVisibleRows=null,r.filterItems()}),n}return r.a(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e){var t=this.createValueCopy();if(!t)return t;for(var n=this.visibleRows,r={},i=0;i<n.length;i++){var o=this.rows[i].value,s=t[o];if(s){if(e){var u=a.a.getTextOrHtmlByValue(this.rows,o);u&&(o=u)}r[o]=this.getRowDisplayValue(n[i],s)}}return t},t.prototype.addConditionNames=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].value)for(var n=this.name+"."+this.rows[t].value+".",r=0;r<this.columns.length;r++)e.push(n+this.columns[r].name)},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,r=0;r<this.rows.length;r++){var i=this.rows[r];if(i.value)for(var o=this.name+"."+i.value+".",a=this.processedTitle+"."+i.text+".",s=0;s<this.columns.length;s++){var u=this.columns[s];e.push({name:o+u.name,text:a+u.fullTitle,question:this})}}if(n)for(var r=0;r<this.columns.length;r++){var u=this.columns[r];u!=t&&e.push({name:"row."+u.name,text:"row."+u.fullTitle,question:this})}},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var n=null,r=!1,i=this.filteredRows?this.filteredRows:this.rows;for(var o in t)a.a.getItemByValue(i,o)?(null==n&&(n={}),n[o]=t[o]):r=!0;r&&(this.value=n),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this),this.clearInvisibleValuesInRows()},t.prototype.getRowName=function(e){return e.rowName},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var n=this.value;n||(n={});for(var r=0;r<t.length;r++)t[r].value&&e.push(this.createMatrixRow(t[r],n[t[r].value]));return e},t.prototype.createMatrixRow=function(e,t){return new u(e.value,e,this,t)},t}(i.a);o.a.addClass("matrixdropdown",[{name:"rows:itemvalue[]"},"rowsVisibleIf:condition",{name:"totalText",serializationProperty:"locTotalText"}],function(){return new l("")},"matrixdropdownbase"),s.b.Instance.registerQuestion("matrixdropdown",function(e){var t=new l(e);return t.choices=[1,2,3,4,5],t.rows=s.b.DefaultColums,i.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(22),o=n(1),a=n(3),s=n(2),u=n(11),l=n(4),c=n(9);n.d(t,"b",function(){return p}),n.d(t,"a",function(){return d});var p=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.index=t,i.buildCells(r),i}return r.a(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!0,configurable:!0}),t}(i.b),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n.rowCounter=0,n.rowCountValue=2,n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("keyDuplicationError",n),n.createLocalizableString("addRowText",n),n.createLocalizableString("removeRowText",n),n}return r.a(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,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.rowCount){for(var t=[],n=0;n<this.rowCount;n++)t.push(this.defaultRowValue);this.value=t}},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>c.a.matrixMaximumRowCount)){var t=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 r=t;r<e;r++){var i=this.createMatrixRow(null);this.generatedVisibleRows.push(i),this.onMatrixRowCreated(i)}}this.onRowsChanged()}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount",0)},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount",c.a.matrixMaximumRowCount)},set:function(e){e<=0||(e>c.a.matrixMaximumRowCount&&(e=c.a.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=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(){var e={question:this,canAddRow:this.canAddRow};this.survey&&this.survey.matrixBeforeRowAdded(e),e.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding())},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0);if(!this.isValueEmpty(t)){var n=this.createNewValue();n.length==this.rowCount&&(n[n.length-1]=t,this.value=n)}this.data&&this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,n=0;n<this.columns.length;n++){var r=this.columns[n].templateQuestion;r&&!this.isValueEmpty(r.getDefaultValue())&&(t=t||{},t[this.columns[n].name]=r.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var i in this.defaultRowValue)t=t||{},t[i]=this.defaultRowValue[i];if(e&&this.defaultValueFromLastRow){var o=this.value;if(o&&Array.isArray(o)&&o.length>=this.rowCount-1){var a=o[this.rowCount-2];for(var i in a)t=t||{},t[i]=a[i]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}this.isRequireConfirmOnRowDelete(e)&&!confirm(this.confirmDeleteText)||this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete)return!1;if(e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!(l.a.isValueEmpty(t)||!Array.isArray(t))&&(!(e>=t.length)&&!l.a.isValueEmpty(t[e]))},t.prototype.removeRow=function(e){this.canRemoveRow&&(e<0||e>=this.rowCount||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(e)))},t.prototype.removeRowCore=function(e){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.rowCountValue--,this.value){var n=[];n=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue(),n.splice(e,1),n=this.deleteRowValue(n,null),this.isRowChanging=!0,this.value=n,this.isRowChanging=!1}this.onRowsChanged()},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.isColumnLayoutHorizontal?"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")},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.columnLayout:"bottom"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnBottom",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"horizontal"===this.columnLayout:"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.createValueCopy();if(!t||!Array.isArray(t))return t;for(var n=this.visibleRows,r=0;r<n.length&&r<t.length;r++){var i=t[r];i&&(t[r]=this.getRowDisplayValue(n[r],i))}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.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.columns.indexOf(t)>-1,r=0;r<this.columns.length;r++){var i=this.columns[r];e.push({name:this.name+"[0]."+i.name,text:this.processedTitle+"[0]."+i.fullTitle,question:this}),n&&i!=t&&e.push({name:"row."+i.name,text:"row."+i.fullTitle,question:this})}},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new u.i(this.minRowCount,this))},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var n=e.prototype.hasErrors.call(this,t);return this.isValueDuplicated()||n},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=[],n=!1,r=0;r<this.generatedVisibleRows.length;r++)n=this.isValueDuplicatedInRow(this.generatedVisibleRows[r],e,t)||n;return n},t.prototype.isValueDuplicatedInRow=function(e,t,n){var r=e.getQuestionByColumn(t);if(!r||r.isEmpty())return!1;for(var i=r.value,o=0;o<n.length;o++)if(i==n[o])return r.addError(new u.h(this.keyDuplicationError,this)),!0;return n.push(i),!1},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(),n=0;n<this.rowCount;n++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,n)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new p(this.rowCounter++,this,e)},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,this.onRowsChanged()))},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var n=e.length;n<this.rowCount;n++)e.push(l.a.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var n=!0,r=0;r<e.length;r++)if(this.isObject(e[r])&&Object.keys(e[r]).length>0){n=!1;break}return n?null:e},t.prototype.getRowValueByIndex=function(e,t){return t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,n){return void 0===n&&(n=!1),this.generatedVisibleRows?this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e)):{}},t}(i.a);o.a.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"rowCount:number",default:2},{name:"minRowCount:number",default:0},{name:"maxRowCount:number",default:c.a.matrixMaximumRowCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{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 d("")},"matrixdropdownbase"),a.b.Instance.registerQuestion("matrixdynamic",function(e){var t=new d(e);return t.choices=[1,2,3,4,5],i.a.addDefaultColumns(t),t})},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(8),a=n(31),s=n(1),u=n(3),l=n(4);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p});var c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.editorValue=r.createEditor(t),r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r}return r.a(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 a.a(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e)},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.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return l.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,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},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 l.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}(i.c),p=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isMultipleItemValueChanging=!1;var r=n;return n.items=n.createNewArray("items",function(e){e.setData(r)}),n.registerFunctionOnPropertyValueChanged("items",function(){r.fireCallback(r.colCountChangedCallback)}),n.registerFunctionOnPropertyValueChanged("colCount",function(){r.fireCallback(r.colCountChangedCallback)}),n}return r.a(t,e),t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t);for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&r.editor.updateValueFromSurvey(r.value)}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&r.editor.onSurveyValueChanged(r.value)}},t.prototype.editorsOnSurveyLoad=function(){for(var e=0;e<this.items.length;e++){var t=this.items[e];t.editor&&t.editor.onSurveyLoad()}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!0,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var n=this.createTextItem(e,t);return this.items.push(n),n},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.addConditionObjectsByContext=function(e,t){for(var n=0;n<this.items.length;n++){var r=this.items[n];e.push({name:this.name+"."+r.name,text:this.processedTitle+"."+r.fullTitle,question:this})}},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this);var r=this.getItemByName(n);if(!r)return null;var i=(new s.b).toJsonObject(r);return i.type="text",i},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")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,n=[],r=0,i=0;i<t.length;i++)0==r&&n.push([]),n[n.length-1].push(t[i]),++r>=e&&(r=0);return n},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new c(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.hasErrors=function(t){void 0===t&&(t=!0);for(var n=e.prototype.hasErrors.call(this,t),r=0;r<this.items.length;r++)n=this.items[r].editor.hasErrors(t)||n;return n},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(t=t.concat(r))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0;var n=this.value;n||(n={}),n[e]=t,this.setNewValue(n),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},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.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},t.prototype.indexOf=function(e){return-1},t}(o.a);s.a.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:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new c("")}),s.a.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",default:25},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],function(){return new p("")},"question"),u.b.Instance.registerQuestion("multipletext",function(e){var t=new p(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(2),a=n(23),s=n(15),u=n(8),l=n(20),c=n(1),p=n(3),d=n(11),h=n(9);n.d(t,"b",function(){return f}),n.d(t,"a",function(){return g});var f=function(){function e(e,t){this.data=e,this.panelValue=t;var n=this;this.textPreProcessor=new a.a,this.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)},this.setSurveyImpl()}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.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){this.data.setPanelItemData(this,e,t)},e.prototype.getComment=function(e){var t=this.getValue(e+h.a.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+h.a.commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var e={panel:this.getAllValues()},t=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in t)e[n]=t[n];return e},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{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 n=(new s.a).getFirstName(t.name);if(t.isExists=n==e.ItemVariableName,t.canProcess=t.isExists,t.canProcess){t.name=t.name.replace(e.ItemVariableName+".","");var n=(new s.a).getFirstName(t.name),r=this.panel.getQuestionByValueName(n);!r&&this.data&&(r=this.data.getSharedQuestionFromArray(n,this.data.getItemIndex(this)));var i={};if(r)i[n]=t.returnDisplayValue?r.displayValue:r.value;else{var o=this.getAllValues();o&&(i[n]=o[n])}t.value=(new s.a).getValue(t.name,i)}}},e.prototype.processText=function(e,t){e=this.textPreProcessor.process(e,t);var n=this.getSurvey();return n?n.processText(e,t):e},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var n=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.getSurvey()&&(r=this.getSurvey().processTextEx(e,t,!1)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&n,r},e.ItemVariableName="panel",e.IndexVariableName="panelIndex",e}(),m=function(){function e(e){this.data=e}return e.prototype.geSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),g=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.loadingPanelCount=0,n.currentIndexValue=-1,n.isAddingNewPanels=!1,n.createNewArray("panels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n;var r=n;return n.template.addElementCallback=function(e){r.addOnPropertyChangedCallback(e),r.rebuildPanels()},n.template.removeElementCallback=function(e){r.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n),n.createLocalizableString("keyDuplicationError",n),n.createLocalizableString("panelAddText",n),n.createLocalizableString("panelRemoveText",n),n.createLocalizableString("panelPrevText",n),n.createLocalizableString("panelNextText",n),n.registerFunctionOnPropertyValueChanged("panelsState",function(){r.setPanelsState()}),n}return r.a(t,e),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.onPropertyChanged.add(function(e,n){t.onTemplateElementPropertyChanged(e,n)}),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.isDesignMode&&0!=this.panels.length){if(c.a.findProperty(e.getType(),t.name))for(var n=this.panels,r=0;r<n.length;r++){var i=n[r].getQuestionByName(e.name);i&&i[t.name]!==t.newValue&&(i[t.name]=t.newValue)}}},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}),t.prototype.getPanel=function(){return this.template},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(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},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",o.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",o.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",o.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",o.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",o.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",o.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},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.isDesignMode?this.loadingPanelCount:this.panels.length},set:function(e){if(!(e<0)){if(this.isLoadingFromJson||this.isDesignMode)return void(this.loadingPanelCount=e);if(e!=this.panels.length&&!this.isDesignMode){this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!0,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.isDesignMode?this.surveyImpl:new m(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.isDesignMode&&"list"==this.renderMode)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].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.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount",0)},set:function(e){e<0&&(e=0),e!=this.minPanelCount&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount",h.a.panelMaximumPanelCount)},set:function(e){e<=0||(e>h.a.panelMaximumPanelCount&&(e=h.a.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},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")},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 n="onSurvey"==this.showQuestionNumbers?t:0,r=0;r<this.panels.length;r++){var i=this.setPanelVisibleIndex(this.panels[r],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=i)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},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(){if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var e=[];if(this.isDesignMode)new f(this,this.template),e.push(this.template);else for(var t=0;t<this.panelCount;t++)e.push(this.createNewPanel());(n=this.panels).splice.apply(n,[0,this.panels.length].concat(e)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback);var n}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},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(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!confirm(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){"list"!==this.renderMode&&this.currentPanel.hasErrors()||this.currentIndex++},t.prototype.goToPrevPanel=function(){this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getPanelIndex(e);if(!(t<0||t>=this.panelCount)){this.panels.splice(t,1);var e=this.value;!e||!Array.isArray(e)||t>=e.length||(e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t))}},t.prototype.getPanelIndex=function(e){if(!isNaN(parseFloat(e))&&isFinite(e))return e;for(var t=this.items,n=0;n<this.panels.length;n++)if(this.panels[n]===e||t[n]===e)return n;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var n=this.value,r=n&&e<n.length?n[e]:null;if(r){var i=!1;for(var o in r)t.getQuestionByName(o)||this.getSharedQuestionFromArray(o,e)||(delete r[o],i=!0);i&&(n[e]=r,this.value=n)}},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionNames=function(e){for(var t=this.name+"[0].",n=[],r=this.template.questions,i=0;i<r.length;i++)r[i].addConditionNames(n);for(var i=0;i<n.length;i++)e.push(t+n[i])},t.prototype.addConditionObjectsByContext=function(e,t){for(var n=!!t&&this.template.questions.indexOf(t)>-1,r=this.name+"[0].",i=this.processedTitle+"[0].",o=new Array,a=this.template.questions,s=0;s<a.length;s++)a[s].addConditionObjectsByContext(o,t);for(var s=0;s<o.length;s++)e.push({name:r+o[s].name,text:i+o[s].text,question:o[s].question});if(n)for(var s=0;s<o.length;s++)o[s].question!=t&&e.push({name:"panel."+o[s].name,text:"panel."+o[s].text,question:o[s].question})},t.prototype.getConditionJson=function(t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var r=n,i=n.indexOf(".");i>-1&&(r=n.substr(0,i),n=n.substr(i+1));var o=this.template.getQuestionByName(r);return o?o.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e)));for(var r=0;r<this.panels.length;r++){var i=this.getPanelItemData(this.panels[r].data);n[f.ItemVariableName.toLowerCase()]=i,n[f.IndexVariableName.toLowerCase()]=r,this.panels[r].runCondition(n,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(f.ItemVariableName)},t.prototype.hasErrors=function(t){if(void 0===t&&(t=!0),this.isValueChangingInternally)return!1;if(this.changingValueQuestion)return this.changingValueQuestion.hasErrors(t);var n=this.hasErrorInPanels(t);return e.prototype.hasErrors.call(this,t)||n},t.prototype.clearValueIfInvisible=function(){for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible();e.prototype.clearValueIfInvisible.call(this)},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.panels.length;n++)for(var r=this.panels[n].questions,i=0;i<r.length;i++){var o=r[i].getAllErrors();o&&o.length>0&&(t=t.concat(o))}return t},t.prototype.getDisplayValueCore=function(e){var t=this.createValueCopy();if(!t||!Array.isArray(t))return t;for(var n=0;n<this.panels.length&&n<t.length;n++){var r=t[n];r&&(t[n]=this.getPanelDisplayValue(n,r,e))}return t},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;var r=this.panels[e];for(var i in t){var o=r.getQuestionByValueName(i);o||(o=this.getSharedQuestionFromArray(i,e)),o&&(t[i]=o.getDisplayValue(n))}return t},t.prototype.hasErrorInPanels=function(e){for(var t=!1,n=this.panels,r=[],i=0;i<n.length;i++){var o=n[i].hasErrors(e);o=this.isValueDuplicated(n[i],r)||o,this.isRenderModeList||!o||t||(this.currentIndex=i),t=o||t}return t},t.prototype.isValueDuplicated=function(e,t){if(!this.keyName)return!1;var n=e.getQuestionByValueName(this.keyName);if(!n||n.isEmpty())return!1;for(var r=n.value,i=0;i<t.length;i++)if(r==t[i])return n.addError(new d.h(this.keyDuplicationError,this)),!0;return t.push(r),!1},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();return(new c.b).toObject(t,e),e.renderWidth="100%",e.updateCustomWidgets(),new f(this,e),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.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.loadingPanelCount>0&&(t=this.loadingPanelCount),this.panelCount=t}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t),this.setPanelCountBasedOnValue();for(var n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n])},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount()},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var i=t[r];i.updateValueFromSurvey(n[i.getValueName()]),i.updateCommentFromSurvey(n[i.getValueName()+h.a.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var i=t[r];i.onSurveyValueChanged(n[i.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){return this.items.indexOf(e)},t.prototype.getPanelItemData=function(e){var t=this.items,n=t.indexOf(e),r=this.value;return n<0&&Array.isArray(r)&&r.length>t.length&&(n=t.length),n<0?{}:!r||!Array.isArray(r)||r.length<=n?{}:r[n]},t.prototype.setPanelItemData=function(e,t,n){var r=this.items,o=r.indexOf(e);o<0&&(o=r.length);var a=i.a.getUnbindValue(this.value);if(a&&Array.isArray(a)||(a=[]),a.length<=o)for(var s=a.length;s<=o;s++)a.push({});if(a[o]||(a[o]={}),this.isValueEmpty(n)?delete a[o][t]:a[o][t]=n,o>=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=a,this.changingValueQuestion=null,this.survey){var u={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:a[o],value:n};this.survey.dynamicPanelItemValueChanged(this,u)}},t.prototype.getSurvey=function(){return this.survey},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map(function(e,n){var r={name:e.name||n,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map(function(e){return e.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){r[t.propertyName]=e[t.propertyName]}),r})),n},t}(u.a);c.a.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!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:h.a.panelMaximumPanelCount},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{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 g("")},"question"),p.b.Instance.registerQuestion("paneldynamic",function(e){return new g(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(21),s=n(2);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return r.a(t,e),t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton",!1)},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return s.a.getString("clearCaption")},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t}(a.a);i.a.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1}],function(){return new u("")},"checkboxbase"),o.b.Instance.registerQuestion("radiogroup",function(e){var t=new u(e);return t.choices=o.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(12),o=n(8),a=n(1),s=n(3),u=n(9);n.d(t,"a",function(){return l});var l=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.rates=n.createItemValues("rates");var r=n;n.registerFunctionOnPropertyValueChanged("rates",function(){r.fireCallback(r.rateValuesChangedCallback)}),n.onPropertyChanged.add(function(e,t){"rateMin"!=t.name&&"rateMax"!=t.name&&"rateStep"!=t.name||r.fireCallback(r.rateValuesChangedCallback)});var i=n.createLocalizableString("minRateDescription",n,!0),o=n.createLocalizableString("maxRateDescription",n,!0);return i.onGetTextCallback=function(e){return e?e+" ":e},o.onGetTextCallback=function(e){return e?" "+e:e},n}return r.a(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")},set:function(e){!this.isLoadingFromJson&&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")},set:function(e){!this.isLoadingFromJson&&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")},set:function(e){e<=0&&(e=1),!this.isLoadingFromJson&&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=i.a.getTextOrHtmlByValue(this.visibleRateValues,this.value);return t||this.createValueCopy()},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;for(var e=[],t=this.rateMin;t<=this.rateMax&&e.length<u.a.ratingMaximumRateValueCount;)e.push(new i.a(t)),t+=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}(o.a);a.a.addClass("rating",[{name:"hasComment:boolean",layout:"row"},{name:"commentText",serializationProperty:"locCommentText",layout:"row"},{name:"rateValues:itemvalue[]"},{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 l("")},"question"),s.b.Instance.registerQuestion("rating",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(8),o=n(1);n.d(t,"a",function(){return a});var a=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return r.a(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionNames=function(e){},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(i.a);o.a.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"isRequired",visible:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"useDisplayValuesInTitle",visible:!1}],function(){return new a("")},"question")},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i=function(){function e(){this.sheet=null,e.Enabled&&(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&&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,n){void 0===t&&(t="default"),void 0===n&&(n=".sv_main");var i;if(-1!==["bootstrap","bootstrapmaterial"].indexOf(t)?(i=e[t+"ThemeCss"],r.a.currentType=t):(i=e.ThemeCss,r.a.currentType="standard"),e.Enabled){var o=e.findSheet(t+n);if(!o){o=e.createSheet(t+n);var a=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(i).forEach(function(e){var t=i[e];Object.keys(a).forEach(function(e){return t=t.replace(new RegExp("\\"+e,"g"),a[e])}),o.insertRule(n+e+" { "+t+" }",0)})}}},e.prototype.initializeStyles=function(t){e.Enabled&&(Object.keys(e.Styles).forEach(function(n){return t.insertRule(n+" { "+e.Styles[n]+" }",0)}),Object.keys(e.Media).forEach(function(n){t.insertRule(e.Media[n].media+" { "+n+" { "+e.Media[n].style+" } }",0)}))},e.SurveyJSStylesSheetId="surveyjs",e.Styles={".sv_main span":"word-break: break-word;",".sv_main legend":"border: none; margin: 0;",".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_main.sv_bootstrapmaterial_css .sv_q_radiogroup_control_label":"display: inline; position: static;",".sv_main.sv_bootstrapmaterial_css .checkbox":"margin-top:10px;margin-bottom:10px;",".sv_row":"clear: both;",".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 .sv_q_imgsel > label img":"pointer-events: none;",".sv_qstn .sv_q_imgsel.sv_q_imagepicker_inline":"display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0; display: block; width: 100%;",".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, .sv_q_imagepicker_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_imgsel .sv_q_imagepicker_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; vertical-align: top; border: 1px solid lightgray; padding: 5px; margin-top: 10px;",".sv_q_file_preview > a":"display: block; overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis;",".sv_q_file_remove_button":"line-height: normal;",".sv_q_file_remove":"display: block; cursor: pointer;",".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-word;",".sv_qstn .sv-q-col-2":"width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-3":"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-4":"width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-5":"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-1":"width: 100%; max-width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-2":"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-3":"max-width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-4":"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-5":"max-width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv_q_file_input":"color: transparent;",".sv_qstn .sv_q_imgsel label > div":"overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px; border: 1px solid lightgray; border-radius: 4px;",".sv_qstn .sv_q_imgsel label > div > img, .sv_qstn .sv_q_imgsel label > div > embed":"display: block;",".sv_qstn table tr td .sv_q_m_cell_label":"position: absolute; left: 0; right: 0; top: 0; bottom: 0;","f-panel":"padding: 0.5em 1em; display: inline-block; line-height: 2em;",".sv_progress_bar > span":"white-space: nowrap;",".sv_qstn .sv_q_select_column":"display: inline-block; vertical-align: top; min-width: 10%;",".sv_qstn .sv_q_select_column > *:not(.sv_technical)":"display: block;",".sv_main .sv_container .sv_body .sv_p_root .sv_qstn .sv_q_select_column textarea":"margin-left: 0; padding-left: 0; line-height: 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)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn":{style:"display: block; width: 100% !important;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .title-left":{style:"float: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_radiogroup_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_checkbox_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_imagepicker_inline":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table thead":{style:"display: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tbody, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tr, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table td":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table:not(.sv_q_matrix) td:before":{style:"content: attr(headers);",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.sv_q_matrix td:after":{style:"content: attr(headers); padding-left: 1em",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .radio label, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .checkbox label":{style:"line-height: 12px; vertical-align: top;",media:"@media (max-width: 600px)"},".sv_qstn label.sv_q_m_label":{style:"display: inline;",media:"@media (max-width: 600px)"},".sv_main .sv_custom_header":{style:"display: none;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3":{style:"font-size: 1.5em;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3 span":{style:"font-size: 0.75em;",media:"@media (max-width: 700px)"}},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 input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio'])":"border: 1px solid $border-color; background-color: $inputs-background-color;color: $text-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus":"border: 1px solid $main-color;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control ":"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 .sv_container .sv_body .sv_p_root .sv_q input[type="radio"]:focus, .sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"]:focus':"outline: 1px dotted $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;",".sv_main .sv_q_file_remove:hover":"color: $main-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_default_css .sv_p_description":"padding-left: 1.29em;"},e.bootstrapThemeCss={".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_main .sv_p_description":"padding-left: 1.66em;",".sv_main .sv_qstn_error_bottom":"margin-top: 20px; margin-bottom: 0;",".sv_main .progress":"width: 60%;",".sv_main .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .table>tbody>tr>td":"min-width: 90px;",".sv_main f-panel .sv_qstn":"padding: 0; vertical-align: middle;"},e.bootstrapmaterialThemeCss={".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control":"background-image: linear-gradient($main-color, $main-color), linear-gradient(#D2D2D2, #D2D2D2);",".sv_main.sv_bootstrapmaterial_css .form-group.is-focused label":"color:$main-color;",".sv_main.sv_bootstrapmaterial_css .sv_qstn label.sv_q_m_label":"height: 100%;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .btn-default.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-default:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .open>.dropdown-toggle.btn-default":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary, .sv_main.sv_bootstrapmaterial_css button.btn-primary":"color: $body-background-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary:hover, .sv_main.sv_bootstrapmaterial_css button.btn-primary:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_q_file_remove:hover":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .form-group input[type=file]":"position: relative; opacity: 1;",".sv_main.sv_bootstrapmaterial_css .progress":"width: 60%;",".sv_main.sv_bootstrapmaterial_css .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;"},e.Enabled=!0,e}()},function(e,t,n){"use strict";var r=n(0),i=n(5),o=n(19);n.d(t,"a",function(){return a});var a=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this)||this;r.closeOnCompleteTimeout=0,r.surveyValue=n||r.createSurvey(t),r.surveyValue.showTitle=!1,"undefined"!=typeof document&&(r.windowElement=document.createElement("div"));var i=r;return r.survey.onComplete.add(function(e,t){i.onSurveyComplete()}),r}return r.a(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.getPropertyValue("isShowing",!1)},set:function(e){this.isShowing!=e&&(this.setPropertyValue("isShowing",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.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e),!this.isLoadingFromJson&&this.expandedChangedCallback&&this.expandedChangedCallback()},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 o.a(e)},t.prototype.expandcollapse=function(e){this.isExpanded=e},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null,n=function(){e.closeWindowOnComplete(),window.clearInterval(t)};t=window.setInterval(n,1e3*this.closeOnCompleteTimeout)}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(i.c)},function(e,t,n){"use strict";var r=n(5);n.d(t,"a",function(){return o});var i={setTimeout:function(e){return window.setTimeout(e,1e3)},clearTimeout:function(e){window.clearTimeout(e)}},o=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new r.a}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){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=i.setTimeout(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&&(i.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;this.timerId<0||(this.onTimer.fire(this,{}),this.timerId=i.setTimeout(function(){e.doTimer()}))},e.instanceValue=null,e}()},function(e,t,n){"use strict";var r=n(100);n.d(t,"K",function(){return r.a}),n.d(t,"L",function(){return r.b}),n.d(t,"M",function(){return r.c}),n.d(t,"N",function(){return r.d}),n.d(t,"O",function(){return r.e}),n.d(t,"P",function(){return r.f}),n.d(t,"Q",function(){return r.g}),n.d(t,"R",function(){return r.h}),n.d(t,"S",function(){return r.i}),n.d(t,"T",function(){return r.j}),n.d(t,"U",function(){return r.k}),n.d(t,"V",function(){return r.l}),n.d(t,"W",function(){return r.m}),n.d(t,"X",function(){return r.n}),n.d(t,"Y",function(){return r.o}),n.d(t,"Z",function(){return r.p}),n.d(t,"_0",function(){return r.q}),n.d(t,"_1",function(){return r.r}),n.d(t,"_2",function(){return r.s}),n.d(t,"_3",function(){return r.t}),n.d(t,"_4",function(){return r.u}),n.d(t,"_5",function(){return r.v}),n.d(t,"_6",function(){return r.w}),n.d(t,"_7",function(){return r.x}),n.d(t,"_8",function(){return r.y}),n.d(t,"_9",function(){return r.z}),n.d(t,"_10",function(){return r.A}),n.d(t,"_11",function(){return r.B}),n.d(t,"_12",function(){return r.C}),n.d(t,"_13",function(){return r.D}),n.d(t,"_14",function(){return r.E}),n.d(t,"_15",function(){return r.F}),n.d(t,"_16",function(){return r.G}),n.d(t,"_17",function(){return r.H}),n.d(t,"_18",function(){return r.I}),n.d(t,"_19",function(){return r.J}),n.d(t,"_20",function(){return r.K}),n.d(t,"_21",function(){return r.L}),n.d(t,"_22",function(){return r.M}),n.d(t,"_23",function(){return r.N}),n.d(t,"_24",function(){return r.O}),n.d(t,"_25",function(){return r.P}),n.d(t,"_26",function(){return r.Q}),n.d(t,"_27",function(){return r.R}),n.d(t,"_28",function(){return r.S}),n.d(t,"_29",function(){return r.T}),n.d(t,"_30",function(){return r.U}),n.d(t,"_31",function(){return r.V}),n.d(t,"_32",function(){return r.W}),n.d(t,"_33",function(){return r.X}),n.d(t,"_34",function(){return r.Y}),n.d(t,"_35",function(){return r.Z}),n.d(t,"_36",function(){return r._0}),n.d(t,"_37",function(){return r._1}),n.d(t,"_38",function(){return r._2}),n.d(t,"_39",function(){return r._3}),n.d(t,"_40",function(){return r._4}),n.d(t,"_41",function(){return r._5}),n.d(t,"_42",function(){return r._6}),n.d(t,"_43",function(){return r._7}),n.d(t,"_44",function(){return r._8}),n.d(t,"_45",function(){return r._9}),n.d(t,"_46",function(){return r._10}),n.d(t,"_47",function(){return r._11}),n.d(t,"_48",function(){return r._12}),n.d(t,"_49",function(){return r._13}),n.d(t,"_50",function(){return r._14}),n.d(t,"_51",function(){return r._15}),n.d(t,"_52",function(){return r._16}),n.d(t,"_53",function(){return r._17}),n.d(t,"_54",function(){return r._18}),n.d(t,"_55",function(){return r._19}),n.d(t,"_56",function(){return r._20}),n.d(t,"_57",function(){return r._21}),n.d(t,"_58",function(){return r._22}),n.d(t,"_59",function(){return r._23}),n.d(t,"_60",function(){return r._24}),n.d(t,"_61",function(){return r._25}),n.d(t,"_62",function(){return r._26}),n.d(t,"_63",function(){return r._27}),n.d(t,"_64",function(){return r._28}),n.d(t,"_65",function(){return r._29}),n.d(t,"_66",function(){return r._30}),n.d(t,"_67",function(){return r._31}),n.d(t,"_68",function(){return r._32}),n.d(t,"_69",function(){return r._33}),n.d(t,"_70",function(){return r._34}),n.d(t,"_71",function(){return r._35}),n.d(t,"_72",function(){return r._36}),n.d(t,"_73",function(){return r._37}),n.d(t,"_74",function(){return r._38}),n.d(t,"_75",function(){return r._39}),n.d(t,"_76",function(){return r._40}),n.d(t,"_77",function(){return r._41}),n.d(t,"_78",function(){return r._42}),n.d(t,"_79",function(){return r._43}),n.d(t,"_80",function(){return r._44}),n.d(t,"_81",function(){return r._45});var i=(n(99),n(0));n.d(t,"_82",function(){return i.b}),n.d(t,"_83",function(){return i.a}),n.d(t,"_84",function(){return i.c});var o=n(13);n.d(t,"a",function(){return o.b});var a=n(97);n.d(t,"b",function(){return a.a});var s=n(98);n.d(t,"c",function(){return s.a});var u=n(34),l=(n.n(u),n(18));n.d(t,"d",function(){return l.b}),n.d(t,"e",function(){return l.b});var c=n(16);n.d(t,"f",function(){return c.a});var p=n(26);n.d(t,"g",function(){return p.b}),n.d(t,"h",function(){return p.a}),n.d(t,"i",function(){return p.c});var d=n(103);n.d(t,"j",function(){return d.a});var h=n(7);n.d(t,"k",function(){return h.a});var f=n(17);n.d(t,"l",function(){return f.a}),n.d(t,"m",function(){return f.b});var m=n(105);n.d(t,"n",function(){return m.a});var g=n(106);n.d(t,"o",function(){return g.a});var y=n(107);n.d(t,"p",function(){return y.a});var v=n(110);n.d(t,"q",function(){return v.a});var b=n(111);n.d(t,"r",function(){return b.a});var x=n(113);n.d(t,"s",function(){return x.a}),n.d(t,"t",function(){return x.b});var C=n(39);n.d(t,"u",function(){return C.a});var w=n(114);n.d(t,"v",function(){return w.a}),n.d(t,"w",function(){return w.b});var P=n(116);n.d(t,"x",function(){return P.a});var V=n(115);n.d(t,"y",function(){return V.a}),n.d(t,"z",function(){return V.b}),n.d(t,"A",function(){return V.c});var T=n(117);n.d(t,"B",function(){return T.a});var S=n(118);n.d(t,"C",function(){return S.a});var k=n(40);n.d(t,"D",function(){return k.a});var E=n(104);n.d(t,"E",function(){return E.a});var R=n(108);n.d(t,"F",function(){return R.a});var O=n(109);n.d(t,"G",function(){return O.a});var q=n(112);n.d(t,"H",function(){return q.a});var _=n(33);n.d(t,"I",function(){return _.a});var I=n(41);n.d(t,"J",function(){return I.a});var D=n(6),N=(n.n(D),n(19));n.i(l.a)(D,N.a.platform)},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i=function(e,t){var n=function(){if("model"==i||"children"==i)return"continue";if("css"==i)return e.mergeValues(t.css,r.a.getCss()),"continue";if(0==i.indexOf("on")&&e[i]&&e[i].add){var n=t[i],o=function(e,t){n(e,t)};e[i].add(o)}else e[i]=t[i]};for(var i in t)n();t&&t.data&&e.onValueChanged.add(function(e,n){t.data[n.name]=n.value})}},function(t,n){t.exports=e},function(e,t){e.exports='<script type="text/html" id="survey-comment">\n \x3c!-- ko ifnot: question.isReadOnly --\x3e\n <textarea type="text" data-bind="value: $data.question.comment, visible: $data.visible, css: question.koCss().other, attr: {maxLength: question.getOthersMaxLength(), \'aria-label\': !!question.locTitle && question.locTitle.renderedHtml, placeholder: question.otherPlaceHolder}"></textarea>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.isReadOnly --\x3e\n <div data-bind="text: $data.question.comment, visible: $data.visible, css: question.koCss().other"></div>\n \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-flowpanel">\n <div data-bind="style:{ width: renderWidth }, attr: {id: id}, css: cssClasses.panel.container">\n <h4 data-bind="visible: (processedTitle.length > 0), css: cssClasses.panel.title">\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n \x3c!-- /ko --\x3e\n </h4>\n <div data-bind="css: cssClasses.panel.description">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <div data-bind="style: { paddingLeft: innerPaddingLeft}"></div>\n <f-panel params="question: question" data-bind="attr: {contenteditable : question.isDesignMode, placeHolder: question.placeHolder}"></f-panel>\n </div>\n<\/script>\n<script type="text/html" id="survey-flowpanel-question">\n \x3c!-- ko with: $parent.question.getQuestionByName($data) --\x3e\n \x3c!-- ko template: { name: koElementType(), data: $data, as: \'question\', afterRender: parent.koElementAfterRender } --\x3e\x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-content">\n\n <div data-bind="css: css.root, afterRender: koEventAfterRender">\n <form onsubmit="return false;">\n <div class="sv_custom_header"></div>\n <div class="sv_container">\n \x3c!-- ko if: (title.length > 0) && showTitle && koState() == \'running\' --\x3e\n <div data-bind="css: css.header">\n <h3>\x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e</h3>\n <h5>\x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e</h5>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "starting" --\x3e\n <div data-bind="css: css.body">\n \x3c!-- ko if: isNavigationButtonsShowing === \'top\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation-start\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind="attr: { id: startedPage.id }, template: { name: \'survey-page\', data: startedPage, afterRender: koAfterRenderPage }"></div>\n \x3c!-- ko if: isNavigationButtonsShowing === \'bottom\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation-start\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "running" --\x3e\n <div data-bind="css: css.body">\n \x3c!-- ko if: isTimerPanelShowingOnTop --\x3e\n \x3c!-- ko template: { name: \'survey-timerpanel\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind="visible: isShowProgressBarOnTop, template: \'survey-progress\'"></div>\n \x3c!-- ko if: isNavigationButtonsShowing === \'top\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koCurrentPage --\x3e\n <div data-bind="attr: { id: koCurrentPage().id }, template: { name: \'survey-page\', data: koCurrentPage, afterRender: koAfterRenderPage }"></div>\n \x3c!-- /ko --\x3e\n <div style="margin-top:1em" data-bind="visible: isShowProgressBarOnBottom, template: \'survey-progress\'"></div>\n \x3c!-- ko if: isTimerPanelShowingOnBottom --\x3e\n \x3c!-- ko template: { name: \'survey-timerpanel\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: isNavigationButtonsShowing === \'bottom\' || isNavigationButtonsShowing === \'both\' --\x3e\n \x3c!-- ko template: { name: \'survey-navigation\'} --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "completed" && showCompletedPage --\x3e\n <div data-bind="html: processedCompletedHtml, css: completedCss"></div>\n <div data-bind="visible: koCompletedState() != \'\', css: css.saveData.root">\n <div data-bind="css: koCompletedStateCss">\n <span data-bind="text:koCompletedStateText"></span>\n <input type="button" data-bind="visible: koCompletedState() == \'error\', value: getLocString(\'saveAgainButton\'), click: doComplete, css: css.saveData.saveAgainButton"\n />\n </div>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "completedbefore" --\x3e\n <div data-bind="html: processedCompletedBeforeHtml, css: css.body"></div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "loading" --\x3e\n <div data-bind="html: processedLoadingHtml, css: css.body"></div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koState() == "empty" --\x3e\n <div data-bind="text:emptySurveyText, css: css.bodyEmpty"></div>\n \x3c!-- /ko --\x3e\n </div>\n </form>\n </div>\n<\/script>\n<script type="text/html" id="survey-navigation">\n <div data-bind="css: css.footer">\n <input type="button" data-bind="value: pagePrevText, click: prevPage, visible: !koIsFirstPage() && isShowPrevButton, css: cssNavigationPrev"\n />\n <input type="button" data-bind="value: pageNextText, click: nextPageUIClick, event: { mousedown: nextPageMouseDown }, visible: !koIsLastPage(), css: cssNavigationNext" />\n <input type="button" data-bind="value: completeText, click: completeLastPage, visible: koIsLastPage() && isEditMode, css: cssNavigationComplete"\n />\n </div>\n<\/script>\n<script type="text/html" id="survey-navigation-start">\n <div data-bind="css: css.footer">\n <input type="button" data-bind="value: startSurveyText, click: start, css: cssNavigationStart" />\n </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-matrixcell\">\n <td data-bind=\"css: question.koCss().itemValue + (question.errors.length > 0 ? ' ' + question.koCss().hasError : ''), attr: { headers: question.isVisible ? question.locTitle.renderedHtml : '' }\">\n <div data-bind=\"visible: question.isVisible\">\n \x3c!-- ko if: question.survey.questionErrorLocation == 'top' --\x3e\n <div data-bind=\"css: question.koCss().error.locationTop\">\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko template: { name: question.koTemplateName(), data: question, as: 'question' } --\x3e\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko if: question.survey.questionErrorLocation == 'bottom' --\x3e\n <div data-bind=\"css: question.koCss().error.locationBottom\">\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n </div>\n </td>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-page">\n <div data-bind="css: data.css.page.root">\n <h4 data-bind="visible: data.showPageTitles, css: data.css.pageTitle">\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n \x3c!-- /ko --\x3e\n </h4>\n <div data-bind="css: data.css.pageDescription">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-panel">\n <div data-bind="style:{ width: renderWidth }, attr: {id: id}, css: cssClasses.panel.container">\n <h4 data-bind="visible: (processedTitle.length > 0), css: $data.getTitleStyle(), click: doExpand">\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\n \x3c!-- /ko --\x3e\n <span class="sv_panel_icon" data-bind="visible: koIsCollapsed() || koIsExpanded(), css: {sv_expanded: !koIsCollapsed()}"></span>\n </h4>\n <div data-bind="css: cssClasses.panel.description">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- ko template: { name: \'survey-question-errors\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind="visible: !koIsCollapsed(), style: { paddingLeft: innerPaddingLeft}">\n \x3c!-- ko template: { name: \'survey-rows\', data: $data} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-progress">\n <div data-bind="css: css.progress">\n <div data-bind="css: css.progressBar, style:{width: koProgress() + \'%\'}"\n role="progressbar" aria-valuemin="0" aria-valuemax="100">\n <span data-bind="text:koProgressText"></span>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-boolean">\n <div data-bind="css: question.koCss().root">\n <label data-bind="css: question.getItemCss()">\n <input type="checkbox" data-bind="attr: {name: question.name, id: question.inputId, \'aria-required\': question.isRequired,\'aria-label\': question.locTitle.renderedHtml}, checked: question.checkedValue, surveyProp: {indeterminate: question.isIndeterminate}, enable: !question.isReadOnly"\n />\n <span data-bind="css: question.koCss().materialDecorator">\n <span class="check"></span>\n </span>\n <span data-bind="css: question.koCss().label">\n \x3c!-- ko template: { name: \'survey-string\', data: locDisplayLabel } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n </label>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-checkbox">\n <fieldset data-bind="css: question.koCss().root">\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n \x3c!-- ko ifnot: question.hasColumns --\x3e\n \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-checkbox-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasColumns --\x3e\n \x3c!-- ko foreach: question.columns --\x3e\n <div data-bind="css: question.getColumnClass()">\n \x3c!-- ko foreach: { data: $data, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-checkbox-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </fieldset>\n<\/script>\n<script type="text/html" id="survey-checkbox-item">\n <div data-bind="css: question.getItemClass(item)">\n <label data-bind="css: question.koCss().label">\n \x3c!-- ko if: item == question.selectAllItem --\x3e\n <input type="checkbox" data-bind="attr: {name: question.name, id: question.inputId + \'_\' + $index(), \'aria-required\': question.isRequired, \'aria-label\': item.locText.renderedHtml }, checked: question.koAllSelected, enable: !question.isReadOnly, css: question.koCss().itemControl"/>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: item != question.selectAllItem --\x3e\n <input type="checkbox" data-bind="attr: {name: question.name, id: question.inputId + \'_\' + $index(), \'aria-required\': question.isRequired, \'aria-label\': item.locText.renderedHtml }, checkedValue: item.value, checked: question.koValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl"/>\n \x3c!-- /ko --\x3e\n <span data-bind="css: question.koCss().materialDecorator">\n <span class="check"></span>\n </span>\n <span data-bind="css: question.koCss().controlLabel">\n \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n </label>\n \x3c!-- ko if: question.hasOther && (item.value == question.otherItem.value) --\x3e\n <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected } }"></div>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-comment">\n <textarea type="text" data-bind="attr: {\'readonly\': question.isReadOnly, maxLength: question.getMaxLength(), cols: question.cols, rows: question.rows, id: question.inputId, placeholder: question.placeHolder, \'aria-label\': question.locTitle.renderedHtml}, value:question.value, css: question.koCss().root"></textarea>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-dropdown">\n \x3c!-- ko ifnot: question.isReadOnly --\x3e\n <div data-bind="css: question.koCss().selectWrapper">\n <select data-bind="attr: {id: question.inputId, \'aria-label\': question.locTitle.renderedHtml}, value: question.renderedValue, valueAllowUnset: true, css: question.koCss().control">\n \x3c!-- ko if: question.showOptionsCaption --\x3e\n <option data-bind="text:question.optionsCaption, value: null"></option>\n \x3c!-- /ko --\x3e\n \x3c!-- ko foreach: question.visibleChoices --\x3e\n <option data-bind="value: $data.value, text: $data.text, attr: { disabled: !$data.isEnabled }"></option>\n \x3c!-- /ko --\x3e\n </select>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.isReadOnly --\x3e\n <div disabled data-bind="text: question.hasOther && question.isOtherSelected ? question.otherText : question.displayValue, css: question.koCss().control"></div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasOther --\x3e\n <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected } }, style: {display: question.isFlowLayout ? \'inline\': \'\'}"></div>\n \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-empty">\n<div></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-errors">\n <div role="alert" data-bind="visible: errors.length > 0, foreach: { data: errors, as: \'error\'}, css: question.koCss().error.root">\n <div>\n <span aria-hidden="true" data-bind="css: question.koCss().error.icon"></span>\n <span data-bind="css: question.koCss().error.item">\n \x3c!-- ko template: { name: \'survey-string\', data: error.locText } --\x3e\x3c!-- /ko --\x3e\n </span>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-expression">\n <div data-bind="text:question.koDisplayValue, css: question.koCss().root"></div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-file">\n <div data-bind="css: question.cssClasses.root">\n \x3c!-- ko ifnot: question.isReadOnly --\x3e\n <input type="file" data-bind="css: question.cssClasses.fileInput, attr: {id: question.inputId, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, multiple: question.allowMultiple ? \'multiple\' : undefined, title: koInputTitle, accept: question.acceptedTypes }, event: {change: question.dochange}">\n \x3c!-- ko if: question.koHasValue --\x3e\n <button type="button" data-bind="css: question.cssClasses.removeButton, click: question.doclean, text: question.cleanButtonCaption"></button>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.isReadOnly --\x3e\n <input type="file" disabled data-bind="css: \'form-control \' + question.cssClasses.placeholderInput, attr: { placeholder: question.title }" style="color: transparent;"/>\n \x3c!-- /ko --\x3e\n <div data-bind="foreach: question.koData, visible: question.koHasValue">\n <span data-bind="visible: question.showPreview, css: question.cssClasses.preview">\n \x3c!-- ko if: $data.name --\x3e\n <div>\n <a data-bind="style: { width: question.imageWidth + \'px\' }, text: $data.name, attr: { href: $data.content, title: $data.name, download: $data.name }"></a>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.canPreviewImage($data) --\x3e\n <img data-bind="attr: { src: $data.content, height: question.imageHeight, width: question.imageWidth }" alt="File preview">\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.name --\x3e\n <div>\n \x3c!-- ko ifnot: question.isReadOnly --\x3e\n <span data-bind="css: question.cssClasses.removeFile, click: question.doremovefile, text: question.removeFileCaption"></span>\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n </span>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-html">\n <div data-bind="html: question.locHtml.koRenderedHtml, css: question.koCss().root"></div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-imagepicker">\n <fieldset data-bind="css: question.koCss().root">\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender} --\x3e\n <div data-bind="css: question.getItemClass(item)">\n <label data-bind="css: question.koCss().label">\n <input style="display: none;" data-bind="attr: {type: question.multiSelect ? \'checkbox\' : \'radio\', name: question.name + \'_\' + question.id, value: item.value, id: ($index() == 0) ? question.inputId : \'\', \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml}, checked: question.koValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl"\n />\n <div>\n \x3c!-- ko if: question.contentMode === "image" --\x3e\n <img data-bind="css: question.koCss().image, attr: { src: $data.imageLink, width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined }, style: { objectFit: question.imageFit }"/>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.contentMode === "video" --\x3e\n <embed data-bind="css: question.koCss().image, attr: { src: $data.imageLink, width: question.imageWidth ? question.imageWidth + \'px\' : undefined, height: question.imageHeight ? question.imageHeight + \'px\' : undefined }, style: { objectFit: question.imageFit }"/>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.showLabel --\x3e\n <span data-bind="text: text || value, attr: { title: text || value }, css: question.koCss().itemText"></span>\n \x3c!-- /ko --\x3e\n </div>\n </label>\n </div>\n \x3c!-- /ko --\x3e\n </fieldset>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-matrix">\n <fieldset>\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n <table data-bind="css: question.koCss().root">\n \x3c!-- ko if: question.showHeader --\x3e\n <thead>\n <tr>\n <td data-bind="visible: question.hasRows"></td>\n \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n <th>\n \x3c!-- ko template: { name: \'survey-string\', data: locText } --\x3e\n \x3c!-- /ko --\x3e\n </th>\n \x3c!-- /ko --\x3e\n </tr>\n </thead>\n \x3c!-- /ko --\x3e\n <tbody>\n \x3c!-- ko foreach: { data: question.koVisibleRows, as: \'row\' } --\x3e\n <tr data-bind="css: question.koCss().row">\n <td data-bind="visible: question.hasRows">\n \x3c!-- ko template: { name: \'survey-string\', data: row.locText } --\x3e\n \x3c!-- /ko --\x3e\n </td>\n \x3c!-- ko foreach: question.koVisibleColumns --\x3e\n \x3c!-- ko if: question.hasCellText --\x3e\n <td data-bind="css: question.getItemCss(row, $data), click: function() { if(!question.isReadOnly) {row.koCellClick($data); } }">\n \x3c!-- ko template: { name: \'survey-string\', data: question.getCellDisplayLocText(row.name, $data) } --\x3e\n \x3c!-- /ko --\x3e\n </td>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: !question.hasCellText --\x3e\n <td data-bind="attr: { headers: $data.locText.renderedHtml }">\n <label data-bind="css: question.getItemCss(row, $data)">\n <input type="radio" data-bind="css: question.koCss().itemValue, attr: {name: row.fullName, \'aria-required\': question.isRequired, \'aria-label\': question.locTitle.renderedHtml, value: \'\' + $data.value, id: question.inputId + \'_\' + row.name + \'_\' + $index()}, checked: row.koValue, enable: !question.isReadOnly"\n />\n <span class="circle"></span>\n <span class="check"></span>\n <span style="display: none" data-bind="text: $data.locText.text"></span>\n </label>\n </td>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </tr>\n \x3c!-- /ko --\x3e\n </tbody>\n </table>\n </fieldset>\n<\/script>\n<script type="text/html" id="survey-text">\n <span data-bind="text:$data.renderedHtml"></span>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-matrixdynamic">\n <div data-bind="visible: question.koIsAddRowOnTop(), css: question.koCss().footer">\n <button type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd">\n <span data-bind="text: question.addRowText"></span>\n <span data-bind="css: question.koCss().iconAdd"></span>\n </button>\n </div>\n <div data-bind="style: {overflowX: question.horizontalScroll? \'scroll\': \'\'}">\n <table data-bind="css: question.koCss().root">\n \x3c!-- ko if: question.koTable().showHeader --\x3e\n <thead>\n <tr>\n \x3c!-- ko foreach: question.koTable().headerRow.cells --\x3e\n <th data-bind="style: { minWidth: $data.minWidth }">\n \x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\n \x3c!-- /ko --\x3e\n </th>\n \x3c!-- /ko --\x3e\n </tr>\n </thead>\n \x3c!-- /ko --\x3e\n <tbody>\n \x3c!-- ko foreach: question.koTable().rows --\x3e\n <tr>\n \x3c!-- ko foreach: $data.cells --\x3e\n \x3c!-- ko if: $data.hasQuestion --\x3e\n \x3c!-- ko template: { name: \'survey-matrixcell\', data: $data.question, as: "question", afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.hasTitle --\x3e<td>\x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e</td>\x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.isRemoveRow --\x3e\n <td>\n <button type="button" data-bind="click:question.koRemoveRowClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove">\n <span data-bind="text: question.removeRowText"></span>\n <span data-bind="css: question.koCss().iconRemove"></span>\n </button>\n </td>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </tr>\n \x3c!-- /ko --\x3e\n </tbody>\n \x3c!-- ko if:question.koTable().showFooter --\x3e\n <tfoot>\n <tr>\n \x3c!-- ko foreach: question.koTable().footerRow.cells --\x3e\n <td>\n \x3c!-- ko if: $data.hasQuestion --\x3e\n \x3c!-- ko template: { name: \'survey-matrixcell\', data: $data.question, as: "question", afterRender: function(els) { $data.matrix.koCellAfterRender(els, $data); } } --\x3e\x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: $data.hasTitle --\x3e\x3c!-- ko template: { name: \'survey-string\', data: $data.locTitle } --\x3e\x3c!-- /ko --\x3e\x3c!-- /ko --\x3e\n </td>\n \x3c!-- /ko --\x3e\n </tr>\n </tfoot>\n \x3c!-- /ko --\x3e\n </table>\n </div>\n <div data-bind="visible: question.koIsAddRowOnBottom(), css: question.koCss().footer">\n <button type="button" data-bind="click:question.koAddRowClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd">\n <span data-bind="text: question.addRowText"></span>\n <span data-bind="css: question.koCss().iconAdd"></span>\n </button>\n </div>\n<\/script>\n'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-multipletext\">\n <table data-bind=\"css: question.koCss().root, foreach: { data: question.koRows, as: 'row' }\">\n <tr data-bind=\"foreach: { data: row, as: 'item' }, css: question.koCss().row\">\n <td data-bind=\"css: question.koCss().itemTitle\">\x3c!-- ko template: { name: 'survey-string', data: item.locTitle } --\x3e\x3c!-- /ko --\x3e</td>\n <td>\n \x3c!-- ko if: item.editor.errorLocation == 'top' --\x3e\n <div data-bind=\"css: question.koCss().error.locationTop\">\n \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko template: { name: item.editor.koTemplateName(), data: item.editor, as: 'question' } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: item.editor.errorLocation == 'bottom' --\x3e\n <div data-bind=\"css: question.koCss().error.locationBottom\">\n \x3c!-- ko template: { name: 'survey-question-errors', data: item.editor } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n </td>\n </tr>\n </table>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic-navigator">\n <input type="range" min="0" style="width:25%;float:left;margin:5px" data-bind="visible: koIsRange, value: question.koRangeValue, attr: {max: question.koRangeMax}" />\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" />\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" />\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" />\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-paneldynamic">\n <div data-bind="css: question.koCss().root">\n \x3c!-- ko if: question.koIsList() --\x3e\n \x3c!-- ko foreach: { data: question.panels } --\x3e\n \x3c!-- ko template: { name: \'survey-panel\', data: $data, as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n <input type="button" style="margin-top:5px" data-bind="visible: question.koCanRemovePanel() && !$data.koIsCollapsed(), click:question.koRemovePanelClick, css: question.koCss().button + \' \' + question.koCss().buttonRemove, value: question.panelRemoveText"\n />\n <hr/>\n \x3c!-- /ko --\x3e\n <input type="button" data-bind="visible:question.koCanAddPanel, click:question.koAddPanelClick, css: question.koCss().button + \' \' + question.koCss().buttonAdd, value: question.panelAddText"\n />\n \x3c!-- /ko --\x3e\n \x3c!-- ko ifnot: question.koIsList() --\x3e\n <div data-bind="visible:question.koIsProgressTop">\n \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- ko if: question.koPanel() --\x3e\n \x3c!-- ko template: { name: \'survey-panel\', data: question.koPanel(), as: \'question\', afterRender: question.koPanelAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\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"\n />\n <div data-bind="visible:question.koIsProgressBottom">\n \x3c!-- ko template: { name: \'survey-question-paneldynamic-navigator\', data: question, as: \'question\'} --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-question-radiogroup">\n <fieldset data-bind="css: question.koCss().root">\n <legend data-bind="attr: { \'aria-label\': question.locTitle.renderedHtml }"></legend>\n \x3c!-- ko ifnot: question.hasColumns --\x3e\n \x3c!-- ko foreach: { data: question.visibleChoices, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-radiogroup-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasColumns --\x3e\n \x3c!-- ko foreach: question.columns --\x3e\n <div data-bind="css: question.getColumnClass()">\n \x3c!-- ko foreach: { data: $data, as: \'item\', afterRender: question.koAfterRender } --\x3e\n \x3c!-- ko template: \'survey-radiogroup-item\' --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.canShowClearButton --\x3e\n <div>\n <input type="button" data-bind="click:question.clearValue, css: question.koCss().clearButton, value: question.clearButtonCaption"/>\n </div>\n \x3c!-- /ko --\x3e\n </fieldset>\n<\/script>\n<script type="text/html" id="survey-radiogroup-item">\n <div data-bind="css: question.getItemClass(item)">\n <label data-bind="css: question.koCss().label">\n <input type="radio" data-bind="attr: {name: question.name + \'_\' + question.id, id: question.inputId + \'_\' + $index(), \'aria-required\': question.isRequired, \'aria-label\': item.locText.renderedHtml}, checkedValue: item.value, checked: question.renderedValue, enable: !question.isReadOnly && item.isEnabled, css: question.koCss().itemControl"\n />\n <span data-bind="css: question.koCss().materialDecorator"></span>\n <span class="check"></span>\n <span data-bind="css: question.koCss().controlLabel">\n \x3c!-- ko template: { name: \'survey-string\', data: item.locText } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n </label>\n \x3c!-- ko if: question.hasOther && (item.value == question.otherItem.value) --\x3e\n <div class="form-group" data-bind="template: { name: \'survey-comment\', data: {\'question\': question, \'visible\': question.isOtherSelected}}"></div>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-question-rating">\n <div data-bind="css: question.koCss().root">\n \x3c!-- ko foreach: question.koVisibleRateValues --\x3e\n <label data-bind="css: question.koGetCss($data)">\n <input type="radio" style="display: none;" data-bind="attr: {name: question.name, id: question.name + $index(), value: $data.value, \'aria-required\': question.isRequired, \'aria-label\': $data.locText.text}, event: { change: question.koChange}, enable: !question.isReadOnly"\n />\n \x3c!-- ko if: $index() == 0 --\x3e\n <span data-bind="css: question.koCss().minText">\n \x3c!-- ko template: { name: \'survey-string\', data: question.locMinRateDescription } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n \x3c!-- /ko --\x3e\n\n <span data-bind="css: question.koCss().itemText">\n \x3c!-- ko template: { name: \'survey-string\', data: $data.locText } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n\n \x3c!-- ko if: $index() == (question.koVisibleRateValues().length-1) --\x3e\n <span data-bind="css: question.koCss().maxText">\n \x3c!-- ko template: { name: \'survey-string\', data: question.locMaxRateDescription } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n \x3c!-- /ko --\x3e\n </label>\n \x3c!-- /ko --\x3e\n </div>\n <div data-bind="visible: question.hasOther">\n <div data-bind="template: { name: \'survey-comment\', data: {\'question\': question } }"></div>\n </div>\n<\/script>'},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question-text\">\n <input data-bind=\"disable: question.isReadOnly, attr: {type: question.inputType, size: question.size, id: question.inputId, placeholder: question.inputType === 'range' ? undefined : question.placeHolder, maxLength: question.getMaxLength(), 'aria-required': question.isRequired, 'aria-label': question.locTitle.renderedHtml}, value:question.value, css: question.koCss().root\"/>\n<\/script>"},function(e,t){e.exports="<script type=\"text/html\" id=\"survey-question\">\n <div data-bind=\"css: question.koRootClass, style: { paddingLeft: question.paddingLeft, paddingRight: question.paddingRight, width: question.renderWidth }, attr: {id: question.id}\">\n <div data-bind=\"css: {'title-left': question.hasTitleOnLeft}\">\n \x3c!-- ko if: question.hasTitleOnLeftTop --\x3e\n \x3c!--ko template: { name: 'survey-question-title', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n\n <div data-bind=\"css: {'content-left': question.hasTitleOnLeft}\">\n \x3c!-- ko if: question.errorLocation == 'top' --\x3e\n <div data-bind=\"css: question.koCss().error.locationTop\">\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko template: { name: question.koTemplateName(), data: question, afterRender: question.koQuestionAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasComment --\x3e\n <div class=\"form-group\">\n \x3c!-- ko template: { name: 'survey-string', data: question.locCommentText } --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind=\"template: { name: 'survey-comment', data: {'question': question, 'visible': true } }\"></div>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.errorLocation == 'bottom' --\x3e\n <div data-bind=\"css: question.koCss().error.locationBottom\">\n \x3c!-- ko template: { name: 'survey-question-errors', data: question } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: question.hasTitleOnBottom --\x3e\n \x3c!--ko template: { name: 'survey-question-title', data: question } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n </div>\n<\/script>\n"},function(e,t){e.exports='<script type="text/html" id="survey-question-title">\n <h5 data-bind="css: koCss().title">\n \x3c!-- ko if: no --\x3e\n <span style="position: static;" data-bind="css: koCss().number, text: no"></span>\n <span style="position: static;">.&nbsp</span>\n \x3c!-- /ko --\x3e\n \x3c!-- ko template: { name: \'survey-string\', data: locTitle } --\x3e\x3c!-- /ko --\x3e\n </h5>\n <div data-bind="visible: !locDescription.isEmpty, css: koCss().description">\n \x3c!-- ko template: { name: \'survey-string\', data: locDescription } --\x3e\x3c!-- /ko --\x3e\n </div>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-rows">\n \x3c!-- ko foreach: { data: rows, as: \'row\'} --\x3e\n \x3c!-- ko if: row.visible --\x3e\n <div data-bind="css: panel.cssClasses.row">\n \x3c!-- ko foreach: { data: row.elements, as: \'question\' , afterRender: row.koAfterRender } --\x3e\n \x3c!-- ko if: question.isVisible --\x3e\n \x3c!-- ko template: { name: question.koElementType, data: question, afterRender: $parent.koElementAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="survey-string">\n \x3c!-- ko ifnot: koHasHtml --\x3e\n <span style="position: static;" data-bind="text: koRenderedHtml"></span>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koHasHtml --\x3e\n <span style="position: static;" data-bind="html: koRenderedHtml"></span>\n \x3c!-- /ko --\x3e\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="survey-timerpanel">\n <div data-bind="text:koTimerInfoText"></div>\n<\/script>\n'},function(e,t,n){e.exports=n(67)+" "+n(65)+"\n"+n(69)+"\n"+n(70)+n(66)+"\n"+n(71)+" "+n(92)+"\n"+n(93)+" "+n(94)+"\n"+n(68)+" "+n(90)+"\n"+n(91)+" "+n(73)+"\n"+n(74)+" "+n(75)+"\n"+n(77)+" "+n(79)+"\n"+n(80)+" "+n(82)+"\n"+n(83)+"\n"+n(86)+"\n"+n(85)+"\n"+n(84)+"\n"+n(87)+" "+n(88)+"\n"+n(89)+" "+n(72)+"\n"+n(76)+" "+n(78)+"\n"+n(81)+"\n"},function(e,t){e.exports='<div style="position: fixed; bottom: 3px; right: 10px; max-width: 60%;" 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 <span data-bind="visible:koExpanded, click:doExpand" style="float: right; cursor: pointer;">\n <span style="padding-right:10px" data-bind="css: css.window.header.title">X</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,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrap_css",header:"panel-heading card-header",body:"panel-body card-block mt-4",bodyEmpty:"panel-body card-block mt-4 sv_body_empty",footer:"panel-footer card-footer",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn",prev:"btn sv_prev_btn",next:"btn sv_next_btn",start:"btn 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",flowRoot:"sv_q_flow sv_qstn",titleLeftRoot:"sv_qstn_left",title:"",number:"sv_q_num",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20},panel:{title:"sv_p_title",description:"small sv_p_description",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},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 form-control",column:"sv_q_select_column"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},matrix:{root:"table sv_q_matrix",label:"sv_q_m_label",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"table"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:""},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 form-control",clearButton:"sv_q_radiogroup_clear button",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},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",removeFile:"sv_q_file_remove"},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"}}};r.a.bootstrap=i},function(e,t,n){"use strict";var r=n(13);n.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrapmaterial_css",header:"panel-heading",body:"panel-body",bodyEmpty:"panel-body sv_body_empty",footer:"panel-footer",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn btn-primary",prev:"btn sv_prev_btn btn-primary",next:"btn sv_next_btn btn-primary",start:"btn sv_start_btn btn-primary"},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",flowRoot:"sv_q_flow form-group",titleLeftRoot:"sv_qstn_left",title:"",number:"sv_q_num",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20},panel:{title:"sv_p_title",description:"small sv_p_description",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},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 form-control",column:"sv_q_select_column"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},html:{root:""},matrix:{root:"table sv_q_matrix",row:"form-group",label:"sv_q_m_label radio-inline",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label",itemValue:"form-control"},matrixdropdown:{root:"table",itemValue:"form-group"},matrixdynamic:{root:"table",button:"btn btn-primary",itemValue:"form-group",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:""},paneldynamic:{root:"",button:"btn btn-primary",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 form-control",clearButton:"sv_q_radiogroup_clear button btn btn-primary",column:"sv_q_select_column"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},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",removeFile:"sv_q_file_remove"},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"}}};r.a.bootstrapmaterial=i},function(e,t,n){"use strict";n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(149),n(148),n(150)},function(e,t,n){"use strict";var r=n(34),i=(n.n(r),n(9));n.d(t,"b",function(){return i.a});var o=n(4);n.d(t,"c",function(){return o.a});var a=n(32);n.d(t,"d",function(){return a.c}),n.d(t,"e",function(){return a.b}),n.d(t,"f",function(){return a.d}),n.d(t,"g",function(){return a.e}),n.d(t,"h",function(){return a.f}),n.d(t,"i",function(){return a.g}),n.d(t,"j",function(){return a.h}),n.d(t,"k",function(){return a.a});var s=n(12);n.d(t,"l",function(){return s.a});var u=n(5);n.d(t,"m",function(){return u.c}),n.d(t,"n",function(){return u.a}),n.d(t,"o",function(){return u.d}),n.d(t,"p",function(){return u.b});var l=n(11);n.d(t,"q",function(){return l.b}),n.d(t,"r",function(){return l.d}),n.d(t,"s",function(){return l.a}),n.d(t,"t",function(){return l.e}),n.d(t,"u",function(){return l.l});var c=n(14);n.d(t,"v",function(){return c.a});var p=n(102);n.d(t,"w",function(){return p.a});var d=n(35);n.d(t,"x",function(){return d.a});var h=n(25);n.d(t,"y",function(){return h.a});var f=n(10);n.d(t,"z",function(){return f.a}),n.d(t,"A",function(){return f.b});var m=n(24);n.d(t,"B",function(){return m.g});var g=n(36);n.d(t,"C",function(){return g.a});var y=n(15);n.d(t,"D",function(){return y.a});var v=n(1);n.d(t,"E",function(){return v.e}),n.d(t,"F",function(){return v.f}),n.d(t,"G",function(){return v.g}),n.d(t,"H",function(){return v.h}),n.d(t,"I",function(){return v.i}),n.d(t,"J",function(){return v.j}),n.d(t,"K",function(){return v.b}),n.d(t,"L",function(){return v.c}),n.d(t,"M",function(){return v.k}),n.d(t,"N",function(){return v.l}),n.d(t,"O",function(){return v.a});var b=n(22);n.d(t,"P",function(){return b.c}),n.d(t,"Q",function(){return b.d}),n.d(t,"R",function(){return b.e}),n.d(t,"S",function(){return b.b}),n.d(t,"T",function(){return b.a});var x=n(52);n.d(t,"U",function(){return x.b}),n.d(t,"V",function(){return x.a});var C=n(53);n.d(t,"W",function(){return C.b}),n.d(t,"X",function(){return C.a});var w=n(51);n.d(t,"Y",function(){return w.a}),n.d(t,"Z",function(){return w.c}),n.d(t,"_0",function(){return w.b});var P=n(54);n.d(t,"_1",function(){return P.a}),n.d(t,"_2",function(){return P.b});var V=n(20);n.d(t,"_3",function(){return V.b}),n.d(t,"_4",function(){return V.d}),n.d(t,"_5",function(){return V.a});var T=n(38);n.d(t,"_6",function(){return T.a});var S=n(27);n.d(t,"_7",function(){return S.a});var k=n(8);n.d(t,"_8",function(){return k.a});var E=n(58);n.d(t,"_9",function(){return E.a});var R=n(47);n.d(t,"_10",function(){return R.a});var O=n(21);n.d(t,"_11",function(){return O.a}),n.d(t,"_12",function(){return O.b});var q=n(45);n.d(t,"_13",function(){return q.a});var _=n(46);n.d(t,"_14",function(){return _.a});var I=n(29);n.d(t,"_15",function(){return I.a});var D=n(3);n.d(t,"_16",function(){return D.b}),n.d(t,"_17",function(){return D.a});var N=n(48);n.d(t,"_18",function(){return N.a});var L=n(49);n.d(t,"_19",function(){return L.a});var A=n(56);n.d(t,"_20",function(){return A.a});var j=n(57);n.d(t,"_21",function(){return j.a});var F=n(30);n.d(t,"_22",function(){return F.a});var M=n(31);n.d(t,"_23",function(){return M.a});var z=n(44);n.d(t,"_24",function(){return z.a});var B=n(50);n.d(t,"_25",function(){return B.a});var H=n(55);n.d(t,"_26",function(){return H.a}),n.d(t,"_27",function(){return H.b});var Q=n(61);n.d(t,"_28",function(){return Q.a});var $=n(19);n.d(t,"_29",function(){return $.a});var U=n(151);n.d(t,"_30",function(){return U.a}),n.d(t,"_31",function(){return U.b}),n.d(t,"_32",function(){return U.c}),n.d(t,"_33",function(){return U.d}),n.d(t,"_34",function(){return U.e}),n.d(t,"_35",function(){return U.f}),n.d(t,"_36",function(){return U.g});var W=n(60);n.d(t,"_37",function(){return W.a});var J=n(23);n.d(t,"_38",function(){return J.a});var G=n(37);n.d(t,"_39",function(){return G.a});var K=n(42);n.d(t,"_40",function(){return K.a});var Z=n(2);n.d(t,"_41",function(){return Z.a}),n.d(t,"_42",function(){return Z.b});var X=n(28);n.d(t,"_43",function(){return X.b}),n.d(t,"_44",function(){return X.a});var Y=n(59);n.d(t,"_45",function(){return Y.a}),n.d(t,"a",function(){return ee});var ee;ee="1.1.1"},function(e,t,n){"use strict";function r(e,t){function n(){return e.substring(tr,er)}function r(e,t){return{type:"literal",text:e,ignoreCase:t}}function i(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function s(){return{type:"end"}}function u(e){return{type:"other",description:e}}function l(t){var n,r=nr[t];if(r)return r;for(n=t-1;!nr[n];)n--;for(r=nr[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return nr[t]=r,r}function c(e,t){var n=l(e),r=l(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function p(e){er<rr||(er>rr&&(rr=er,ir=[]),ir.push(e))}function d(e,t,n){return new a(a.buildMessage(e,t),e,t,n)}function h(){var e,t,n,r,i,o,a,s,u,l=34*er+0,c=ar[l];if(c)return er=c.nextPos,c.result;if(e=er,(t=U())!==K)if((n=m())!==K){for(r=[],i=er,o=U(),o!==K?(a=f(),a!==K?(s=U(),s!==K?(u=m(),u!==K?(o=[o,a,s,u],i=o):(er=i,i=K)):(er=i,i=K)):(er=i,i=K)):(er=i,i=K);i!==K;)r.push(i),i=er,o=U(),o!==K?(a=f(),a!==K?(s=U(),s!==K?(u=m(),u!==K?(o=[o,a,s,u],i=o):(er=i,i=K)):(er=i,i=K)):(er=i,i=K)):(er=i,i=K);r!==K?(i=U(),i!==K?(tr=e,t=Y(n,r),e=t):(er=e,e=K)):(er=e,e=K)}else er=e,e=K;else er=e,e=K;return ar[l]={nextPos:er,result:e},e}function f(){var t,n,r=34*er+1,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,2)===ee?(n=ee,er+=2):(n=K,0===or&&p(te)),n===K&&(e.substr(er,2).toLowerCase()===ne?(n=e.substr(er,2),er+=2):(n=K,0===or&&p(re))),n!==K&&(tr=t,n=ie()),t=n,ar[r]={nextPos:er,result:t},t)}function m(){var e,t,n,r,i,o,a,s,u=34*er+2,l=ar[u];if(l)return er=l.nextPos,l.result;if(e=er,(t=y())!==K){for(n=[],r=er,i=U(),i!==K?(o=g(),o!==K?(a=U(),a!==K?(s=y(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,i=U(),i!==K?(o=g(),o!==K?(a=U(),a!==K?(s=y(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[u]={nextPos:er,result:e},e}function g(){var t,n,r=34*er+3,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,2)===oe?(n=oe,er+=2):(n=K,0===or&&p(ae)),n===K&&(e.substr(er,3).toLowerCase()===se?(n=e.substr(er,3),er+=3):(n=K,0===or&&p(ue))),n!==K&&(tr=t,n=le()),t=n,ar[r]={nextPos:er,result:t},t)}function y(){var e,t,n,r,i,o,a,s,u=34*er+4,l=ar[u];if(l)return er=l.nextPos,l.result;if(e=er,(t=b())!==K){for(n=[],r=er,i=U(),i!==K?(o=v(),o!==K?(a=U(),a!==K?(s=b(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,i=U(),i!==K?(o=v(),o!==K?(a=U(),a!==K?(s=b(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=ce(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[u]={nextPos:er,result:e},e}function v(){var t,n,r=34*er+5,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,2)===pe?(n=pe,er+=2):(n=K,0===or&&p(de)),n===K&&(e.substr(er,11).toLowerCase()===he?(n=e.substr(er,11),er+=11):(n=K,0===or&&p(fe))),n!==K&&(tr=t,n=me()),t=n,t===K&&(t=er,e.substr(er,2)===ge?(n=ge,er+=2):(n=K,0===or&&p(ye)),n===K&&(e.substr(er,14).toLowerCase()===ve?(n=e.substr(er,14),er+=14):(n=K,0===or&&p(be))),n!==K&&(tr=t,n=xe()),(t=n)===K&&(t=er,61===e.charCodeAt(er)?(n=Ce,er++):(n=K,0===or&&p(we)),n===K&&(e.substr(er,5).toLowerCase()===Pe?(n=e.substr(er,5),er+=5):(n=K,0===or&&p(Ve))),n!==K&&(tr=t,n=Te()),(t=n)===K&&(t=er,e.substr(er,2)===Se?(n=Se,er+=2):(n=K,0===or&&p(ke)),n===K&&(e.substr(er,8).toLowerCase()===Ee?(n=e.substr(er,8),er+=8):(n=K,0===or&&p(Re))),n!==K&&(tr=t,n=Oe()),(t=n)===K&&(t=er,60===e.charCodeAt(er)?(n=qe,er++):(n=K,0===or&&p(_e)),n===K&&(e.substr(er,4).toLowerCase()===Ie?(n=e.substr(er,4),er+=4):(n=K,0===or&&p(De))),n!==K&&(tr=t,n=Ne()),(t=n)===K&&(t=er,62===e.charCodeAt(er)?(n=Le,er++):(n=K,0===or&&p(Ae)),n===K&&(e.substr(er,7).toLowerCase()===je?(n=e.substr(er,7),er+=7):(n=K,0===or&&p(Fe))),n!==K&&(tr=t,n=Me()),t=n))))),ar[r]={nextPos:er,result:t},t)}function b(){var e,t,n,r,i,o,a,s,u=34*er+6,l=ar[u];if(l)return er=l.nextPos,l.result;if(e=er,(t=C())!==K){for(n=[],r=er,i=U(),i!==K?(o=x(),o!==K?(a=U(),a!==K?(s=C(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,i=U(),i!==K?(o=x(),o!==K?(a=U(),a!==K?(s=C(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[u]={nextPos:er,result:e},e}function x(){var t,n,r=34*er+7,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,43===e.charCodeAt(er)?(n=ze,er++):(n=K,0===or&&p(Be)),n!==K&&(tr=t,n=He()),t=n,t===K&&(t=er,45===e.charCodeAt(er)?(n=Qe,er++):(n=K,0===or&&p($e)),n!==K&&(tr=t,n=Ue()),t=n),ar[r]={nextPos:er,result:t},t)}function C(){var e,t,n,r,i,o,a,s,u=34*er+8,l=ar[u];if(l)return er=l.nextPos,l.result;if(e=er,(t=P())!==K){for(n=[],r=er,i=U(),i!==K?(o=w(),o!==K?(a=U(),a!==K?(s=P(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,i=U(),i!==K?(o=w(),o!==K?(a=U(),a!==K?(s=P(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[u]={nextPos:er,result:e},e}function w(){var t,n,r=34*er+9,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,42===e.charCodeAt(er)?(n=We,er++):(n=K,0===or&&p(Je)),n!==K&&(tr=t,n=Ge()),t=n,t===K&&(t=er,47===e.charCodeAt(er)?(n=Ke,er++):(n=K,0===or&&p(Ze)),n!==K&&(tr=t,n=Xe()),(t=n)===K&&(t=er,37===e.charCodeAt(er)?(n=Ye,er++):(n=K,0===or&&p(et)),n!==K&&(tr=t,n=tt()),t=n)),ar[r]={nextPos:er,result:t},t)}function P(){var e,t,n,r,i,o,a,s,u=34*er+10,l=ar[u];if(l)return er=l.nextPos,l.result;if(e=er,(t=T())!==K){for(n=[],r=er,i=U(),i!==K?(o=V(),o!==K?(a=U(),a!==K?(s=T(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,i=U(),i!==K?(o=V(),o!==K?(a=U(),a!==K?(s=T(),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=Y(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[u]={nextPos:er,result:e},e}function V(){var t,n,r=34*er+11,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,94===e.charCodeAt(er)?(n=nt,er++):(n=K,0===or&&p(rt)),n===K&&(e.substr(er,5).toLowerCase()===it?(n=e.substr(er,5),er+=5):(n=K,0===or&&p(ot))),n!==K&&(tr=t,n=at()),t=n,ar[r]={nextPos:er,result:t},t)}function T(){var e,t,n,r,i,o,a,s,u=34*er+12,l=ar[u];if(l)return er=l.nextPos,l.result;if(e=er,(t=k())!==K){for(n=[],r=er,i=U(),i!==K?(o=S(),o!==K?(a=U(),a!==K?(s=k(),s===K&&(s=null),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);r!==K;)n.push(r),r=er,i=U(),i!==K?(o=S(),o!==K?(a=U(),a!==K?(s=k(),s===K&&(s=null),s!==K?(i=[i,o,a,s],r=i):(er=r,r=K)):(er=r,r=K)):(er=r,r=K)):(er=r,r=K);n!==K?(tr=e,t=ce(t,n),e=t):(er=e,e=K)}else er=e,e=K;return ar[u]={nextPos:er,result:e},e}function S(){var t,n,r=34*er+13,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,2)===st?(n=st,er+=2):(n=K,0===or&&p(ut)),n===K&&(e.substr(er,8).toLowerCase()===lt?(n=e.substr(er,8),er+=8):(n=K,0===or&&p(ct)),n===K&&(e.substr(er,7).toLowerCase()===pt?(n=e.substr(er,7),er+=7):(n=K,0===or&&p(dt)))),n!==K&&(tr=t,n=ht()),t=n,t===K&&(t=er,e.substr(er,11).toLowerCase()===ft?(n=e.substr(er,11),er+=11):(n=K,0===or&&p(mt)),n===K&&(e.substr(er,10).toLowerCase()===gt?(n=e.substr(er,10),er+=10):(n=K,0===or&&p(yt))),n!==K&&(tr=t,n=vt()),(t=n)===K&&(t=er,e.substr(er,5).toLowerCase()===bt?(n=e.substr(er,5),er+=5):(n=K,0===or&&p(xt)),n!==K&&(tr=t,n=Ct()),(t=n)===K&&(t=er,e.substr(er,5).toLowerCase()===wt?(n=e.substr(er,5),er+=5):(n=K,0===or&&p(Pt)),n!==K&&(tr=t,n=Vt()),t=n))),ar[r]={nextPos:er,result:t},t)}function k(){var t,n,r,i,o,a,s=34*er+14,u=ar[s];return u?(er=u.nextPos,u.result):(t=er,40===e.charCodeAt(er)?(n=Tt,er++):(n=K,0===or&&p(St)),n!==K?(r=U(),r!==K?(i=h(),i!==K?(o=U(),o!==K?(41===e.charCodeAt(er)?(a=kt,er++):(a=K,0===or&&p(Et)),a===K&&(a=null),a!==K?(tr=t,n=Rt(i),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=E())===K&&(t=R())===K&&(t=q())===K&&(t=I()),ar[s]={nextPos:er,result:t},t)}function E(){var t,n,r,i,o,a=34*er+15,s=ar[a];return s?(er=s.nextPos,s.result):(t=er,n=B(),n!==K?(40===e.charCodeAt(er)?(r=Tt,er++):(r=K,0===or&&p(St)),r!==K?(i=D(),i!==K?(41===e.charCodeAt(er)?(o=kt,er++):(o=K,0===or&&p(Et)),o===K&&(o=null),o!==K?(tr=t,n=Ot(n,i),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),ar[a]={nextPos:er,result:t},t)}function R(){var t,n,r,i,o=34*er+16,a=ar[o];return a?(er=a.nextPos,a.result):(t=er,33===e.charCodeAt(er)?(n=qt,er++):(n=K,0===or&&p(_t)),n===K&&(e.substr(er,6).toLowerCase()===It?(n=e.substr(er,6),er+=6):(n=K,0===or&&p(Dt))),n!==K?(r=U(),r!==K?(i=h(),i!==K?(tr=t,n=Nt(i),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=q(),n!==K?(r=U(),r!==K?(i=O(),i!==K?(tr=t,n=Lt(n,i),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)),ar[o]={nextPos:er,result:t},t)}function O(){var t,n,r=34*er+17,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,5).toLowerCase()===At?(n=e.substr(er,5),er+=5):(n=K,0===or&&p(jt)),n!==K&&(tr=t,n=Ft()),t=n,t===K&&(t=er,e.substr(er,8).toLowerCase()===Mt?(n=e.substr(er,8),er+=8):(n=K,0===or&&p(zt)),n!==K&&(tr=t,n=Bt()),t=n),ar[r]={nextPos:er,result:t},t)}function q(){var t,n,r,i,o,a=34*er+18,s=ar[a];return s?(er=s.nextPos,s.result):(t=er,n=U(),n!==K?(e.substr(er,9)===Ht?(r=Ht,er+=9):(r=K,0===or&&p(Qt)),r===K&&(e.substr(er,4)===$t?(r=$t,er+=4):(r=K,0===or&&p(Ut))),r!==K?(tr=t,n=Wt(),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=U(),n!==K?(r=_(),r!==K?(tr=t,n=Jt(r),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=U(),n!==K?(123===e.charCodeAt(er)?(r=Gt,er++):(r=K,0===or&&p(Kt)),r!==K?(i=j(),i!==K?(125===e.charCodeAt(er)?(o=Zt,er++):(o=K,0===or&&p(Xt)),o!==K?(tr=t,n=Yt(i),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K)):(er=t,t=K))),ar[a]={nextPos:er,result:t},t)}function _(){var t,n,r,i,o=34*er+19,a=ar[o];return a?(er=a.nextPos,a.result):(t=N(),t===K&&(t=L())===K&&(t=B())===K&&(t=er,39===e.charCodeAt(er)?(n=en,er++):(n=K,0===or&&p(tn)),n!==K?(r=F(),r!==K?(39===e.charCodeAt(er)?(i=en,er++):(i=K,0===or&&p(tn)),i!==K?(tr=t,n=nn(r),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,34===e.charCodeAt(er)?(n=rn,er++):(n=K,0===or&&p(on)),n!==K?(r=F(),r!==K?(34===e.charCodeAt(er)?(i=rn,er++):(i=K,0===or&&p(on)),i!==K?(tr=t,n=nn(r),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K))),ar[o]={nextPos:er,result:t},t)}function I(){var t,n,r,i,o=34*er+20,a=ar[o];return a?(er=a.nextPos,a.result):(t=er,91===e.charCodeAt(er)?(n=an,er++):(n=K,0===or&&p(sn)),n!==K?(r=D(),r!==K?(93===e.charCodeAt(er)?(i=un,er++):(i=K,0===or&&p(ln)),i!==K?(tr=t,n=cn(r),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),ar[o]={nextPos:er,result:t},t)}function D(){var t,n,r,i,o,a,s,u,l=34*er+21,c=ar[l];if(c)return er=c.nextPos,c.result;if(t=er,n=h(),n===K&&(n=null),n!==K){for(r=[],i=er,o=U(),o!==K?(44===e.charCodeAt(er)?(a=pn,er++):(a=K,0===or&&p(dn)),a!==K?(s=U(),s!==K?(u=h(),u!==K?(o=[o,a,s,u],i=o):(er=i,i=K)):(er=i,i=K)):(er=i,i=K)):(er=i,i=K);i!==K;)r.push(i),i=er,o=U(),o!==K?(44===e.charCodeAt(er)?(a=pn,er++):(a=K,0===or&&p(dn)),a!==K?(s=U(),s!==K?(u=h(),u!==K?(o=[o,a,s,u],i=o):(er=i,i=K)):(er=i,i=K)):(er=i,i=K)):(er=i,i=K);r!==K?(tr=t,n=hn(n,r),t=n):(er=t,t=K)}else er=t,t=K;return ar[l]={nextPos:er,result:t},t}function N(){var t,n,r=34*er+22,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,4).toLowerCase()===fn?(n=e.substr(er,4),er+=4):(n=K,0===or&&p(mn)),n!==K&&(tr=t,n=gn()),t=n,t===K&&(t=er,e.substr(er,5).toLowerCase()===yn?(n=e.substr(er,5),er+=5):(n=K,0===or&&p(vn)),n!==K&&(tr=t,n=bn()),t=n),ar[r]={nextPos:er,result:t},t)}function L(){var t,n,r,i=34*er+23,o=ar[i];return o?(er=o.nextPos,o.result):(t=er,e.substr(er,2)===xn?(n=xn,er+=2):(n=K,0===or&&p(Cn)),n!==K?(r=H(),r!==K?(tr=t,n=wn(),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,Pn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Vn)),n===K&&(n=null),n!==K?(r=A(),r!==K?(tr=t,n=Tn(n,r),t=n):(er=t,t=K)):(er=t,t=K)),ar[i]={nextPos:er,result:t},t)}function A(){var t,n,r,i,o=34*er+24,a=ar[o];return a?(er=a.nextPos,a.result):(t=er,n=H(),n!==K?(46===e.charCodeAt(er)?(r=Sn,er++):(r=K,0===or&&p(kn)),r!==K?(i=H(),i!==K?(tr=t,n=En(),t=n):(er=t,t=K)):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,n=Q(),n!==K?(r=H(),r===K&&(r=null),r!==K?(tr=t,n=Rn(),t=n):(er=t,t=K)):(er=t,t=K),t===K&&(t=er,48===e.charCodeAt(er)?(n=On,er++):(n=K,0===or&&p(qn)),n!==K&&(tr=t,n=_n()),t=n)),ar[o]={nextPos:er,result:t},t)}function j(){var e,t,n,r=34*er+25,i=ar[r];if(i)return er=i.nextPos,i.result;if(e=er,t=[],(n=z())!==K)for(;n!==K;)t.push(n),n=z();else t=K;return t!==K&&(tr=e,t=In(t)),e=t,ar[r]={nextPos:er,result:e},e}function F(){var e,t,n,r=34*er+26,i=ar[r];if(i)return er=i.nextPos,i.result;if(e=er,t=[],(n=M())!==K)for(;n!==K;)t.push(n),n=M();else t=K;return t!==K&&(tr=e,t=In(t)),e=t,ar[r]={nextPos:er,result:e},e}function M(){var t,n,r=34*er+27,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,e.substr(er,2)===Dn?(n=Dn,er+=2):(n=K,0===or&&p(Nn)),n!==K&&(tr=t,n=Ln()),t=n,t===K&&(t=er,e.substr(er,2)===An?(n=An,er+=2):(n=K,0===or&&p(jn)),n!==K&&(tr=t,n=Fn()),(t=n)===K&&(t=er,Mn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(zn)),n!==K&&(tr=t,n=Bn()),t=n)),ar[r]={nextPos:er,result:t},t)}function z(){var t,n,r=34*er+28,i=ar[r];return i?(er=i.nextPos,i.result):(t=er,Hn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Qn)),n!==K&&(tr=t,n=Bn()),t=n,ar[r]={nextPos:er,result:t},t)}function B(){var e,t,n,r,i,o,a,s=34*er+29,u=ar[s];if(u)return er=u.nextPos,u.result;if(e=er,(t=$())!==K){if(n=[],r=er,(i=H())!==K){for(o=[],a=$();a!==K;)o.push(a),a=$();o!==K?(i=[i,o],r=i):(er=r,r=K)}else er=r,r=K;for(;r!==K;)if(n.push(r),r=er,(i=H())!==K){for(o=[],a=$();a!==K;)o.push(a),a=$();o!==K?(i=[i,o],r=i):(er=r,r=K)}else er=r,r=K;n!==K?(tr=e,t=Bn(),e=t):(er=e,e=K)}else er=e,e=K;return ar[s]={nextPos:er,result:e},e}function H(){var t,n,r=34*er+30,i=ar[r];if(i)return er=i.nextPos,i.result;if(t=[],$n.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Un)),n!==K)for(;n!==K;)t.push(n),$n.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Un));else t=K;return ar[r]={nextPos:er,result:t},t}function Q(){var t,n,r=34*er+31,i=ar[r];if(i)return er=i.nextPos,i.result;if(t=[],Wn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Jn)),n!==K)for(;n!==K;)t.push(n),Wn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Jn));else t=K;return ar[r]={nextPos:er,result:t},t}function $(){var t,n,r=34*er+32,i=ar[r];if(i)return er=i.nextPos,i.result;if(t=[],Gn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Kn)),n!==K)for(;n!==K;)t.push(n),Gn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Kn));else t=K;return ar[r]={nextPos:er,result:t},t}function U(){var t,n,r=34*er+33,i=ar[r];if(i)return er=i.nextPos,i.result;for(or++,t=[],Xn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Yn));n!==K;)t.push(n),Xn.test(e.charAt(er))?(n=e.charAt(er),er++):(n=K,0===or&&p(Yn));return or--,t===K&&(n=K,0===or&&p(Zn)),ar[r]={nextPos:er,result:t},t}function W(e,t,n){return void 0===n&&(n=!1),t.reduce(function(e,t){return new o.f(t[1],e,t[3],n)},e)}function J(e){return[].concat.apply([],e)}t=void 0!==t?t:{};var G,K={},Z={Expression:h},X=h,Y=function(e,t){return W(e,t,!0)},ee="||",te=r("||",!1),ne="or",re=r("or",!0),ie=function(){return"or"},oe="&&",ae=r("&&",!1),se="and",ue=r("and",!0),le=function(){return"and"},ce=function(e,t){return W(e,t)},pe="<=",de=r("<=",!1),he="lessorequal",fe=r("lessorequal",!0),me=function(){return"lessorequal"},ge=">=",ye=r(">=",!1),ve="greaterorequal",be=r("greaterorequal",!0),xe=function(){return"greaterorequal"},Ce="=",we=r("=",!1),Pe="equal",Ve=r("equal",!0),Te=function(){return"equal"},Se="!=",ke=r("!=",!1),Ee="notequal",Re=r("notequal",!0),Oe=function(){return"notequal"},qe="<",_e=r("<",!1),Ie="less",De=r("less",!0),Ne=function(){return"less"},Le=">",Ae=r(">",!1),je="greater",Fe=r("greater",!0),Me=function(){return"greater"},ze="+",Be=r("+",!1),He=function(){return"plus"},Qe="-",$e=r("-",!1),Ue=function(){return"minus"},We="*",Je=r("*",!1),Ge=function(){return"mul"},Ke="/",Ze=r("/",!1),Xe=function(){return"div"},Ye="%",et=r("%",!1),tt=function(){return"mod"},nt="^",rt=r("^",!1),it="power",ot=r("power",!0),at=function(){return"power"},st="*=",ut=r("*=",!1),lt="contains",ct=r("contains",!0),pt="contain",dt=r("contain",!0),ht=function(){return"contains"},ft="notcontains",mt=r("notcontains",!0),gt="notcontain",yt=r("notcontain",!0),vt=function(){return"notcontains"},bt="anyof",xt=r("anyof",!0),Ct=function(){return"anyof"},wt="allof",Pt=r("allof",!0),Vt=function(){return"allof"},Tt="(",St=r("(",!1),kt=")",Et=r(")",!1),Rt=function(e){return e},Ot=function(e,t){return new o.a(e,t)},qt="!",_t=r("!",!1),It="negate",Dt=r("negate",!0),Nt=function(e){return new o.b(e,"negate")},Lt=function(e,t){return new o.b(e,t)},At="empty",jt=r("empty",!0),Ft=function(){return"empty"},Mt="notempty",zt=r("notempty",!0),Bt=function(){return"notempty"},Ht="undefined",Qt=r("undefined",!1),$t="null",Ut=r("null",!1),Wt=function(){return null},Jt=function(e){return new o.c(e)},Gt="{",Kt=r("{",!1),Zt="}",Xt=r("}",!1),Yt=function(e){return new o.d(e)},en="'",tn=r("'",!1),nn=function(e){return e},rn='"',on=r('"',!1),an="[",sn=r("[",!1),un="]",ln=r("]",!1),cn=function(e){return e},pn=",",dn=r(",",!1),hn=function(e,t){if(null==e)return[];var n=[e];if(Array.isArray(t))for(var r=J(t),i=3;i<r.length;i+=4)n.push(r[i]);return new o.e(n)},fn="true",mn=r("true",!0),gn=function(){return!0},yn="false",vn=r("false",!0),bn=function(){return!1},xn="0x",Cn=r("0x",!1),wn=function(){return parseInt(n(),16)},Pn=/^[\-]/,Vn=i(["-"],!1,!1),Tn=function(e,t){return null==e?t:-t},Sn=".",kn=r(".",!1),En=function(){return parseFloat(n())},Rn=function(){return parseInt(n(),10)},On="0",qn=r("0",!1),_n=function(){return 0},In=function(e){return e.join("")},Dn="\\'",Nn=r("\\'",!1),Ln=function(){return"'"},An='\\"',jn=r('\\"',!1),Fn=function(){return'"'},Mn=/^[^"'{}]/,zn=i(['"',"'","{","}"],!0,!1),Bn=function(){return n()},Hn=/^[^{}]/,Qn=i(["{","}"],!0,!1),$n=/^[0-9]/,Un=i([["0","9"]],!1,!1),Wn=/^[1-9]/,Jn=i([["1","9"]],!1,!1),Gn=/^[a-zA-Z]/,Kn=i([["a","z"],["A","Z"]],!1,!1),Zn=u("whitespace"),Xn=/^[ \t\n\r]/,Yn=i([" ","\t","\n","\r"],!1,!1),er=0,tr=0,nr=[{line:1,column:1}],rr=0,ir=[],or=0,ar={};if(void 0!==t.startRule){if(!(t.startRule in Z))throw new Error("Can't start parsing from rule \""+t.startRule+'".');X=Z[t.startRule]}if((G=X())!==K&&er===e.length)return G;throw G!==K&&er<e.length&&p(s()),d(ir,rr<e.length?e.charAt(rr):null,rr<e.length?c(rr,rr+1):c(rr,rr))}var i=n(0),o=n(24);n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s});var a=function(e){function t(n,r,i,o){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=i,a.location=o,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return i.a(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function o(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}function a(e){var t,n,r=e.map(o);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}function s(e){return e?'"'+r(e)+'"':"end of input"}return"Expected "+a(e)+" but "+s(t)+" found."},t}(Error),s=r},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(5),a=n(10);n.d(t,"a",function(){return s});var s=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this)||this;return r.createLocalizableString("html",r),r.expression=t,r.html=n,r}return r.a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new a.a(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),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}),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.c);i.a.addClass("htmlconditionitem",["expression:condition",{name:"html:html",serializationProperty:"locHtml"}],function(){return new s},"base")},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(38)),a=n(1),s=n(16),u=n(5);n.d(t,"a",function(){return l});var l=function(e){function t(t){void 0===t&&(t="");var n=e.call(this,t)||this;n.koElementType=i.observable("survey-flowpanel"),new s.a(n),n.onCreating();var r=n;return n.koElementAfterRender=function(e,t){return r.elementAfterRender(e,t)},n}return r.a(t,e),t.prototype.onCreating=function(){},t.prototype.getHtmlForQuestion=function(e){return'<span question="true" contenteditable="false" id="flowpanel_'+e.name+'">\x3c!-- ko template: { name: "survey-flowpanel-question", data: "'+e.name+'"} --\x3e\x3c!-- /ko --\x3e</span>'},t.prototype.elementAfterRender=function(e,t){if(this.survey){var n=u.b.GetFirstNonTextElement(e);n&&this.survey.afterRenderQuestion(t,n)}},t}(o.a);a.a.overrideClassCreator("flowpanel",function(){return new l}),i.components.register("f-panel",{viewModel:{createViewModel:function(e,t){var n=this,r=i.unwrap(e.question);n.element=t.element,n.element.innerHTML=r.html,n.isOnFocus=!1,n.wasChanged=!1,n.isContentUpdating=!1,r.contentChangedCallback=function(){n.isContentUpdating||(i.cleanNode(n.element),n.element.innerHTML=r.html,i.applyBindings({question:r},n.element),i.tasks.runEarly())},n.element.onfocus=function(){n.isOnFocus=!0},n.element.onblur=function(){n.wasChanged&&n.updateContent(),n.isOnFocus=!1,n.wasChanged=!1},n.element.ondragend=function(e){var t=/{(.*?(element:)[^$].*?)}/g,i=n.element.innerHTML,o=t.exec(i);if(null!==o){var a=r.getQuestionFromText(o[0]);a&&(r.content=n.getContent(a.name))}},n.updateContent=function(){n.isContentUpdating=!0,r.content=n.getContent(),n.isContentUpdating=!1},r.getContent=n.getContent=function(e){var t=document.createElement("DIV");t.innerHTML=n.element.innerHTML;for(var i=t.querySelectorAll('span[question="true"]'),o=0;o<i.length;o++){var a=i[o].id.replace("flowpanel_",""),s="";if(a!==e){var u=r.getQuestionByName(a);s=u?r.getElementContentText(u):""}i[o].outerHTML=s}return t.innerHTML};var o={characterData:!0,attributes:!0,childList:!0,subtree:!0},a=function(e,t){n.isOnFocus&&(n.wasChanged=!0)};return new MutationObserver(a).observe(n.element,o),{question:r}}},template:"<div></div>"})},function(e,t,n){"use strict";var r=n(0),i=n(44),o=n(1),a=n(3),s=n(7);n.d(t,"a",function(){return l});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n}return r.a(t,e),t}(s.a),l=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new u(n),n}return r.a(t,e),t.prototype.getItemCss=function(e,t){var n=this.checkedValue;return this.koCss().item+(n?" checked":"")},t}(i.a);o.a.overrideClassCreator("boolean",function(){return new l("")}),a.b.Instance.registerQuestion("boolean",function(e){return new l(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(17)),a=n(1),s=n(3),u=n(45);n.d(t,"a",function(){return c});var l=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype.getKoValue=function(){return this.question.renderedValue},t}(o.b),c=function(e){function t(t){var n=e.call(this,t)||this;n.name=t,n.isAllSelectedUpdating=!1,new l(n),n.koAllSelected=i.observable(n.isAllSelected);var r=n;return n.koAllSelected.subscribe(function(e){r.isAllSelectedUpdating||(e?r.selectAll():r.clearValue())}),n}return r.a(t,e),t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateAllSelected()},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateAllSelected()},t.prototype.updateAllSelected=function(){this.isAllSelectedUpdating=!0,this.koAllSelected(this.isAllSelected),this.isAllSelectedUpdating=!1},t.prototype.getItemClass=function(e){var t=(this.value,this.isItemSelected(e)),n=this.cssClasses.item;return this.hasColumns||(n+=0===this.colCount?" sv_q_checkbox_inline":" sv-q-col-"+this.colCount),t&&(n+=" checked"),n},t}(u.a);a.a.overrideClassCreator("checkbox",function(){return new c("")}),s.b.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=s.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(46),s=n(7);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new s.a(n),n}return r.a(t,e),t}(a.a);i.a.overrideClassCreator("comment",function(){return new u("")}),o.b.Instance.registerQuestion("comment",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(29),o=n(1),a=n(3),s=n(17);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new s.a(n),n}return r.a(t,e),t}(i.a);o.a.overrideClassCreator("dropdown",function(){return new u("")}),a.b.Instance.registerQuestion("dropdown",function(e){var t=new u(e);return t.choices=a.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(47),o=n(1),a=n(7);n.d(t,"a",function(){return s});var s=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a.a(n),n}return r.a(t,e),t}(i.a);o.a.overrideClassCreator("empty",function(){return new s("")})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(30)),a=n(1),s=n(3),u=n(7);n.d(t,"a",function(){return c});var l=function(e){function t(t){var n=e.call(this,t)||this;return n.question=t,n.koDisplayValue=i.observable(n.question.displayValue),n.question.koDisplayValue=n.koDisplayValue,i.computed(function(){n.koDisplayValue(n.question.displayValue)}),n}return r.a(t,e),t}(u.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r.a(t,e),t}(o.a);a.a.overrideClassCreator("expression",function(){return new c("")}),s.b.Instance.registerQuestion("expression",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(1)),a=n(3),s=n(48),u=n(7);n.d(t,"a",function(){return c});var l=function(e){function t(t){var n=e.call(this,t)||this;n.koState=i.observable("empty"),n.koHasValue=i.computed(function(){return"loaded"===n.koState()}),n.koData=i.computed(function(){return n.koHasValue()?n.question.previewValue:[]}),n.koInputTitle=i.observable();var r=n;n.question.koData=n.koData,n.question.koHasValue=n.koHasValue,n.question.koInputTitle=n.koInputTitle;var o=function(e){n.koState(e),n.koInputTitle(n.question.inputTitle)};return n.question.onStateChanged.add(function(e,t){o(t.state)}),n.question.dochange=function(e,t){var n=t.target||t.srcElement;r.onChange(n)},n.question.doclean=function(e,t){var r=t.target||t.srcElement,i=r.parentElement.querySelectorAll("input")[0];n.question.clear(),i.value=""},n.question.doremovefile=function(e,t){n.question.removeFile(e)},n}return r.a(t,e),t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],n=0;n<e.files.length;n++)t.push(e.files[n]);e.value="",this.question.loadFiles(t)}},t}(u.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r.a(t,e),t}(s.a);o.a.overrideClassCreator("file",function(){return new c("")}),a.b.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(7),s=n(49);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a.a(n),n}return r.a(t,e),t}(s.a);i.a.overrideClassCreator("html",function(){return new u("")}),o.b.Instance.registerQuestion("html",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(50),o=n(1),a=n(3),s=n(17);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,n}return r.a(t,e),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),new s.b(this)},t.prototype.getItemClass=function(e){var t=this.cssClasses.item+(0===this.colCount?" sv_q_imagepicker_inline":" sv-q-col-"+this.colCount);return this.multiSelect?this.value&&-1!==this.koValue().indexOf(e.value)&&(t+=" checked"):e.value&&e.value==this.koValue()&&(t+=" checked"),t},t}(i.a);o.a.overrideClassCreator("imagepicker",function(){return new u("")}),a.b.Instance.registerQuestion("imagepicker",function(e){return new u(e)})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(51)),a=n(7),s=n(1),u=n(3),l=n(4);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p});var c=function(e){function t(t,n,r,o){var a=e.call(this,t,n,r,o)||this;a.fullName=n,a.isValueUpdating=!1,a.koValue=i.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 r.a(t,e),t.prototype.onValueChanged=function(){this.isValueUpdating=!0,l.a.isTwoValueEquals(this.koValue(),this.value)||this.koValue(this.value),this.isValueUpdating=!1},t}(o.a),p=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new a.a(n),n.koVisibleRows=i.observable(n.visibleRows),n.koVisibleColumns=i.observable(n.visibleColumns),n}return r.a(t,e),t.prototype.onColumnsChanged=function(){e.prototype.onColumnsChanged.call(this),this.koVisibleRows(this.visibleRows),this.koVisibleColumns(this.visibleColumns)},t.prototype.onRowsChanged=function(){e.prototype.onRowsChanged.call(this),this.koVisibleRows(this.visibleRows),this.koVisibleColumns(this.visibleColumns)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onRowsChanged()},t.prototype.createMatrixRow=function(e,t,n){return new c(e,t,this,n)},t.prototype.getItemCss=function(e,t){var n=e.koValue()==t.value,r=this.hasCellText?this.cssClasses.cellTextSelected:"checked";return(this.hasCellText?this.koCss().cellText:this.koCss().label)+(n?" "+r:"")},t}(o.b);s.a.overrideClassCreator("matrix",function(){return new p("")}),u.b.Instance.registerQuestion("matrix",function(e){var t=new p(e);return t.rows=u.b.DefaultRows,t.columns=u.b.DefaultColums,t})},function(e,t,n){"use strict";var r=n(0),i=n(1),o=n(3),a=n(39),s=n(53),u=n(22);n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c});var l=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),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.addRow=function(){this.question.addRow()},t.prototype.removeRow=function(e){this.question.removeRowUI(e)},t}(a.b),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r.a(t,e),t}(s.a);i.a.overrideClassCreator("matrixdynamic",function(){return new c("")}),o.b.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,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(54)),a=n(7),s=n(40),u=n(1),l=n(3);n.d(t,"a",function(){return c}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return d});var c=function(e){function t(t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.call(this,t,n)||this;return r.name=t,r}return r.a(t,e),t.prototype.createEditor=function(e){return new s.a(e)},t}(o.a),p=function(e){function t(t){var n=e.call(this,t)||this;n.koRows=i.observableArray(n.question.getRows()),n.question.koRows=n.koRows,n.onColCountChanged();var r=n;return n.question.colCountChangedCallback=function(){r.onColCountChanged()},n}return r.a(t,e),t.prototype.onColCountChanged=function(){this.koRows(this.question.getRows())},t}(a.a),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new p(n),n}return r.a(t,e),t.prototype.createTextItem=function(e,t){return new c(e,t)},t}(o.b);u.a.overrideClassCreator("multipletextitem",function(){return new c("")}),u.a.overrideClassCreator("multipletext",function(){return new d("")}),l.b.Instance.registerQuestion("multipletext",function(e){var t=new d(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(5)),a=n(1),s=n(3),u=n(7),l=n(55),c=n(26);n.d(t,"a",function(){return d});var p=function(e){function t(t){var n=e.call(this,t)||this;n.koRecalc=i.observable(0);var r=n;return n.koAddPanelClick=function(){r.addPanel()},n.koRemovePanelClick=function(e){r.removePanel(e)},n.koPrevPanelClick=function(){r.question.goToPrevPanel()},n.koNextPanelClick=function(){r.question.goToNextPanel()},n.koCanAddPanel=i.pureComputed(function(){return r.koRecalc(),r.question.canAddPanel}),n.koCanRemovePanel=i.pureComputed(function(){return r.koRecalc(),r.question.canRemovePanel}),n.koIsPrevButton=i.pureComputed(function(){return r.koRecalc(),r.question.isPrevButtonShowing}),n.koIsNextButton=i.pureComputed(function(){return r.koRecalc(),r.question.isNextButtonShowing}),n.koIsRange=i.pureComputed(function(){return r.koRecalc(),r.question.isRangeShowing}),n.koPanel=i.pureComputed(function(){return r.koRecalc(),r.question.currentPanel}),n.koIsList=i.pureComputed(function(){return r.koRecalc(),r.question.isRenderModeList}),n.koIsProgressTop=i.pureComputed(function(){return r.koRecalc(),r.question.isProgressTopShowing}),n.koIsProgressBottom=i.pureComputed(function(){return r.koRecalc(),r.question.isProgressBottomShowing}),n.koRangeValue=i.observable(r.question.currentIndex),n.koRangeValue.subscribe(function(e){r.question.currentIndex=e}),n.koRangeMax=i.pureComputed(function(){return r.koRecalc(),r.question.panelCount-1}),n.question.koAddPanelClick=n.koAddPanelClick,n.question.koRemovePanelClick=n.koRemovePanelClick,n.question.koPrevPanelClick=n.koPrevPanelClick,n.question.koNextPanelClick=n.koNextPanelClick,n.question.koCanAddPanel=n.koCanAddPanel,n.question.koCanRemovePanel=n.koCanRemovePanel,n.question.koPanel=n.koPanel,n.question.koIsList=n.koIsList,n.question.koIsProgressTop=n.koIsProgressTop,n.question.koIsProgressBottom=n.koIsProgressBottom,n.question.koIsPrevButton=n.koIsPrevButton,n.question.koIsNextButton=n.koIsNextButton,n.question.koIsRange=n.koIsRange,n.question.koRangeValue=n.koRangeValue,n.question.koRangeMax=n.koRangeMax,n.question.koPanelAfterRender=function(e,t){r.panelAfterRender(e,t)},n.question.panelCountChangedCallback=function(){r.onPanelCountChanged()},n.question.renderModeChangedCallback=function(){r.onRenderModeChanged()},n.question.currentIndexChangedCallback=function(){r.onCurrentIndexChanged()},n}return r.a(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 n=o.b.GetFirstNonTextElement(e);this.question.survey.afterRenderPanel(t,n)}},t}(u.a),d=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new p(n),n}return r.a(t,e),t.prototype.createNewPanelObject=function(){return new c.c},t}(l.a);a.a.overrideClassCreator("paneldynamic",function(){return new d("")}),s.b.Instance.registerQuestion("paneldynamic",function(e){return new d(e)})},function(e,t,n){"use strict";var r=n(0),i=n(56),o=n(1),a=n(3),s=n(17);n.d(t,"a",function(){return u});var u=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new s.b(n),n}return r.a(t,e),t.prototype.getItemClass=function(e){var t=this.cssClasses.item;return this.hasColumns||(t+=0===this.colCount?" sv_q_radiogroup_inline":" sv-q-col-"+this.colCount),e.value===this.value&&(t+=" checked"),t},t}(i.a);o.a.overrideClassCreator("radiogroup",function(){return new u("")}),a.b.Instance.registerQuestion("radiogroup",function(e){var t=new u(e);return t.choices=a.b.DefaultChoices,t})},function(e,t,n){"use strict";var r=n(0),i=n(6),o=(n.n(i),n(7)),a=n(57),s=n(1),u=n(3);n.d(t,"a",function(){return c});var l=function(e){function t(t){var n=e.call(this,t)||this;n.koVisibleRateValues=i.observableArray(n.getValues()),n.question.koVisibleRateValues=n.koVisibleRateValues;var r=n;return n.koChange=function(e){r.question.value=e.itemValue},n.question.koChange=n.koChange,n.question.rateValuesChangedCallback=function(){r.onRateValuesChanged()},n.question.koGetCss=function(e){var t=r.question.cssClasses.item,i=r.question.cssClasses.selected;return n.question.value===e.value?t+" "+i:t},n}return r.a(t,e),t.prototype.onRateValuesChanged=function(){this.koVisibleRateValues(this.getValues())},t.prototype.getValues=function(){return this.question.visibleRateValues},t}(o.a),c=function(e){function t(t){var n=e.call(this,t)||this;return n.name=t,new l(n),n}return r.a(t,e),t}(a.a);s.a.overrideClassCreator("rating",function(){return new c("")}),u.b.Instance.registerQuestion("rating",function(e){return new c(e)})},function(e,t,n){"use strict";var r=n(2),i={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:"إزالة صف"};r.a.locales.ar=i,r.a.localeNames.ar="العربية"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Назад",pageNextText:"Напред",completeText:"Край",startSurveyText:"Начало",otherItemText:"Друго (опишете)",noneItemText:"Нито един",selectAllItemText:"Всички",progressText:"стр. {0}, общо стр. {1}",emptySurvey:"Анкетата не съдържа видими страници или въпроси.",completingSurvey:"Благодарим ви за участието в анкетата!",completingSurveyBefore:"Изглежда, че вие вече сте попълнили анкетата.",loadingSurvey:"Зареждане на анкетата...",optionsCaption:"Изберете...",value:"value",requiredError:"Моля, отговорете на следния въпрос.",requiredErrorInPanel:"Моля, отговорете поне на един от въпросите.",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:"Моля, въведете валиден адрес на електронна поща.",invalidExpression:"Изразът: {0} трябва да дава резултат 'true' (истина).",urlRequestError:"Заявката води до грешка '{0}'. {1}",urlGetChoicesError:"Заявката не връща данни или частта 'path' (път до търсения ресурс на сървъра) е неправилно зададена",exceedMaxSize:"Размерът на файла следва да не превишава {0}.",otherRequiredError:"Моля, въведете другата стойност.",uploadingFile:"Вашит файл се зарежда на сървъра. Моля, изчакайте няколко секунди и тогава опитвайте отново.",loadingFile:"Зареждане...",chooseFile:"Изберете файл(ове)...",confirmDelete:"Желаете ли да изтриете записа?",keyDuplicationError:"Стойността следва да бъде уникална.",addColumn:"Добавяне на колона",addRow:"Добавяне на ред",removeRow:"Премахване на ред",addPanel:"Добавяне на панел",removePanel:"Премахване на панел",choices_Item:"елемент",matrix_column:"Колона",matrix_row:"Ред",savingData:"Резултатите се запазват на сървъра...",savingDataError:"Поради възникнала грешка резултатите не можаха да бъдат запазени.",savingDataSuccess:"Резултатите бяха запазени успешно!",saveAgainButton:"Нов опит",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вие използвахте {0} на тази страница и общо {1}.",timerSpentPage:"Вие използвахте {0} на тази страница.",timerSpentSurvey:"Вие използвахте общо {0}.",timerLimitAll:"Вие изпозвахте {0} от {1} на тази страница и общо {2} от {3}.",timerLimitPage:"Вие използвахте {0} от {1} на тази страница.",timerLimitSurvey:"Вие използвахте общо {0} от {1}.",cleanCaption:"Изчистване",clearCaption:"Начално състояние",removeFileCaption:"Премахване на файла"};r.a.locales.bg=i,r.a.localeNames.bg="Bulgarian"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.ca=i,r.a.localeNames.ca="català"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.cz=i,r.a.localeNames.cz="čeština"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"Færdig",startSurveyText:"Start",otherItemText:"Valgfrit svar...",noneItemText:"Ingen",selectAllItemText:"Vælg alle",progressText:"Side {0} af {1}",emptySurvey:"Der er ingen synlige spørgsmål.",completingSurvey:"Mange tak for din besvarelse!",completingSurveyBefore:"Vores data viser at du allerede har gennemført dette spørgeskema.",loadingSurvey:"Spørgeskemaet hentes fra serveren...",optionsCaption:"Vælg...",value:"værdi",requiredError:"Besvar venligst spørgsmålet.",requiredErrorInPanel:"Besvar venligst mindst ét spørgsmål.",requiredInAllRowsError:"Besvar venligst spørgsmål i alle rækker.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Angiv mere end {0} og mindre end {1} tegn.",minRowCountError:"Udfyld mindst {0} rækker.",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.",invalidExpression:"Udtrykket: {0} skal returnere 'true'.",urlRequestError:"Forespørgslen returnerede fejlen '{0}'. {1}",urlGetChoicesError:"Forespørgslen returnerede ingen data eller 'path' parameteren er forkert",exceedMaxSize:"Filstørrelsen må ikke overstige {0}.",otherRequiredError:"Angiv en værdi for dit valgfrie svar.",uploadingFile:"Din fil bliver uploadet. Vent nogle sekunder og prøv eventuelt igen.",loadingFile:"Indlæser...",chooseFile:"Vælg fil(er)...",confirmDelete:"Vil du fjerne den?",keyDuplicationError:"Denne værdi skal være unik.",addColumn:"Tilføj kolonne",addRow:"Tilføj række",removeRow:"Fjern",addPanel:"Tilføj ny",removePanel:"Fjern",choices_Item:"valg",matrix_column:"Kolonne",matrix_row:"Række",savingData:"Resultaterne bliver gemt på serveren...",savingDataError:"Der opstod en fejl og vi kunne ikke gemme resultatet.",savingDataSuccess:"Resultatet blev gemt!",saveAgainButton:"Prøv igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har brugt {0} på denne side og {1} i alt.",timerSpentPage:"Du har brugt {0} på denne side.",timerSpentSurvey:"Du har brugt {0} i alt.",timerLimitAll:"Du har brugt {0} af {1} på denne side og {2} af {3} i alt.",timerLimitPage:"Du har brugt {0} af {1} på denne side.",timerLimitSurvey:"Du har brugt {0} af {1} i alt.",cleanCaption:"Rens",clearCaption:"Fjern",removeFileCaption:"Fjern denne fil"};r.a.locales.da=i,r.a.localeNames.da="dansk"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.nl=i,r.a.localeNames.nl="nederlands"},function(e,t,n){"use strict";var r=n(2),i={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)"'};r.a.locales.fi=i,r.a.localeNames.fi="suomalainen"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",startSurveyText:"Commencer",otherItemText:"Autre (préciser)",noneItemText:"Aucun",selectAllItemText:"Tout sélectionner",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.",invalidExpression:"L'expression: {0} doit retourner 'true'.",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.",loadingFile:"Chargement...",chooseFile:"Ajouter des fichiers...",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit être unique.",addColumn:"Ajouter une colonne",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:"Nettoyer",clearCaption:"Vider",removeFileCaption:"Enlever ce fichier"};r.a.locales.fr=i,r.a.localeNames.fr="français"},function(e,t,n){"use strict";var r=n(2),i={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:"გთხოვთ შეავსეთ ველი 'სხვა'"};r.a.locales.ka=i,r.a.localeNames.ka="ქართული"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Zurück",pageNextText:"Weiter",completeText:"Abschließen",startSurveyText:"Start",otherItemText:"Sonstiges (Beschreibung)",noneItemText:"Nichts",selectAllItemText:"Alle auswählen",progressText:"Seite {0} von {1}",emptySurvey:"Es ist keine Frage vorhanden.",completingSurvey:"Danke, dass Sie die Umfrage abgeschlossen haben!",completingSurveyBefore:"Wir haben festgestellt, dass Sie diese Umfrage bereits abgeschlossen haben.",loadingSurvey:"Fragebogen wird geladen...",optionsCaption:"Bitte auswählen...",value:"Wert",requiredError:"Bitte beantworten Sie diese Frage.",requiredErrorInPanel:"Bitte beantworten Sie mindestens eine Frage.",requiredInAllRowsError:"Bitte beantworten Sie alle Fragen.",numericError:"Der Wert muss eine Zahl sein.",textMinLength:"Bitte geben sie mindestens {0} Zeichen ein.",textMaxLength:"Bitte geben Sie nicht mehr als {0} Zeichen ein.",textMinMaxLength:"Bitte geben sie mindestens {0} und maximal {1} Zeichen ein.",minRowCountError:"Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.",minSelectError:"Bitte wählen Sie mindestens {0} Variante(n) aus.",maxSelectError:"Bitte wählen Sie nicht mehr als {0} Variante(n) aus.",numericMinMax:"'{0}' muss größer oder gleich {1} und kleiner oder gleich {2} sein",numericMin:"'{0}' muss größer oder gleich {1} sein",numericMax:"'{0}' muss kleiner oder gleich {1} sein",invalidEmail:"Bitte geben Sie eine gültige E-Mail-Adresse ein.",invalidExpression:"Der Ausdruck: {0} muss den Wert 'wahr'(true) zurückliefern.",urlRequestError:"Die Anfrage lieferte den folgenden Fehler zurück '{0}'. {1}",urlGetChoicesError:"Die Anfrage lieferte leere Daten zurück oder der Wert der Variable 'path' ist falsch",exceedMaxSize:"Die Dateigröße darf {0} nicht überschreiten.",otherRequiredError:"Bitte geben Sie den anderen Wert ein.",uploadingFile:"Ihre Datei wird hochgeladen. Bitte warten Sie ein paar Sekunden und versuchen Sie es dann erneut.",loadingFile:"Wird geladen...",chooseFile:"Datei(en) auswählen...",confirmDelete:"Wollen Sie den Eintrag löschen?",keyDuplicationError:"Dieser Wert muss eindeutig sein.",addColumn:"Spalte hinzufügen",addRow:"Zeile hinzufügen",removeRow:"Entfernen",addPanel:"Neu hinzufügen",removePanel:"Entfernen",choices_Item:"Element",matrix_column:"Spalte",matrix_row:"Zeile",savingData:"Die Ergebnisse werden auf dem Server gespeichert...",savingDataError:"Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.",savingDataSuccess:"Die Ergebnisse wurden gespeichert!",saveAgainButton:"Bitte versuchen Sie es erneut",timerMin:"Min.",timerSec:"Sek.",timerSpentAll:"Sie waren {0} auf dieser Seite und insgesamt {1}.",timerSpentPage:"Sie waren {0} auf dieser Seite.",timerSpentSurvey:"Sie haben insgesamt {0} benötigt.",timerLimitAll:"Sie waren {0} von {1} auf dieser Seite und insgesamt {2} von {3}.",timerLimitPage:"Sie waren {0} von {1} auf dieser Seite.",timerLimitSurvey:"Sie haben insgesamt {0} von {1} benötigt.",cleanCaption:"Sauber",clearCaption:"Leeren",removeFileCaption:"Datei löschen"};r.a.locales.de=i,r.a.localeNames.de="deutsch"},function(e,t,n){"use strict";var r=n(2),i={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:"Αφαίρεση"};r.a.locales.gr=i,r.a.localeNames.gr="ελληνικά"},function(e,t,n){"use strict";var r=n(2),i={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:'נא להזין נתונים בשדה "אחר"'};r.a.locales.he=i,r.a.localeNames.he="עברית"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.hu=i,r.a.localeNames.hu="magyar"},function(e,t,n){"use strict";var r=n(2),i={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öð"};r.a.locales.is=i,r.a.localeNames.is="íslenska"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Sebelumnya",pageNextText:"Selanjutnya",completeText:"Selesai",startSurveyText:"Mulai",otherItemText:"Lainnya (jelaskan)",noneItemText:"Tidak Ada",selectAllItemText:"Pilih Semua",progressText:"Halaman {0} dari {1}",emptySurvey:"Tidak ada halaman atau pertanyaan dalam survei.",completingSurvey:"Terima kasih telah menyelesaikan survei!",completingSurveyBefore:"Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.",loadingSurvey:"Memuat survei...",optionsCaption:"Pilih...",value:"nilai",requiredError:"Silahkan jawab pertanyaan berikut.",requiredErrorInPanel:"Silahkan jawab setidaknya satu petanyaan.",requiredInAllRowsError:"Silahkan jawab pertanyaan pada semua baris.",numericError:"Nilai harus berupa angka.",textMinLength:"Silahkan masukkan setidaknya {0} karakter.",textMaxLength:"Silahkan masukkan kurang {0} karakter.",textMinMaxLength:"PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.",minRowCountError:"Silahkan isi setidaknya {0} baris.",minSelectError:"Silahkan pilih setidaknya {0} varian.",maxSelectError:"Silahkan pilih tidak lebih dari {0} varian.",numericMinMax:"'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}",numericMin:"'{0}' harus sama dengan atau lebih dari {1}",numericMax:"'{0}' harus sama dengan atau kurang dari {1}",invalidEmail:"Silahkan masukkan e-mail yang benar.",invalidExpression:"Ekspresi: {0} harus mengembalikan 'benar'.",urlRequestError:"Permintaan mengembalikan kesalahan '{0}'. {1}",urlGetChoicesError:"Permintaan mengembalikan data kosong atau properti 'path' salah.",exceedMaxSize:"Ukuran berkas tidak boleh melebihi {0}.",otherRequiredError:"Silahkan masukkan nilai lainnnya.",uploadingFile:"Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.",loadingFile:"Memuat...",chooseFile:"Pilih berkas...",confirmDelete:"Apakah Anda ingin menghapus catatan?",keyDuplicationError:"Nilai harus unik.",addColumn:"Tambah kolom",addRow:"Tambah baris",removeRow:"Hapus",addPanel:"Tambah baru",removePanel:"Hapus",choices_Item:"item",matrix_column:"Kolom",matrix_row:"Baris",savingData:"Hasil sedang disimpan pada server...",savingDataError:"Kesalahan terjadi dan kami tidak dapat menyimpan hasil.",savingDataSuccess:"Hasil telah sukses disimpan!",saveAgainButton:"Coba lagi",timerMin:"menit",timerSec:"detik",timerSpentAll:"Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.",timerSpentPage:"YAnda telah menghabiskan {0} pada halaman ini.",timerSpentSurvey:"Anda telah menghabiskan {0} secara keseluruhan.",timerLimitAll:"Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.",timerLimitPage:"Anda telah menghabiskan {0} dari {1} pada halaman ini.",timerLimitSurvey:"Anda telah menghabiskan {0} dari {1} secara keseluruhan.",cleanCaption:"Bersihkan",clearCaption:"Bersihkan",removeFileCaption:"Hapus berkas ini"};r.a.locales.id=i,r.a.localeNames.id="Bahasa Indonesia"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.it=i,r.a.localeNames.it="italiano"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"前の",pageNextText:"次へ",completeText:"完了",startSurveyText:"スタート",otherItemText:"その他(説明)",noneItemText:"なし",selectAllItemText:"すべて選択",progressText:"{0}/{1}頁",emptySurvey:"この調査に表示できるページや質問はありません",completingSurvey:"調査を完了してくれてありがとうございました",loadingSurvey:"調査をダウンロード中",optionsCaption:"選択",requiredError:"質問にお答え下さい",numericError:"数字でご記入下さい",textMinLength:"{0} 文字以上で入力して下さい",minRowCountError:"{0}行以上で入力して下さい",minSelectError:"{0}種類以上を選択して下さい",numericMin:"'{0}' は同等か{1}より大きくなければなりません",numericMax:"'{0}' は同等か{1}より小さくなければなりません",invalidEmail:"有効なメールアドレスをご記入下さい",exceedMaxSize:"ファイルのサイズは{0}を超えてはいけません",uploadingFile:"ファイルをアップロード中です。しばらくしてから再度お試し下さい",loadingFile:"読み込み中",chooseFile:"ファイルを選択",cleanCaption:"削除",clearCaption:"空白",removeFileCaption:"このファイルを削除"};r.a.locales.ja=i,r.a.localeNames.ja="日本語"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"이전",pageNextText:"다음",completeText:"완료",startSurveyText:"시작",otherItemText:"기타(설명)",progressText:"페이지 {1} 중 {0}",emptySurvey:"설문지에 보여지는 페이지나 질문이 없습니다",completingSurvey:"설문 조사를 완료해 주셔서 감사합니다!",completingSurveyBefore:"기록에 따르면 이미 설문 조사를 마치셨습니다.",loadingSurvey:"설문조사가 로드중입니다...",optionsCaption:"선택하십시오...",value:"값",requiredError:"질문에 답하시오.",requiredErrorInPanel:"하나 이상의 질문에 답하십시오.",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:"올바른 이메일 주소를 입력하십시오.",invalidExpression:"표현식: {0}은 '참'이어야 합니다.",urlRequestError:"'{0}'으로 잘못된 요청입니다. {1}",urlGetChoicesError:"비어있는 데이터를 요청했거나 잘못된 속성의 경로입니다.",exceedMaxSize:"파일 크기가 {0}을 초과 할 수 없습니다.",otherRequiredError:"다른 질문을 작성하십시오.",uploadingFile:"파일 업로드 중입니다. 잠시 후 다시 시도하십시오.",loadingFile:"로드 중...",chooseFile:"파일 선택...",confirmDelete:"기록을 삭제하시겠습니까?",keyDuplicationError:" 이 값은 고유해야합니다.",addColumn:"열 추가",addRow:"행 추가",removeRow:"제거",addPanel:"새롭게 추가",removePanel:"제거",choices_Item:"항목",matrix_column:"열",matrix_row:"행",savingData:"결과가 서버에 저장 중입니다...",savingDataError:"오류가 발생하여 결과를 저장할 수 없습니다.",savingDataSuccess:"결과가 성공적으로 저장되었습니다!",saveAgainButton:"다시 시도하십시오",timerMin:"분",timerSec:"초",timerSpentAll:"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.",timerSpentPage:"현재 페이지에서 {0]이 걸렸습니다",timerSpentSurvey:"총 {0}이 걸렸습니다.",timerLimitAll:"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.",timerLimitPage:"현재 페이지에서 {0}/{1}이 걸렸습니다.",timerLimitSurvey:"총 {0}/{1}이 걸렸습니다.",cleanCaption:"닦기",clearCaption:"지우기"};r.a.locales.ko=i,r.a.localeNames.ko="한국어"},function(e,t,n){"use strict";var r=n(2),i={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"'};r.a.locales.lv=i,r.a.localeNames.lv="latviešu"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Atgal",pageNextText:"Toliau",completeText:"Baigti",startSurveyText:"Pradėti",otherItemText:"Kita (įvesti)",noneItemText:"Nėra",selectAllItemText:"Pasirinkti visus",progressText:"Puslapis {0} iš {1}",emptySurvey:"Apklausoje nėra matomo puslapio ar klausimo.",completingSurvey:"Dėkojame už dalyvavimą apklausoje!",completingSurveyBefore:"Mūsų įrašai rodo, kad jau atlikote šią apklausą.",loadingSurvey:"Prašome palaukti...",optionsCaption:"Pasirinkti...",value:"reikšmė",requiredError:"Būtina atsakyti į šį klausimą.",requiredErrorInPanel:"Būtina atsakyti bent į vieną klausimą.",requiredInAllRowsError:"Prašome atsakyti į klausimus visose eilutėse.",numericError:"Turi būti skaičiai.",textMinLength:"Prašome suvesti bent {0} simbolius.",textMaxLength:"Prašome suvesti mažiau nei {0} simbolių.",textMinMaxLength:"Prašome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.",minRowCountError:"Prašome suvesti ne mažiau nei {0} eilučių.",minSelectError:"Prašome pasirinkti bent {0} variantų.",maxSelectError:"Pasirinkite ne daugiau kaip {0} variantus.",numericMinMax:"'{0}' turi būti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}",numericMin:"'{0}' turėtų būti lygus arba didesnis nei {1}",numericMax:"'{0}' turėtų būti lygus ar mažesnis už {1}",invalidEmail:"Prašome įvesti galiojantį elektroninio pašto adresą.",invalidExpression:"Reikšmė: {0} turi grąžinti 'true'.",urlRequestError:"Užklausa grąžino klaidą'{0}'. {1}",urlGetChoicesError:"Užklausa grąžino tuščius duomenis arba 'path' savybė yra neteisinga",exceedMaxSize:"Failo dydis neturi viršyti {0}.",otherRequiredError:"Įveskite kitą reikšmę.",uploadingFile:"Jūsų failas yra keliamas. Palaukite keletą sekundžių ir bandykite dar kartą.",loadingFile:"Prašome palaukti...",chooseFile:"Pasirinkti failą(us)...",confirmDelete:"Ar norite ištrinti įrašą?",keyDuplicationError:"Ši reikšmė turėtų būti unikali.",addColumn:"Pridėti stulpelį",addRow:"Pridėti eilutę",removeRow:"Ištrinti",addPanel:"Pridėti naują",removePanel:"Ištrinti",choices_Item:"elementas",matrix_column:"Stulpelis",matrix_row:"Eilutė",savingData:"Rezultatai saugomi serveryje...",savingDataError:"Įvyko klaida ir mes negalėjome išsaugoti rezultatų.",savingDataSuccess:"Rezultatai buvo išsaugoti sėkmingai!",saveAgainButton:"Bandyti dar kartą",timerMin:"min",timerSec:"sek",timerSpentAll:"Praleidote {0} šiame puslapyje ir {1} iš viso.",timerSpentPage:"Praleidote {0} šiame puslapyje.",timerSpentSurvey:"Praleidote {0} iš viso.",timerLimitAll:"Praleidote {0} iš {1} šiame puslapyje ir {2} iš {3} iš viso.",timerLimitPage:"Praleidote {0} iš {1} šiame puslapyje.",timerLimitSurvey:"Praleidote {0} iš {1} iš viso.",cleanCaption:"Išvalyti",clearCaption:"Valyti",removeFileCaption:"Ištrinti šį failą"};r.a.locales.lt=i,r.a.localeNames.lt="Lietuvių"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.no=i,r.a.localeNames.no="norsk"},function(e,t,n){"use strict";var r=n(2),i={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:"مجدد تلاش کنید"};r.a.locales.fa=i,r.a.localeNames.fa="فارْسِى"},function(e,t,n){"use strict";var r=n(2),i={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ń",addPanel:"Dodaj panel",removePanel:"Usuń",choices_Item:"element",matrix_column:"Kolumna",matrix_row:"Wiersz",savingData:"Zapisuję wyniki ankiety na serwerze...",savingDataError:"Wystąpił błąd i wyniki nie mogły zostać zapisane.",savingDataSuccess:"Wyniki zostały poprawnie zapisane!",saveAgainButton:"Spróbuj ponownie",timerMin:"min",timerSec:"sek",timerSpentAll:"Spędziłeś {0} na tej stronie a w sumie {1}.",timerSpentPage:"Spędziłeś {0} na tej stronie.",timerSpentSurvey:"Spędziłeś w smumie {0}.",timerLimitAll:"Spędziłeś {0} z {1} na tej stronie a w sumie {2} z {3}.",timerLimitPage:"Spędziłeś {0} z {1} na tej stronie",timerLimitSurvey:"Spędziłeś {0} z {1}.",cleanCaption:"Wyczyść"};r.a.locales.pl=i,r.a.localeNames.pl="polski"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",startSurveyText:"Começar",otherItemText:"Outros (descrever)",noneItemText:"Nenhum",selectAllItemText:"Selecionar Todos",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.",requiredErrorInPanel:"Por favor, responda pelo menos uma 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.",invalidExpression:"A expressão: {0} deve retornar 'verdadeiro'.",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.",loadingFile:"Carregando...",chooseFile:"Selecione o(s) arquivo(s)...",confirmDelete:"Tem certeza que deseja deletar?",keyDuplicationError:"Esse valor deve ser único.",addColumn:"Adicionar coluna",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",timerMin:"min",timerSec:"seg",timerSpentAll:"Você gastou {0} nesta página e {1} no total.",timerSpentPage:"Você gastou {0} nesta página.",timerSpentSurvey:"Você gastou {0} no total.",timerLimitAll:"Você gastou {0} de {1} nesta página e {2} de {3} no total.",timerLimitPage:"Você gastou {0} de {1} nesta página.",timerLimitSurvey:"Você gastou {0} de {1} no total.",cleanCaption:"Limpar",clearCaption:"Limpar",removeFileCaption:"Remover este arquivo"};r.a.locales.pt=i,r.a.localeNames.pt="português"},function(e,t,n){"use strict";var r=n(2),i={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."};r.a.locales.ro=i,r.a.localeNames.ro="română"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",startSurveyText:"Начать",otherItemText:"Другое (пожалуйста, опишите)",noneItemText:"Нет",selectAllItemText:"Выбрать всё",progressText:"Страница {0} из {1}",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",completingSurveyBefore:"Вы уже проходили этот опрос.",loadingSurvey:"Загрузка с сервера...",optionsCaption:"Выбрать...",value:"значение",requiredError:"Пожалуйста, ответьте на вопрос.",requiredErrorInPanel:"Пожалуйста, ответьте по крайней мере на один вопрос.",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:"Пожалуйста, введите действительный адрес электронной почты.",invalidExpression:"Выражение {0} должно возвращать 'true'.",urlRequestError:"Запрос вернул ошибку '{0}'. {1}",urlGetChoicesError:"Ответ на запрос пришел пустой или свойство 'path' указано неверно",exceedMaxSize:"Размер файла не должен превышать {0}.",otherRequiredError:"Пожалуйста, введите данные в поле 'Другое'",uploadingFile:"Ваш файл загружается. Подождите несколько секунд и попробуйте снова.",loadingFile:"Загрузка...",chooseFile:"Выберите файл(ы)...",confirmDelete:"Вы точно хотите удалить запись?",keyDuplicationError:"Это значение должно быть уникальным.",addColumn:"Добавить колонку",addRow:"Добавить строку",removeRow:"Удалить",addPanel:"Добавить новую",removePanel:"Удалить",choices_Item:"Вариант",matrix_column:"Колонка",matrix_row:"Строка",savingData:"Результаты сохраняются на сервер...",savingDataError:"Произошла ошибка, результат не был сохранён.",savingDataSuccess:"Результат успешно сохранён!",saveAgainButton:"Попробовать снова",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вы потратили {0} на этой странице и {1} всего.",timerSpentPage:"Вы потратили {0} на этой странице.",timerSpentSurvey:"Вы потратили {0} в течение теста.",timerLimitAll:"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.",timerLimitPage:"Вы потратили {0} из {1} на этой странице.",timerLimitSurvey:"Вы потратили {0} из {1} для всего теста.",cleanCaption:"Очистить",clearCaption:"Очистить",removeFileCaption:"Удалить файл"};r.a.locales.ru=i,r.a.localeNames.ru="русский"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",startSurveyText:"开始问卷",otherItemText:"填写其他答案",noneItemText:"无",selectAllItemText:"选择全部",progressText:"第 {0} 页, 共 {1} 页",questionsProgressText:"第 {0}/{1} 题",emptySurvey:"问卷中没有问题或页面",completingSurveyBefore:"你已完成问卷.",completingSurvey:"感谢您的参与!",loadingSurvey:"问卷正在加载中...",optionsCaption:"请选择...",value:"值",requiredError:"请填写此问题",requiredErrorInPanel:"至少回答一题.",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 地址",invalidExpression:"公式: {0} 无效.",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",loadingFile:"加载...",chooseFile:"选择文件...",noFileChosen:"未选择文件",confirmDelete:"删除记录?",keyDuplicationError:"主键不能重复",addColumn:"添加列",addRow:"添加行",removeRow:"删除答案",addPanel:"新添",removePanel:"删除",choices_Item:"选项",matrix_column:"列",matrix_row:"行",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误,结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试",timerMin:"分",timerSec:"秒",timerSpentAll:"本页用时 {0} 总计用时{1} .",timerSpentPage:"本页用时{0} .",timerSpentSurvey:"总计用时 {0} .",timerLimitAll:"本页用时 {0} 共 {1} 总计用时 {2} 共 {3} .",timerLimitPage:"本页用时 {0} 共 {1} .",timerLimitSurvey:"总计用时 {0} 共 {1}.",cleanCaption:"清理",clearCaption:"清除",removeFileCaption:"移除文件"};r.a.locales["zh-cn"]=i,r.a.localeNames["zh-cn"]="简体中文"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.es=i,r.a.localeNames.es="español"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.sv=i,r.a.localeNames.sv="svenska"},function(e,t,n){"use strict";var r=n(2),i={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:"請重試"};r.a.locales["zh-tw"]=i,r.a.localeNames["zh-tw"]="繁體中文"},function(e,t,n){"use strict";var r=n(2),i={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"};r.a.locales.tr=i,r.a.localeNames.tr="türkçe"},function(e,t,n){"use strict";var r=n(2),i={pagePrevText:"Назад",pageNextText:"Далі",completeText:"Завершити",startSurveyText:"Почати",otherItemText:"Інше (будь ласка, опишіть)",noneItemText:"Жоден",selectAllItemText:"Вибрати все",progressText:"Сторінка {0} з {1}",questionsProgressText:"Відповіли на {0}/{1} питань",emptySurvey:"Немає жодного питання.",completingSurvey:"Дякуємо Вам за заповнення анкети!",completingSurveyBefore:"Ви вже проходили це опитування.",loadingSurvey:"Завантаження опитування...",optionsCaption:"Вибрати...",value:"значення",requiredError:"Будь ласка, дайте відповідь.",requiredErrorInPanel:"Будь ласка, дайте відповідь хоча б на одне питання.",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:"Будь ласка, введіть дійсну адресу електронної пошти.",invalidExpression:"Вираз {0} повинен повертати 'true'.",urlRequestError:"Запит повернув помилку '{0}'. {1}",urlGetChoicesError:"Відповідь на запит повернулась порожньою або властивіть 'path' вказано невірно",exceedMaxSize:"Розмір файлу не повинен перевищувати {0}.",otherRequiredError:"Будь ласка, введіть дані в поле 'Інше'",uploadingFile:"Ваш файл завантажується. Зачекайте декілька секунд і спробуйте знову.",loadingFile:"Завантаження...",chooseFile:"Виберіть файл(и)...",noFileChosen:"Файл не вибрано",confirmDelete:"Ви хочете видалити запис?",keyDuplicationError:"Це значення повинно бути унікальним.",addColumn:"Додати колонку",addRow:"Додати рядок",removeRow:"Видалити",addPanel:"Додати нову",removePanel:"Видалити",choices_Item:"Варіант",matrix_column:"Колонка",matrix_row:"Рядок",savingData:"Результати зберігаються на сервер...",savingDataError:"Відбулася помилка, результат не був збережений.",savingDataSuccess:"Резвультат успішно збережений!",saveAgainButton:"Спробувати знову",timerMin:"хв",timerSec:"сек",timerSpentAll:"Ви витратили {0} на цій сторінці і {1} загалом.",timerSpentPage:"Ви витратили {0} на цій сторінці.",timerSpentSurvey:"Ви витратили {0} протягом тесту.",timerLimitAll:"Ви витратили {0} з {1} на цій сторінці і {2} з {3} для всього тесту.",timerLimitPage:"Ви витратили {0} з {1} на цій сторінці.",timerLimitSurvey:"Ви витратили {0} з {1} для всього тесту.",cleanCaption:"Очистити",clearCaption:"Очистити",removeFileCaption:"Видалити файл"};r.a.locales.ua=i,r.a.localeNames.ua="українська"},function(e,t,n){"use strict";var r=n(0),i=n(4),o=n(5),a=n(1),s=n(10),u=n(24),l=n(15);n.d(t,"g",function(){return c}),n.d(t,"a",function(){return p}),n.d(t,"d",function(){return d}),n.d(t,"b",function(){return h}),n.d(t,"c",function(){return f}),n.d(t,"f",function(){return m}),n.d(t,"e",function(){return g});var c=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var n=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],function(){n.oldPropertiesChanged()}),t.registerFunctionOnPropertyValueChanged("expression",function(){n.onExpressionChanged()}),t}return r.a(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"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},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.checkExpression=function(e,t,n){void 0===n&&(n=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,n)},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){this.conditionRunner.run(e,t)?this.onSuccess(e,t):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?i.a.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+u.h.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=0;t<this.usedNames.length;t++)if(e.hasOwnProperty(this.usedNames[t]))return!0;return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;if(e||(e=this.buildExpression()),e){this.conditionRunner=new s.a(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables();for(var t=new l.a,n=0;n<this.usedNames.length;n++)this.usedNames[n]=t.getFirstName(this.usedNames[n])}}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!0,configurable:!0}),t.operatorsValue=null,t}(o.c),p=function(e){function t(){var t=e.call(this)||this;return t.owner=null,t}return r.a(t,e),t.prototype.setOwner=function(e){this.owner=e},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!0,configurable:!0}),t}(c),d=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return r.a(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){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),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(p),h=function(e){function t(){return e.call(this)||this}return r.a(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(e,t){this.owner&&this.owner.setCompleted()},t}(p),f=function(e){function t(){return e.call(this)||this}return r.a(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(p),m=function(e){function t(){return e.call(this)||this}return r.a(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},t.prototype.onSuccess=function(e,t){if(this.owner&&this.runExpression){var n=void 0,r=new s.b(this.runExpression);r.canRun&&(n=r.run(e,t)),this.setToName&&void 0===n||this.owner.setTriggerValue(this.setToName,n,!1)}},t}(p),g=function(e){function t(){return e.call(this)||this}return r.a(t,e),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(p);a.a.addClass("trigger",[{name:"operator",default:"equal"},"value","expression:condition"]),a.a.addClass("surveytrigger",["name"],null,"trigger"),a.a.addClass("visibletrigger",["pages","questions"],function(){return new d},"surveytrigger"),a.a.addClass("completetrigger",[],function(){return new h},"surveytrigger"),a.a.addClass("setvaluetrigger",["!setToName","setValue","isVariable:boolean"],function(){return new f},"surveytrigger"),a.a.addClass("copyvaluetrigger",["!setToName","!fromName"],function(){return new g},"surveytrigger"),a.a.addClass("runExpressiontrigger",["setToName","runExpression"],function(){return new m},"surveytrigger")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=(n.n(r),n(62));n.d(t,"defaultStandardCss",function(){return i.a}),n.d(t,"defaultBootstrapCss",function(){return i.b}),n.d(t,"defaultBootstrapMaterialCss",function(){return i.c}),n.d(t,"Survey",function(){return i.d}),n.d(t,"Model",function(){return i.e}),n.d(t,"ImplementorBase",function(){return i.f}),n.d(t,"QuestionRow",function(){return i.g}),n.d(t,"Page",function(){return i.h}),n.d(t,"Panel",function(){return i.i}),n.d(t,"FlowPanel",function(){return i.j}),n.d(t,"QuestionImplementor",function(){return i.k}),n.d(t,"QuestionSelectBaseImplementor",function(){return i.l}),n.d(t,"QuestionCheckboxBaseImplementor",function(){return i.m}),n.d(t,"QuestionCheckbox",function(){return i.n}),n.d(t,"QuestionComment",function(){return i.o}),n.d(t,"QuestionDropdown",function(){return i.p}),n.d(t,"QuestionFile",function(){return i.q}),n.d(t,"QuestionHtml",function(){return i.r}),n.d(t,"MatrixRow",function(){return i.s}),n.d(t,"QuestionMatrix",function(){return i.t}),n.d(t,"QuestionMatrixDropdown",function(){return i.u}),n.d(t,"QuestionMatrixDynamicImplementor",function(){return i.v}),n.d(t,"QuestionMatrixDynamic",function(){return i.w}),n.d(t,"QuestionPanelDynamic",function(){return i.x}),n.d(t,"MultipleTextItem",function(){return i.y}),n.d(t,"QuestionMultipleTextImplementor",function(){return i.z}),n.d(t,"QuestionMultipleText",function(){return i.A}),n.d(t,"QuestionRadiogroup",function(){return i.B}),n.d(t,"QuestionRating",function(){return i.C}),n.d(t,"QuestionText",function(){return i.D}),n.d(t,"QuestionBoolean",function(){return i.E}),n.d(t,"QuestionEmpty",function(){return i.F}),n.d(t,"QuestionExpression",function(){return i.G}),n.d(t,"QuestionImagePicker",function(){return i.H}),n.d(t,"SurveyWindow",function(){return i.I}),n.d(t,"SurveyTemplateText",function(){return i.J}),n.d(t,"Version",function(){return i.K}),n.d(t,"settings",function(){return i.L}),n.d(t,"Helpers",function(){return i.M}),n.d(t,"AnswerCountValidator",function(){return i.N}),n.d(t,"EmailValidator",function(){return i.O}),n.d(t,"NumericValidator",function(){return i.P}),n.d(t,"RegexValidator",function(){return i.Q}),n.d(t,"SurveyValidator",function(){return i.R}),n.d(t,"TextValidator",function(){return i.S}),n.d(t,"ValidatorResult",function(){return i.T}),n.d(t,"ValidatorRunner",function(){return i.U}),n.d(t,"ItemValue",function(){return i.V}),n.d(t,"Base",function(){return i.W}),n.d(t,"Event",function(){return i.X}),n.d(t,"SurveyError",function(){return i.Y}),n.d(t,"SurveyElement",function(){return i.Z}),n.d(t,"CustomError",function(){return i._0}),n.d(t,"AnswerRequiredError",function(){return i._1}),n.d(t,"OneAnswerRequiredError",function(){return i._2}),n.d(t,"RequreNumericError",function(){return i._3}),n.d(t,"ExceedSizeError",function(){return i._4}),n.d(t,"LocalizableString",function(){return i._5}),n.d(t,"HtmlConditionItem",function(){return i._6}),n.d(t,"ChoicesRestfull",function(){return i._7}),n.d(t,"FunctionFactory",function(){return i._8}),n.d(t,"ConditionRunner",function(){return i._9}),n.d(t,"ExpressionRunner",function(){return i._10}),n.d(t,"Operand",function(){return i._11}),n.d(t,"ConditionsParser",function(){return i._12}),n.d(t,"ProcessValue",function(){return i._13}),n.d(t,"JsonError",function(){return i._14}),n.d(t,"JsonIncorrectTypeError",function(){return i._15}),n.d(t,"JsonMetadata",function(){return i._16}),n.d(t,"JsonMetadataClass",function(){return i._17}),n.d(t,"JsonMissingTypeError",function(){return i._18}),n.d(t,"JsonMissingTypeErrorBase",function(){return i._19}),n.d(t,"JsonObject",function(){return i._20}),n.d(t,"JsonObjectProperty",function(){return i._21}),n.d(t,"JsonRequiredPropertyError",function(){return i._22}),n.d(t,"JsonUnknownPropertyError",function(){return i._23}),n.d(t,"Serializer",function(){return i._24}),n.d(t,"MatrixDropdownCell",function(){return i._25}),n.d(t,"MatrixDropdownColumn",function(){return i._26}),n.d(t,"matrixDropdownColumnTypes",function(){return i._27}),n.d(t,"MatrixDropdownRowModelBase",function(){return i._28}),n.d(t,"QuestionMatrixDropdownModelBase",function(){return i._29}),n.d(t,"MatrixDropdownRowModel",function(){return i._30}),n.d(t,"QuestionMatrixDropdownModel",function(){return i._31}),n.d(t,"MatrixDynamicRowModel",function(){return i._32}),n.d(t,"QuestionMatrixDynamicModel",function(){return i._33}),n.d(t,"MatrixRowModel",function(){return i._34}),n.d(t,"MartrixCells",function(){return i._35}),n.d(t,"QuestionMatrixModel",function(){return i._36}),n.d(t,"MultipleTextItemModel",function(){return i._37}),n.d(t,"QuestionMultipleTextModel",function(){return i._38}),n.d(t,"PanelModel",function(){return i._39}),n.d(t,"PanelModelBase",function(){return i._40}),n.d(t,"QuestionRowModel",function(){return i._41}),n.d(t,"FlowPanelModel",function(){return i._42}),n.d(t,"PageModel",function(){return i._43}),n.d(t,"Question",function(){return i._44}),n.d(t,"QuestionNonValue",function(){return i._45}),n.d(t,"QuestionEmptyModel",function(){return i._46}),n.d(t,"QuestionCheckboxBase",function(){return i._47}),n.d(t,"QuestionSelectBase",function(){return i._48}),n.d(t,"QuestionCheckboxModel",function(){return i._49}),n.d(t,"QuestionCommentModel",function(){return i._50}),n.d(t,"QuestionDropdownModel",function(){return i._51}),n.d(t,"QuestionFactory",function(){return i._52}),n.d(t,"ElementFactory",function(){return i._53}),n.d(t,"QuestionFileModel",function(){return i._54}),n.d(t,"QuestionHtmlModel",function(){return i._55}),n.d(t,"QuestionRadiogroupModel",function(){return i._56}),n.d(t,"QuestionRatingModel",function(){return i._57}),n.d(t,"QuestionExpressionModel",function(){return i._58}),n.d(t,"QuestionTextModel",function(){return i._59}),n.d(t,"QuestionBooleanModel",function(){return i._60}),n.d(t,"QuestionImagePickerModel",function(){return i._61}),n.d(t,"QuestionPanelDynamicModel",function(){return i._62}),n.d(t,"QuestionPanelDynamicItem",function(){return i._63}),n.d(t,"SurveyTimer",function(){return i._64}),n.d(t,"SurveyModel",function(){return i._65}),n.d(t,"SurveyTrigger",function(){return i._66}),n.d(t,"SurveyTriggerComplete",function(){return i._67}),n.d(t,"SurveyTriggerSetValue",function(){return i._68}),n.d(t,"SurveyTriggerVisible",function(){return i._69}),n.d(t,"SurveyTriggerCopyValue",function(){return i._70}),n.d(t,"SurveyTriggerRunExpression",function(){return i._71}),n.d(t,"Trigger",function(){return i._72}),n.d(t,"SurveyWindowModel",function(){return i._73}),n.d(t,"TextPreProcessor",function(){return i._74}),n.d(t,"dxSurveyService",function(){return i._75}),n.d(t,"englishStrings",function(){return i._76}),n.d(t,"surveyLocalization",function(){return i._77}),n.d(t,"surveyStrings",function(){return i._78}),n.d(t,"QuestionCustomWidget",function(){return i._79}),n.d(t,"CustomWidgetCollection",function(){return i._80}),n.d(t,"StylesManager",function(){return i._81}),n.d(t,"__assign",function(){return i._82}),n.d(t,"__extends",function(){return i._83}),n.d(t,"__decorate",function(){return i._84});var o=n(19),a=n(18),s=n(33),u=n(64),l=n.n(u),c=n(63);l.a.fn.extend({Survey:function(e){return this.each(function(){var t=e.model;n.i(c.a)(t,e),t.render(this)})},SurveyWindow:function(e){return this.each(function(){var t=e.model;n.i(c.a)(t,e);var r=new s.a(null,t);void 0!==e.expanded&&(r.isExpanded=e.expanded),void 0!==e.isExpanded&&(r.isExpanded=e.isExpanded),void 0!==e.closeOnCompleteTimeout&&(r.closeOnCompleteTimeout=e.closeOnCompleteTimeout),r.show()})}}),o.a.platform="jquery",n.i(a.a)(r,o.a.platform)}])});