PageSourceSearch

https://gus-info.ru/js/7425.js

js gus-info.ru collected 2026-10-02 04:08:19 UTC 36,956 bytes, 2 lines download raw bytes

1/*! For license information please see 7425.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[7425],{7292(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}(e,c()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(c())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&s(o,n.prototype),o}(e,arguments,f(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},u(e)}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e){var t="0"+e;return t.substr(t.length-2)}n.d(t,{B:()=>g});var m={d:function(e){return h(e.getDate())},D:function(e){return new Intl.DateTimeFormat(e.lang,{weekday:"short"}).format(e)},j:function(e){return e.getDate()},l:function(e){return new Intl.DateTimeFormat(e.lang,{weekday:"long"}).format(e)},N:function(e){return(d>d>0?d-1:6)(e.getDay())+1},w:function(e){return e.getDay()},z:function(e){return new Date(e.getFullYear(),0,0),Math.floor((e-start)/1e3*60*60*24)},F:function(e){return new Intl.DateTimeFormat(e.lang,{month:"long"}).format(e)},m:function(e){return new Intl.DateTimeFormat(e.lang,{month:"2-digit"}).format(e)},M:function(e){return new Intl.DateTimeFormat(e.lang,{month:"short"}).format(e)},n:function(e){return e.getMonth()+1},t:function(e){return new Date(e.getFullYear(),e.getMonth(),0).getDate()},Y:function(e){return e.getFullYear()},y:function(e){return new Intl.DateTimeFormat({year:"2-digit"}).format(e)},a:function(e){return e.getHours()<12?"am":"pm"},A:function(e){return e.getHours()<12?"AM":"PM"},g:function(e){return e.getHours()<12?e.getHours():e.getHours()-12},G:function(e){return e.getHours()},h:function(e){return h(e.getHours()<12?e.getHours():e.getHours()-12)},H:function(e){return h(e.getHours())},i:function(e){return h(e.getMinutes())},s:function(e){return h(e.getSeconds())}},p=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ru-Ru";return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n&&(e=a(this,t,[n]))||(e=a(this,t)),e.lang=r,l(e)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,r=[{key:"format",value:function(e){var t=this,n=e.split(""),r=Object.keys(m);return n.forEach(function(e,o){r.includes(e)&&(n[o]=m[e](t))}),n.join("")}},{key:"time",value:function(){return"".concat(h(this.getHours()),":").concat(h(this.getMinutes()))}},{key:"fullTime",value:function(){return"".concat(h(this.getHours()),":").concat(h(this.getMinutes()),":").concat(h(this.getSeconds()))}},{key:"gt",value:function(e){return this.getTime()>new Date(e).getTime()}},{key:"addDays",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.setDate(this.getDate()+e),this}}],r&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(u(Date)),g=function(){return new p(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)}},5623(e,t,n){"use strict";function r(){var e,t,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function l(n,r,i,a){var l=r&&r.prototype instanceof c?r:c,s=Object.create(l.prototype);return o(s,"_invoke",function(n,r,o){var i,a,l,c=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,l=e,d.n=n,u}};function h(n,r){for(a=n,l=r,t=0;!f&&c&&!o&&t<s.length;t++){var o,i=s[t],h=d.p,m=i[2];n>3?(o=m===r)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(a=0,d.v=r,d.n=i[1]):h<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,d.n=m,a=0))}if(o||n>1)return u;throw f=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,m),a=s,l=m;(t=a<2?e:l)||!f;){i||(a?a<3?(a>1&&(d.n=-1),h(a,l)):d.n=l:d.v=l);try{if(c=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?l:n.call(r,d))!==u)break}catch(t){i=e,a=1,l=t}finally{c=1}}return{value:t,done:f}}}(n,i,a),!0),s}var u={};function c(){}function s(){}function f(){}t=Object.getPrototypeOf;var d=[][i]?t(t([][i]())):(o(t={},i,function(){return this}),t),h=f.prototype=c.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,o(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e}return s.prototype=f,o(h,"constructor",f),o(f,"constructor",s),s.displayName="GeneratorFunction",o(f,a,"GeneratorFunction"),o(h),o(h,a,"Generator"),o(h,i,function(){return this}),o(h,"toString",function(){return"[object Generator]"}),(r=function(){return{w:l,m}})()}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},o(e,t,n,r)}function i(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}n.d(t,{_:()=>d});var a,l=((a=document.createElement("section")).classList.add("gui-toast-group"),document.firstElementChild.insertBefore(a,document.body),a),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{hue:0,saturation:"0%",lightness:"90%"},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"bottom-right";l.getAttribute("data-position")!=o&&l.setAttribute("data-position",o);var a=function(e){var t=document.createElement("output");return t.innerHTML=e,t.classList.add("gui-toast"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t}(e);return a.style.setProperty("--gt-bg-hue",t.hue),a.style.setProperty("--gt-bg-saturation",t.saturation),a.style.setProperty("--gt-bg-lightness",t.lightness),n&&a.style.setProperty("--gt-duration","".concat(n,"s")),a.addEventListener("click",function(){l.removeChild(a)}),function(e){var t=window.matchMedia("(prefers-reduced-motion: no-preference)").matches;l.children.length&&t?c(e):l.appendChild(e)}(a),new Promise(function(){var e,t=(e=r().m(function e(t,n){return r().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Promise.allSettled(a.getAnimations().map(function(e){return e.finished}));case 1:l.contains(a)&&l.removeChild(a),t();case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(e){i(a,r,o,l,u,"next",e)}function u(e){i(a,r,o,l,u,"throw",e)}l(void 0)})});return function(e,n){return t.apply(this,arguments)}}())},c=function(e){var t=l.offsetHeight;l.appendChild(e);var n=l.offsetHeight-t;l.animate([{transform:"translateY(".concat(n,"px)")},{transform:"translateY(0)"}],{duration:150,easing:"ease-out"}).startTime=document.timeline.currentTime},s={success:{hue:129,saturation:"61%",lightness:"62%"},info:{hue:188,saturation:"61%",lightness:"64%"}
2,warning:{hue:9,saturation:"58%",lightness:"64%"},error:{hue:360,saturation:"63%",lightness:"64%"}},f={success:'<svg class="gui-toast__icon" width="18" height="18"><use xlink:href="/svg/note-simbols.svg#icon-success"></use></svg>',info:'<svg class="gui-toast__icon" width="18" height="18"><use xlink:href="/svg/note-simbols.svg#icon-info"></use></svg>',warning:'<svg class="gui-toast__icon" width="18" height="18"><use xlink:href="/svg/note-simbols.svg#icon-warning"></use></svg>',error:'<svg class="gui-toast__icon" width="18" height="18"><use xlink:href="/svg/note-simbols.svg#icon-error"></use></svg>'},d={success:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom-right";return u("".concat(f.success," <div>").concat(e,"</div>"),s.success,t,n)},info:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom-right";return u("".concat(f.info," <div>").concat(e,"</div>"),s.info,t,n)},warning:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom-right";return u("".concat(f.warning," <div>").concat(e,"</div>"),s.warning,t,n)},error:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"bottom-right";return u("".concat(f.error," <div>").concat(e,"</div>"),s.error,t,n)},push:function(e){var t=Object.assign({class:"success",text:"",duration:null,position:"bottom-right"},e);u("".concat(f[t.class]," <div>").concat(t.text,"</div>"),s[t.class],t.duration,t.position)}}},3371(e,t,n){"use strict";n.d(t,{i:()=>r});var r=function(e){var t=new Image;return new Promise(function(n,r){if(t.onload=function(){n({el:t,width:t.width,height:t.height,name:e.name,size:e.size,src:t.src,file:e})},"string"==typeof e)t.src=e;else if("undefined"==typeof URL){var o=new FileReader;o.onload=function(e){t.src=e.target.result},o.readAsDataURL(e)}else t.src=URL.createObjectURL(e)})}},3807(e){e.exports=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e){var t=l(e,"string");return"symbol"==typeof t?t:String(t)}var c={exports:{}};!function(e){"undefined"!=typeof window&&function(t){var n=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,r=t.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),o=r&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),i=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,l=(r||i)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(e){var t,n,l,u,c,s,f,d,h;if(!(t=e.match(a)))throw new Error("invalid data URI");for(n=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),l=!!t[4],u=e.slice(t[0].length),c=l?atob(u):decodeURIComponent(u),s=new ArrayBuffer(c.length),f=new Uint8Array(s),d=0;d<c.length;d+=1)f[d]=c.charCodeAt(d);return r?new Blob([o?f:s],{type:n}):((h=new i).append(s),h.getBlob(n))};t.HTMLCanvasElement&&!n.toBlob&&(n.mozGetAsFile?n.toBlob=function(e,t,r){var o=this;setTimeout(function(){r&&n.toDataURL&&l?e(l(o.toDataURL(t,r))):e(o.mozGetAsFile("blob",t))})}:n.toDataURL&&l&&(n.msToBlob?n.toBlob=function(e,t,r){var o=this;setTimeout(function(){(t&&"image/png"!==t||r)&&n.toDataURL&&l?e(l(o.toDataURL(t,r))):e(o.msToBlob(t))})}:n.toBlob=function(e,t,n){var r=this;setTimeout(function(){e(l(r.toDataURL(t,n)))})})),e.exports?e.exports=l:t.dataURLtoBlob=l}(window)}(c);var s=c.exports,f=function(e){return"undefined"!=typeof Blob&&(e instanceof Blob||"[object Blob]"===Object.prototype.toString.call(e))},d={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},h="undefined"!=typeof window&&void 0!==window.document?window:{},m=function(e){return e>0&&e<1/0},p=Array.prototype.slice;function g(e){return Array.from?Array.from(e):p.call(e)}var v=/^image\/.+$/;function b(e){return v.test(e)}function y(e){var t=b(e)?e.substr(6):"";return"jpeg"===t&&(t="jpg"),".".concat(t)}var w=String.fromCharCode;function E(e,t,n){var r,o="";for(n+=t,r=t;r<n;r+=1)o+=w(e.getUint8(r));return o}var x=h.btoa;function k(e,t){for(var n=[],r=8192,o=new Uint8Array(e);o.length>0;)n.push(w.apply(null,g(o.subarray(0,r)))),o=o.subarray(r);return"data:".concat(t,";base64,").concat(x(n.join("")))}function _(e){var t,n=new DataView(e);try{var r,o,i;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,l=2;l+1<a;){if(255===n.getUint8(l)&&225===n.getUint8(l+1)){o=l;break}l+=1}if(o){var u=o+10;if("Exif"===E(n,o+4,4)){var c=n.getUint16(u);if(((r=18761===c)||19789===c)&&42===n.getUint16(u+2,r)){var s=n.getUint32(u+4,r);s>=8&&(i=u+s)}}}if(i){var f,d,h=n.getUint16(i,r);for(d=0;d<h;d+=1)if(f=i+12*d+2,274===n.getUint16(f,r)){f+=8,t=n.getUint16(f,r),n.setUint16(f,1,r);break}}}catch(e){t=1}return t}function O(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}var V=/\.\d*(?:0|9){12}\d*$/;function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return V.test(e)?Math.round(e*t)/t:e}function T(e){var t=e.aspectRatio,n=e.height,r=e.width,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",i=m(r),a=m(n);if(i&&a){var l=n*t;("contain"===o||"none"===o)&&l>r||"cover"===o&&l<r?n=r/t:r=n*t}else i?n=r/t:a&&(r=n*t);return{width:r,height:n}}
2function N(e){for(var t=g(new Uint8Array(e)),n=t.length,r=[],o=0;o+3<n;){var i=t[o],a=t[o+1];if(255===i&&218===a)break;if(255===i&&216===a)o+=2;else{var l=o+(256*t[o+2]+t[o+3])+2,u=t.slice(o,l);r.push(u),o=l}}return r.reduce(function(e,t){return 255===t[0]&&225===t[1]?e.concat(t):e},[])}function B(e,t){var n=g(new Uint8Array(e));if(255!==n[2]||224!==n[3])return e;var r=256*n[4]+n[5],o=[255,216].concat(t,n.slice(4+r));return new Uint8Array(o)}var D=h.ArrayBuffer,U=h.FileReader,M=h.URL||h.webkitURL,P=/\.\w+$/,A=h.Compressor;return function(){function e(r,o){n(this,e),this.file=r,this.exif=[],this.image=new Image,this.options=t(t({},d),o),this.aborted=!1,this.result=null,this.init()}return o(e,[{key:"init",value:function(){var e=this,t=this.file,n=this.options;if(f(t)){var r=t.type;if(b(r))if(M&&U){D||(n.checkOrientation=!1,n.retainExif=!1);var o="image/jpeg"===r,i=o&&n.checkOrientation,l=o&&n.retainExif;if(!M||i||l){var u=new U;this.reader=u,u.onload=function(n){var o=n.target.result,u={},c=1;i&&(c=_(o))>1&&a(u,O(c)),l&&(e.exif=N(o)),u.url=i||l?!M||c>1?k(o,r):M.createObjectURL(t):o,e.load(u)},u.onabort=function(){e.fail(new Error("Aborted to read the image with FileReader."))},u.onerror=function(){e.fail(new Error("Failed to read the image with FileReader."))},u.onloadend=function(){e.reader=null},i||l?u.readAsArrayBuffer(t):u.readAsDataURL(t)}else this.load({url:M.createObjectURL(t)})}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(e){var n=this,r=this.file,o=this.image;o.onload=function(){n.draw(t(t({},e),{},{naturalWidth:o.naturalWidth,naturalHeight:o.naturalHeight}))},o.onabort=function(){n.fail(new Error("Aborted to load the image."))},o.onerror=function(){n.fail(new Error("Failed to load the image."))},h.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(h.navigator.userAgent)&&(o.crossOrigin="anonymous"),o.alt=r.name,o.src=e.url}},{key:"draw",value:function(e){var t=this,n=e.naturalWidth,r=e.naturalHeight,o=e.rotate,i=void 0===o?0:o,a=e.scaleX,l=void 0===a?1:a,u=e.scaleY,c=void 0===u?1:u,f=this.file,d=this.image,h=this.options,p=document.createElement("canvas"),g=p.getContext("2d"),v=Math.abs(i)%180==90,y=("contain"===h.resize||"cover"===h.resize)&&m(h.width)&&m(h.height),w=Math.max(h.maxWidth,0)||1/0,E=Math.max(h.maxHeight,0)||1/0,x=Math.max(h.minWidth,0)||0,_=Math.max(h.minHeight,0)||0,O=n/r,V=h.width,N=h.height;if(v){var D=[E,w];w=D[0],E=D[1];var M=[_,x];x=M[0],_=M[1];var P=[N,V];V=P[0],N=P[1]}y&&(O=V/N);var A=T({aspectRatio:O,width:w,height:E},"contain");w=A.width,E=A.height;var S=T({aspectRatio:O,width:x,height:_},"cover");if(x=S.width,_=S.height,y){var C=T({aspectRatio:O,width:V,height:N},h.resize);V=C.width,N=C.height}else{var R=T({aspectRatio:O,width:V,height:N}),F=R.width;V=void 0===F?n:F;var H=R.height;N=void 0===H?r:H}var L=-(V=Math.floor(j(Math.min(Math.max(V,x),w))))/2,z=-(N=Math.floor(j(Math.min(Math.max(N,_),E))))/2,I=V,G=N,W=[];if(y){var q=0,Y=0,$=n,K=r,X=T({aspectRatio:O,width:n,height:r},{contain:"cover",cover:"contain"}[h.resize]);$=X.width,K=X.height,q=(n-$)/2,Y=(r-K)/2,W.push(q,Y,$,K)}if(W.push(L,z,I,G),v){var J=[N,V];V=J[0],N=J[1]}p.width=V,p.height=N,b(h.mimeType)||(h.mimeType=f.type);var Q="transparent";f.size>h.convertSize&&h.convertTypes.indexOf(h.mimeType)>=0&&(h.mimeType="image/jpeg");var Z="image/jpeg"===h.mimeType;if(Z&&(Q="#fff"),g.fillStyle=Q,g.fillRect(0,0,V,N),h.beforeDraw&&h.beforeDraw.call(this,g,p),!this.aborted&&(g.save(),g.translate(V/2,N/2),g.rotate(i*Math.PI/180),g.scale(l,c),g.drawImage.apply(g,[d].concat(W)),g.restore(),h.drew&&h.drew.call(this,g,p),!this.aborted)){var ee=function(e){if(!t.aborted){var o=function(e){return t.done({naturalWidth:n,naturalHeight:r,result:e})};if(e&&Z&&h.retainExif&&t.exif&&t.exif.length>0){var i=function(e){return o(s(k(B(e,t.exif),h.mimeType)))};if(e.arrayBuffer)e.arrayBuffer().then(i).catch(function(){t.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var a=new U;t.reader=a,a.onload=function(e){var t=e.target;i(t.result)},a.onabort=function(){t.fail(new Error("Aborted to read the compressed image with FileReader."))},a.onerror=function(){t.fail(new Error("Failed to read the compressed image with FileReader."))},a.onloadend=function(){t.reader=null},a.readAsArrayBuffer(e)}}else o(e)}};p.toBlob?p.toBlob(ee,h.mimeType,h.quality):ee(s(p.toDataURL(h.mimeType,h.quality)))}}}
2,{key:"done",value:function(e){var t=e.naturalWidth,n=e.naturalHeight,r=e.result,o=this.file,i=this.image,a=this.options;if(M&&0===i.src.indexOf("blob:")&&M.revokeObjectURL(i.src),r)if(a.strict&&!a.retainExif&&r.size>o.size&&a.mimeType===o.type&&!(a.width>t||a.height>n||a.minWidth>t||a.minHeight>n||a.maxWidth<t||a.maxHeight<n))r=o;else{var l=new Date;r.lastModified=l.getTime(),r.lastModifiedDate=l,r.name=o.name,r.name&&r.type!==o.type&&(r.name=r.name.replace(P,y(r.type)))}else r=o;this.result=r,a.success&&a.success.call(this,r)}},{key:"fail",value:function(e){var t=this.options;if(!t.error)throw e;t.error.call(this,e)}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=A,e}},{key:"setDefaults",value:function(e){a(d,e)}}]),e}()}()},7425(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>R});var r=n(6934),o=n(5220),i=n(8884),a=n(8768),l=n(5623),u=n(7292),c=n(3807),s=n.n(c),f=n(3371);function d(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var u=r&&r.prototype instanceof l?r:l,c=Object.create(u.prototype);return p(c,"_invoke",function(n,r,o){var i,l,u,c=0,s=o||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,l=0,u=e,d.n=n,a}};function h(n,r){for(l=n,u=r,t=0;!f&&c&&!o&&t<s.length;t++){var o,i=s[t],h=d.p,m=i[2];n>3?(o=m===r)&&(u=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&h<i[1])?(l=0,d.v=r,d.n=i[1]):h<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,d.n=m,l=0))}if(o||n>1)return a;throw f=!0,r}return function(o,s,m){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&h(s,m),l=s,u=m;(t=l<2?e:u)||!f;){i||(l?l<3?(l>1&&(d.n=-1),h(l,u)):d.n=u:d.v=u);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(f=d.n<0)?u:n.call(r,d))!==a)break}catch(t){i=e,l=1,u=t}finally{c=1}}return{value:t,done:f}}}(n,o,i),!0),c}var a={};function l(){}function u(){}function c(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(p(t={},r,function(){return this}),t),f=c.prototype=l.prototype=Object.create(s);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,p(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=c,p(f,"constructor",c),p(c,"constructor",u),u.displayName="GeneratorFunction",p(c,o,"GeneratorFunction"),p(f),p(f,o,"Generator"),p(f,r,function(){return this}),p(f,"toString",function(){return"[object Generator]"}),(m=function(){return{w:i,m:d}})()}function p(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}p=function(e,t,n,r){function i(t,n){p(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},p(e,t,n,r)}function g(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function v(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){g(i,r,o,a,l,"next",e)}function l(e){g(i,r,o,a,l,"throw",e)}a(void 0)})}}var b={key:0},y={for:"f_photo",class:"btn btn--primary"},w={key:0,class:"flex mt-2"},E={style:{position:"relative"}}
2,x=["src","alt","onClick"],k={key:1,class:"mt-2"},O={class:"flex"},V={class:"text-center"},j=["src","data-src"],T=["onClick"],N={class:"lead lead--dark round-2 mt-3 mw-3"},B={class:"list-unstyled mt-2",style:{display:"flex",gap:"0.5rem","flex-direction":"column"}},D=["innerHTML"],U={class:"mt-2",style:{display:"flex"}},M={style:{display:"flex",gap:"0.6rem","padding-bottom":"5rem"}},P={class:"form-footer"},A={class:"form-footer__container"},S=["data-state"],C=1920;const R={__name:"Form",setup:function(e){var t=(0,o.rd)(),n=(0,o.lq)(),c=(0,a.P)(),h=(0,r.reactive)({id:0,organization_id:null,is_closed:0,title:null,address:null,phones:null,emails:null,description:null,opening_hours:null,tags:null,owners:null,note:null,images:null,dialog:null}),p=(0,r.ref)([]),g=(0,r.ref)(0),R=(0,r.ref)(null),F=(0,r.ref)([]),H=(0,r.ref)(null),L=(0,r.computed)(function(){return(h.dialog||[]).concat(F.value)});function z(e){return["id","is_closed"].includes(e)?0:null}function I(){if(g.value=1,n.params.id&&c.item){var e=Object.keys(c.item);return Object.keys(h).forEach(function(t){h[t]=e.includes(t)&&null!==c.item[t]&&void 0!==c.item[t]?c.item[t]:z(t)}),c.item=null,void(g.value=0)}if(!n.params.id||c.item)if(n.query.house_id||n.query.organization_id){var t=n.query.house_id?{house_id:n.query.house_id}:{organization_id:n.query.organization_id};c.getItem(t).then(function(e){Object.keys(h).forEach(function(t){h[t]=null!==e[t]&&void 0!==e[t]?e[t]:z(t)}),g.value=0})}else g.value=0;else c.getItem({id:n.params.id}).then(function(e){Object.keys(h).forEach(function(t){h[t]=null!==e[t]&&void 0!==e[t]?e[t]:z(t)}),g.value=0})}function G(){/^[a-z\u017F\u0401\u0419\u0430-\u044F\u212A]{3,}/i.test(R.value)&&(h.id?c.sendMessage(h.id,R.value).then(function(e){l._.success("Сохранено"),F.value.push(e),R.value=null}):(F.value.push({user_id:c.userId,body:R.value,time:(0,u.B)(new Date).format("Y-m-d H:i")}),R.value=null))}function W(){if(e=[],h.title||e.push('"Название" обязательно'),h.title&&(h.title.length<3||h.title.length>190)&&e.push('"Название" должно быть не меньше 3 и не больше 190 символов'),h.address||e.push('"Адрес" обязателен'),h.tags||h.description||e.push("Сфера деятельности не определена. Воспользуйтесь тэгами или описанием"),!e.length||(e.forEach(function(e){l._.error(e)}),0)){var e;g.value=1;var n=new FormData;["organization_id","is_closed","title","address","phones","emails","description","opening_hours","tags","owners","note"].forEach(function(e){h[e]&&n.append(e,h[e])}),h.id>0&&n.append("id",h.id),F.value.length&&F.value.forEach(function(e){n.append("dialog[]",e.body)}),p.value.length&&p.value.forEach(function(e){n.append("images[]",e.blob,e.name)}),c.submit(n).then(function(){g.value=0,l._.success("Сохранено"),F.value.length&&(c.items=null),t.go(-1)})}}function q(e,t){new(s())(e,{height:180,resize:"none",convertTypes:"image/webp",success:function(e){t.preview=URL.createObjectURL(e),p.value.push(t)}})}return(0,i.s)(function(e,t){e.name==t.name&&(Object.keys(e.query).length||(h.id=0,h.organization_id=null,h.is_closed=0,h.title=null,h.phones=null,h.emails=null,h.description=null,h.opening_hours=null,h.tags=null,h.owners=null,h.note=null,h.images=null,h.dialog=null))}),(0,r.onMounted)(v(m().m(function e(){return m().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,t.isReady();case 1:I(),n.query.chat&&H.value.scrollIntoView({behavior:"smooth"});case 2:return e.a(2)}},e)}))),function(e,n){var o=(0,r.resolveComponent)("InputSwitch"),i=(0,r.resolveComponent)("i-icon"),a=(0,r.resolveComponent)("router-link"),l=(0,r.resolveDirective)("autoheight"),u=(0,r.resolveDirective)("image");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[h.organization_id?((0,r.openBlock)(),(0,r.createElementBlock)("fieldset",b,[(0,r.createVNode)(o,{modelValue:h.is_closed,"onUpdate:modelValue":n[0]||(n[0]=function(e){return h.is_closed=e})},{default:(0,r.withCtx)(function(){return d(n[13]||(n[13]=[(0,r.createTextVNode)("Организация закрылась",-1)]))}),_:1},8,["modelValue"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("fieldset",null,[n[14]||(n[14]=(0,r.createElementVNode)("label",{for:"f_title"},"Название",-1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{id:"f_title",type:"text",autofocus:"","onUpdate:modelValue":n[1]||(n[1]=function(e){return h.title=e})},null,512),[[r.vModelText,h.title]])]),(0,r.createElementVNode)("fieldset",null,[n[15]||(n[15]=(0,r.createElementVNode)("label",{for:"f_owners"},[(0,r.createTextVNode)("Владелец "),(0,r.createElementVNode)("i",null,[(0,r.createElementVNode)("small",null,"(ИП Иванов И.И.)")])],-1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{id:"f_owners",type:"text","onUpdate:modelValue":n[2]||(n[2]=function(e){return h.owners=e})},null,512),[[r.vModelText,h.owners]])]),(0,r.createElementVNode)("fieldset",null,[n[16]||(n[16]=(0,r.createElementVNode)("label",{for:"f_address"},"Адрес",-1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{id:"f_address",type:"text","onUpdate:modelValue":n[3]||(n[3]=function(e){return h.address=e})},null,512),[[r.vModelText,h.address]])]),(0,r.createElementVNode)("fieldset",null,[n[17]||(n[17]=(0,r.createElementVNode)("label",{for:"f_opening_hours"},"Время работы",-1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{id:"f_opening_hours",type:"text","onUpdate:modelValue":n[4]||(n[4]=function(e){return h.opening_hours=e})},null,512),[[r.vModelText,h.opening_hours]])]),(0,r.createElementVNode)("fieldset",null,[n[18]||(n[18]=(0,r.createElementVNode)("label",{for:"f_phones"},"Телефоны",-1)),(0,r.withDirectives)((0,r.createElementVNode)("textarea",{id:"f_phones",rows:"3","onUpdate:modelValue":n[5]||(n[5]=function(e){return h.phones=e})},null,512),[[l],[r.vModelText,h.phones]])]),(0,r.createElementVNode)("fieldset",null,[n[19]||(n[19]=(0,r.createElementVNode)("label",{for:"f_emails"},"Эл.почта",-1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{id:"f_emails",type:"text","onUpdate:modelValue":n[6]||(n[6]=function(e){return h.emails=e})},null,512),[[r.vModelText,h.emails]])]),(0,r.createElementVNode)("fieldset",null,[n[20]||(n[20]=(0,r.createElementVNode)("label",{for:"f_tags"},"Какие товары или услуги (желательно подробнее)",-1)),(0,r.withDirectives)((0,r.createElementVNode)("textarea",{id:"f_tags",rows:"5","onUpdate:modelValue":n[7]||(n[7]=function(e){return h.tags=e})},null,512),[[r.vModelText,h.tags]])]),(0,r.createElementVNode)("fieldset",null,[n[21]||(n[21]=(0,r.createElementVNode)("label",{for:"f_description"},"Описание",-1)),(0,r.withDirectives)((0,r.createElementVNode)("textarea",{id:"f_description",rows:"3","onUpdate:modelValue":n[8]||(n[8]=function(e){return h.description=e})},null,512),[[l],[r.vModelText,h.description]])]),(0,r.createElementVNode)("fieldset",null,[(0,r.createElementVNode)("label",y,[n[22]||(n[22]=(0,r.createTextVNode)(" Фотографии ",-1)),(0,r.createElementVNode)("input",{id:"f_photo",type:"file",accept:"image/*",class:"sr-only",multiple:"",onChange:n[9]||(n[9]=function(e){return t=e,void _.each(t.target.files,function(e){(0,f.i)(e).then(function(t){Math.max(t.width,t.height)>C?new(s())(e,{width:t.width>t.height?C:null,height:t.width<t.height?C:null,resize:"none",convertTypes:"image/jpeg",success:function(t){q(e,{name:t.name,blob:t})}}):q(e,{name:e.name,blob:e})})});var t})},null,32)]),p.value.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",w,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(p.value,function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",E,[(0,r.createElementVNode)("img",{src:e.preview,alt:"preview-".concat(t),onClick:function(e){return p.value.splice(t,1)}},null,8,x),n[23]||(n[23]=(0,r.createElementVNode)("i",{class:"icon-trash",style:{bottom:".5rem",color:"#ef6e00",left:"calc(50% - .5rem)",position:"absolute"}},null,-1))])}),256))])):(0,r.createCommentVNode)("",!0),h.images&&h.images.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[(0,r.createElementVNode)("div",O,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(h.images,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",V,[(0,r.withDirectives)((0,r.createElementVNode)("img",{src:"/api/org-revision/image-pr/".concat(e),class:"block","data-src":"/api/org-revision/image/".concat(e),alt:""},null,8,j),[[u]]),(0,r.createElementVNode)("button",{class:"btn mt-2 sm",onClick:function(t){return function(e){c.deleteImage(h.id,e).then(function(){h.images.splice(h.images.indexOf(e),1)})}(e)}},d(n[24]||(n[24]=[(0,r.createElementVNode)("i",{class:"icon-trash"},null,-1)])),8,T)])}),256))])])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("fieldset",null,[n[25]||(n[25]=(0,r.createElementVNode)("label",{for:"f_note"},"Личные заметки",-1)),(0,r.withDirectives)((0,r.createElementVNode)("textarea",{id:"f_note",rows:"5","onUpdate:modelValue":n[10]||(n[10]=function(e){return h.note=e})},null,512),[[l],[r.vModelText,h.note]])]),(0,r.createElementVNode)("fieldset",{ref_key:"dialogContainer",ref:H},[(0,r.createElementVNode)("div",N,[n[26]||(n[26]=(0,r.createElementVNode)("small",null,"Диалог с администратором",-1)),(0,r.createElementVNode)("ul",B,[L.value.length?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(L.value,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{class:"lead round-4 line-h-4",style:(0,r.normalizeStyle)((t=e.user_id,t==c.userId?{"background-color":"#bdecff","border-top-right-radius":0,"box-shadow":"2px 3px 4px rgb(0 0 0 / 25%)","text-align":"right","align-self":"flex-end",width:"94%"}:{"border-top-left-radius":0,"box-shadow":"-2px 3px 4px rgb(0 0 0 / 25%)","text-align":"left",width:"94%"}))},[(0,r.createElementVNode)("div",{innerHTML:e.body},null,8,D),(0,r.createElementVNode)("small",null,(0,r.toDisplayString)(e.time),1)],4);var t}),256)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("li",U,[(0,r.withDirectives)((0,r.createElementVNode)("textarea",{rows:"3",id:"f_message","onUpdate:modelValue":n[11]||(n[11]=function(e){return R.value=e})},null,512),[[l,50],[r.vModelText,R.value]]),(0,r.createElementVNode)("button",{class:"btn",onClick:G,style:{"--border":"0","--color":"var(--color-link)","--font-size":"1.4rem"}},[(0,r.createVNode)(i,{src:"paper-plane"})])])])])],512),(0,r.createElementVNode)("fieldset",M,[(0,r.createElementVNode)("button",{class:"btn btn--primary",onClick:W},"Отправить"),(0,r.createElementVNode)("button",{class:"btn btn--default",onClick:n[12]||(n[12]=(0,r.withModifiers)(function(e){return(0,r.unref)(t).go(-1)},["prevent"]))},"Закрыть")]),(0,r.createElementVNode)("footer",P,[(0,r.createElementVNode)("div",A,[(0,r.createVNode)(a,{to:{name:"index"},"area-label":"Закрыть",class:"bttn bttn--darkcyan bttn--round"},{default:(0,r.withCtx)(function(){return d(n[27]||(n[27]=[(0,r.createElementVNode)("i",{class:"icon-left-big"},null,-1)]))}),_:1}),(0,r.createElementVNode)("button",{class:"bttn bttn--primary bttn--round ml-2",onClick:W,"area-label":"Сохранить"},d(n[28]||(n[28]=[(0,r.createElementVNode)("i",{class:"icon-floppy"},null,-1)])))])]),(0,r.createElementVNode)("div",{class:"page-loader","data-state":g.value},"Загрузка...",8,S)],64)}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.