From 213917c9e6b4a037e556552a0a7fb4e9b5684130 Mon Sep 17 00:00:00 2001 From: meunier Date: Thu, 23 May 2024 07:49:22 -0600 Subject: [PATCH] Modify settings to build package --- build/js-cloudimage-360-view.min.js | 2 +- package.json | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build/js-cloudimage-360-view.min.js b/build/js-cloudimage-360-view.min.js index c2769d4..33475d5 100644 --- a/build/js-cloudimage-360-view.min.js +++ b/build/js-cloudimage-360-view.min.js @@ -1,2 +1,2 @@ /*! For license information please see js-cloudimage-360-view.min.js.LICENSE.txt */ -(()=>{var t={5861:(t,e,n)=>{var i=n(3921);t.exports=i},3740:(t,e,n)=>{var i=n(5823);t.exports=i},909:(t,e,n)=>{var i=n(6575);t.exports=i},5354:(t,e,n)=>{n(7327);var i=n(2649);t.exports=i("Array","filter")},817:(t,e,n)=>{n(9554);var i=n(2649);t.exports=i("Array","forEach")},3462:(t,e,n)=>{n(6699);var i=n(2649);t.exports=i("Array","includes")},6139:(t,e,n)=>{n(7037)},7528:(t,e,n)=>{n(4978)},4577:(t,e,n)=>{n(9059)},7037:(t,e,n)=>{var i=n(5861);t.exports=i},4978:(t,e,n)=>{var i=n(3740);t.exports=i},9059:(t,e,n)=>{var i=n(909);t.exports=i},9662:(t,e,n)=>{var i=n(614),o=n(6330),r=TypeError;t.exports=function(t){if(i(t))return t;throw r(o(t)+" is not a function")}},1223:(t,e,n)=>{var i=n(5112),o=n(30),r=n(3070).f,a=i("unscopables"),s=Array.prototype;null==s[a]&&r(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},9670:(t,e,n)=>{var i=n(111),o=String,r=TypeError;t.exports=function(t){if(i(t))return t;throw r(o(t)+" is not an object")}},8533:(t,e,n)=>{"use strict";var i=n(2092).forEach,o=n(9341)("forEach");t.exports=o?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},1318:(t,e,n)=>{var i=n(5656),o=n(1400),r=n(6244),a=function(t){return function(e,n,a){var s,c=i(e),u=r(c),l=o(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,n)=>{var i=n(9974),o=n(1702),r=n(8361),a=n(7908),s=n(6244),c=n(5417),u=o([].push),l=function(t){var e=1==t,n=2==t,o=3==t,l=4==t,d=6==t,h=7==t,f=5==t||d;return function(p,m,v,g){for(var y,b,w=a(p),x=r(w),I=i(m,v),O=s(x),k=0,E=g||c,S=e?E(p,O):n||h?E(p,0):void 0;O>k;k++)if((f||k in x)&&(b=I(y=x[k],k,w),t))if(e)S[k]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:u(S,y)}else switch(t){case 4:return!1;case 7:u(S,y)}return d?-1:o||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1194:(t,e,n)=>{var i=n(7293),o=n(5112),r=n(7392),a=o("species");t.exports=function(t){return r>=51||!i((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,n)=>{"use strict";var i=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},7475:(t,e,n)=>{var i=n(3157),o=n(4411),r=n(111),a=n(5112)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===s||i(e.prototype))||r(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},5417:(t,e,n)=>{var i=n(7475);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},4326:(t,e,n)=>{var i=n(1702),o=i({}.toString),r=i("".slice);t.exports=function(t){return r(o(t),8,-1)}},648:(t,e,n)=>{var i=n(1694),o=n(614),r=n(4326),a=n(5112)("toStringTag"),s=Object,c="Arguments"==r(function(){return arguments}());t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?r(e):"Object"==(i=r(e))&&o(e.callee)?"Arguments":i}},9920:(t,e,n)=>{var i=n(2597),o=n(3887),r=n(1236),a=n(3070);t.exports=function(t,e,n){for(var s=o(e),c=a.f,u=r.f,l=0;l{var i=n(9781),o=n(3070),r=n(9114);t.exports=i?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:(t,e,n)=>{var i=n(614),o=n(3070),r=n(6339),a=n(3072);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(i(n)&&r(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},3072:(t,e,n)=>{var i=n(7854),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},9781:(t,e,n)=>{var i=n(7293);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:t=>{var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:(t,e,n)=>{var i=n(7854),o=n(111),r=i.document,a=o(r)&&o(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},8113:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:(t,e,n)=>{var i,o,r=n(7854),a=n(8113),s=r.process,c=r.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),t.exports=o},2649:(t,e,n)=>{var i=n(7854),o=n(1702);t.exports=function(t,e){return o(i[t].prototype[e])}},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var i=n(7854),o=n(1236).f,r=n(8880),a=n(8052),s=n(3072),c=n(9920),u=n(4705);t.exports=function(t,e){var n,l,d,h,f,p=t.target,m=t.global,v=t.stat;if(n=m?i:v?i[p]||s(p,{}):(i[p]||{}).prototype)for(l in e){if(h=e[l],d=t.dontCallGetSet?(f=o(n,l))&&f.value:n[l],!u(m?l:p+(v?".":"#")+l,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&r(h,"sham",!0),a(n,l,h,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:(t,e,n)=>{var i=n(1470),o=n(9662),r=n(4374),a=i(i.bind);t.exports=function(t,e){return o(t),void 0===e?t:r?a(t,e):function(){return t.apply(e,arguments)}}},4374:(t,e,n)=>{var i=n(7293);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,e,n)=>{var i=n(4374),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},6530:(t,e,n)=>{var i=n(9781),o=n(2597),r=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=o(r,"name"),c=s&&"something"===function(){}.name,u=s&&(!i||i&&a(r,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},1470:(t,e,n)=>{var i=n(4326),o=n(1702);t.exports=function(t){if("Function"===i(t))return o(t)}},1702:(t,e,n)=>{var i=n(4374),o=Function.prototype,r=o.call,a=i&&o.bind.bind(r,r);t.exports=i?a:function(t){return function(){return r.apply(t,arguments)}}},5005:(t,e,n)=>{var i=n(7854),o=n(614);t.exports=function(t,e){return arguments.length<2?(n=i[t],o(n)?n:void 0):i[t]&&i[t][e];var n}},8173:(t,e,n)=>{var i=n(9662),o=n(8554);t.exports=function(t,e){var n=t[e];return o(n)?void 0:i(n)}},7854:(t,e,n)=>{var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:(t,e,n)=>{var i=n(1702),o=n(7908),r=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(o(t),e)}},3501:t=>{t.exports={}},490:(t,e,n)=>{var i=n(5005);t.exports=i("document","documentElement")},4664:(t,e,n)=>{var i=n(9781),o=n(7293),r=n(317);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,n)=>{var i=n(1702),o=n(7293),r=n(4326),a=Object,s=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?s(t,""):a(t)}:a},2788:(t,e,n)=>{var i=n(1702),o=n(614),r=n(5465),a=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(t){return a(t)}),t.exports=r.inspectSource},9909:(t,e,n)=>{var i,o,r,a=n(4811),s=n(7854),c=n(111),u=n(8880),l=n(2597),d=n(5465),h=n(6200),f=n(3501),p="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,i=function(t,e){if(g.has(t))throw m(p);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},r=function(t){return g.has(t)}}else{var y=h("state");f[y]=!0,i=function(t,e){if(l(t,y))throw m(p);return e.facade=t,u(t,y,e),e},o=function(t){return l(t,y)?t[y]:{}},r=function(t){return l(t,y)}}t.exports={set:i,get:o,has:r,enforce:function(t){return r(t)?o(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}}}},3157:(t,e,n)=>{var i=n(4326);t.exports=Array.isArray||function(t){return"Array"==i(t)}},614:(t,e,n)=>{var i=n(4154),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4411:(t,e,n)=>{var i=n(1702),o=n(7293),r=n(614),a=n(648),s=n(5005),c=n(2788),u=function(){},l=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=i(h.exec),p=!h.exec(u),m=function(t){if(!r(t))return!1;try{return d(u,l,t),!0}catch(t){return!1}},v=function(t){if(!r(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!d||o((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?v:m},4705:(t,e,n)=>{var i=n(7293),o=n(614),r=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==l||n!=u&&(o(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(r,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},8554:t=>{t.exports=function(t){return null==t}},111:(t,e,n)=>{var i=n(614),o=n(4154),r=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===r}:function(t){return"object"==typeof t?null!==t:i(t)}},1913:t=>{t.exports=!1},2190:(t,e,n)=>{var i=n(5005),o=n(614),r=n(7976),a=n(3307),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&r(e.prototype,s(t))}},6244:(t,e,n)=>{var i=n(7466);t.exports=function(t){return i(t.length)}},6339:(t,e,n)=>{var i=n(1702),o=n(7293),r=n(614),a=n(2597),s=n(9781),c=n(6530).CONFIGURABLE,u=n(2788),l=n(9909),d=l.enforce,h=l.get,f=String,p=Object.defineProperty,m=i("".slice),v=i("".replace),g=i([].join),y=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===m(f(e),0,7)&&(e="["+v(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return a(i,"source")||(i.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return r(this)&&h(this).source||u(this)}),"toString")},4758:t=>{var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},30:(t,e,n)=>{var i,o=n(9670),r=n(6048),a=n(748),s=n(3501),c=n(490),u=n(317),l=n(6200),d="prototype",h="script",f=l("IE_PROTO"),p=function(){},m=function(t){return"<"+h+">"+t+""},v=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&i?v(i):(e=u("iframe"),n="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):v(i);for(var o=a.length;o--;)delete g[d][a[o]];return g()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[d]=o(t),n=new p,p[d]=null,n[f]=t):n=g(),void 0===e?n:r.f(n,e)}},6048:(t,e,n)=>{var i=n(9781),o=n(3353),r=n(3070),a=n(9670),s=n(5656),c=n(1956);e.f=i&&!o?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),o=c(e),u=o.length,l=0;u>l;)r.f(t,n=o[l++],i[n]);return t}},3070:(t,e,n)=>{var i=n(9781),o=n(4664),r=n(3353),a=n(9670),s=n(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";e.f=i?r?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var i=l(t,e);i&&i[f]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:(t,e,n)=>{var i=n(9781),o=n(6916),r=n(5296),a=n(9114),s=n(5656),c=n(4948),u=n(2597),l=n(4664),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=c(e),l)try{return d(t,e)}catch(t){}if(u(t,e))return a(!o(r.f,t,e),t[e])}},8006:(t,e,n)=>{var i=n(6324),o=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},7976:(t,e,n)=>{var i=n(1702);t.exports=i({}.isPrototypeOf)},6324:(t,e,n)=>{var i=n(1702),o=n(2597),r=n(5656),a=n(1318).indexOf,s=n(3501),c=i([].push);t.exports=function(t,e){var n,i=r(t),u=0,l=[];for(n in i)!o(s,n)&&o(i,n)&&c(l,n);for(;e.length>u;)o(i,n=e[u++])&&(~a(l,n)||c(l,n));return l}},1956:(t,e,n)=>{var i=n(6324),o=n(748);t.exports=Object.keys||function(t){return i(t,o)}},5296:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},2140:(t,e,n)=>{var i=n(6916),o=n(614),r=n(111),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!r(s=i(n,t)))return s;if(o(n=t.valueOf)&&!r(s=i(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!r(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},3887:(t,e,n)=>{var i=n(5005),o=n(1702),r=n(8006),a=n(5181),s=n(9670),c=o([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(s(t)),n=a.f;return n?c(e,n(t)):e}},4488:(t,e,n)=>{var i=n(8554),o=TypeError;t.exports=function(t){if(i(t))throw o("Can't call method on "+t);return t}},6200:(t,e,n)=>{var i=n(2309),o=n(9711),r=i("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},5465:(t,e,n)=>{var i=n(7854),o=n(3072),r="__core-js_shared__",a=i[r]||o(r,{});t.exports=a},2309:(t,e,n)=>{var i=n(1913),o=n(5465);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:(t,e,n)=>{var i=n(7392),o=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},1400:(t,e,n)=>{var i=n(9303),o=Math.max,r=Math.min;t.exports=function(t,e){var n=i(t);return n<0?o(n+e,0):r(n,e)}},5656:(t,e,n)=>{var i=n(8361),o=n(4488);t.exports=function(t){return i(o(t))}},9303:(t,e,n)=>{var i=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},7466:(t,e,n)=>{var i=n(9303),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},7908:(t,e,n)=>{var i=n(4488),o=Object;t.exports=function(t){return o(i(t))}},7593:(t,e,n)=>{var i=n(6916),o=n(111),r=n(2190),a=n(8173),s=n(2140),c=n(5112),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||r(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!o(n)||r(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},4948:(t,e,n)=>{var i=n(7593),o=n(2190);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},1694:(t,e,n)=>{var i={};i[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(i)},6330:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:(t,e,n)=>{var i=n(1702),o=0,r=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+r,36)}},3307:(t,e,n)=>{var i=n(6293);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,e,n)=>{var i=n(9781),o=n(7293);t.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:(t,e,n)=>{var i=n(7854),o=n(614),r=i.WeakMap;t.exports=o(r)&&/native code/.test(String(r))},5112:(t,e,n)=>{var i=n(7854),o=n(2309),r=n(2597),a=n(9711),s=n(6293),c=n(3307),u=i.Symbol,l=o("wks"),d=c?u.for||u:u&&u.withoutSetter||a;t.exports=function(t){return r(l,t)||(l[t]=s&&r(u,t)?u[t]:d("Symbol."+t)),l[t]}},7327:(t,e,n)=>{"use strict";var i=n(2109),o=n(2092).filter;i({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},9554:(t,e,n)=>{"use strict";var i=n(2109),o=n(8533);i({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},6699:(t,e,n)=>{"use strict";var i=n(2109),o=n(1318).includes,r=n(7293),a=n(1223);i({target:"Array",proto:!0,forced:r((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},3921:(t,e,n)=>{var i=n(5354);t.exports=i},5823:(t,e,n)=>{var i=n(817);t.exports=i},6575:(t,e,n)=>{var i=n(3462);t.exports=i},850:(t,e,n)=>{(t.exports=n(3645)(!1)).push([t.id,".cloudimage-360-hotspot-link-icon {\n width: 42px;\n height: 42px;\n background: rgba(12, 109, 199, 0.2);\n border: 1px solid rgba(255, 255, 255, 0.2);\n border-radius: 50%;\n box-sizing: border-box;\n transition: opacity 600ms ease-in-out;\n cursor: auto;\n}\n\n.cloudimage-360-hotspot-link-icon::before {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n background-image: url('https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/link-hotspot.svg');\n background-color: #0C6DC7;\n background-repeat: no-repeat;\n background-size: 9px;\n background-position: center;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);\n border-radius: 50%;\n\tanimation: pulse 2s infinite;\n cursor: auto;\n}\n\n.cloudimage-360-hotspot-custom-icon {\n width: 42px;\n height: 42px;\n background: #76AD0133;\n border: 1px solid #FFFFFF33;\n border-radius: 50%;\n box-sizing: border-box;\n transition: opacity 300ms ease-in-out;\n cursor: auto;\n}\n\n.cloudimage-360-hotspot-custom-icon::before {\n content: '';\n position: absolute;\n width: 16px;\n height: 16px;\n background-image: url('https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/plus.svg');\n background-color: #76AD01;\n background-repeat: no-repeat;\n background-size: 9px;\n background-position: center;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);\n border-radius: 50%;\n\tanimation: pulse 2s infinite;\n cursor: auto;\n}\n\n.cloudimage-360-hotspot-popup {\n visibility: hidden;\n opacity: 0;\n background-color: #FFFFFF;\n padding: 6px;\n border-radius: 2px;\n box-shadow: 0px 4px 4px 0px #00000040;\n z-index: 999;\n}\n\n.cloudimage-360-hotspot-popup[data-show] {\n visibility: visible;\n opacity: 1;\n}\n\n.cloudimage-360-popup-arrow,\n.cloudimage-360-popup-arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n cursor: 'auto';\n}\n\n.cloudimage-360-popup-arrow {\n visibility: hidden;\n}\n\n.cloudimage-360-popup-arrow::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n}\n\n.cloudimage-360-hotspot-popup[data-popper-placement^='top']\n > .cloudimage-360-popup-arrow {\n bottom: -4px;\n}\n\n.cloudimage-360-hotspot-popup[data-popper-placement^='bottom']\n > .cloudimage-360-popup-arrow {\n top: -4px;\n}\n\n.cloudimage-360-hotspot-popup[data-popper-placement^='left']\n > .cloudimage-360-popup-arrow {\n right: -4px;\n}\n\n.cloudimage-360-hotspot-popup[data-popper-placement^='right']\n > .cloudimage-360-popup-arrow {\n left: -4px;\n}\n\n.cloudimage-360-modal-wrapper {\n max-width: 222px;\n}\n\n.cloudimage-360-images-carousel-wrapper {\n margin: 0 auto;\n}\n\n.cloudimage-360-images-carousel {\n background-color: #f5f4f4;\n border-radius: 2px;\n}\n\n.cloudimage-360-images-carousel .cloudimage-360-carousel-image {\n display: none;\n object-fit: contain;\n min-height: 187px;\n max-width: 100%;\n max-height: 100%;\n}\n\n.cloudimage-360-images-carousel .cloudimage-360-carousel-image.active-image {\n display: block;\n animation-name: fade-active-image;\n animation-duration: 1.5s;\n}\n\n.cloudimage-360-carousel-dots {\n display: flex;\n column-gap: 6px;\n justify-content: center;\n flex-wrap: wrap;\n margin: 5px auto;\n row-gap: 3px;\n padding: 0 6px;\n width: 50%;\n}\n\n.cloudimage-360-carousel-dot {\n width: 6px;\n height: 6px;\n background-color: #C9D0DE;\n border-radius: 50%;\n cursor: pointer;\n transition: background-color 0.6s ease;\n border: 0;\n padding: 0;\n}\n\n.cloudimage-360-carousel-dot.active-dot {\n background-color: #76AD01;\n}\n\n.cloudimage-360-carousel-dot:focus,\n.cloudimage-360-carousel-dot:focus-visible {\n border: 0;\n outline: 0;\n}\n\n.cloudimage-360-modal-title {\n font-size: 12px;\n font-weight: 700;\n line-height: 16px;\n margin: 4px 0;\n}\n\n.cloudimage-360-modal-description {\n font-size: 10px;\n font-weight: 400;\n line-height: 16px;\n margin: 4px 0;\n}\n\n.cloudimage-360-modal-more-details {\n color: #76AD01;\n background-color: #ECFAE6;\n font-size: 10px;\n line-height: 16px;\n font-weight: 400;\n padding: 4px 8px;\n transition: background-color 200ms ease-in-out;\n border-radius: 2px;\n text-decoration: none;\n}\n\n.cloudimage-360-modal-more-details:hover {\n color: #76AD01;\n background-color: #e1f5d8;\n}\n\n@keyframes pulse {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 rgba(99, 99, 99, 0.7);\n\t}\n\n\t70% {\n\t\tbox-shadow: 0 0 0 10px rgba(99, 99, 99, 0);\n\t}\n\n\t100% {\n\t\tbox-shadow: 0 0 0 0 rgba(99, 99, 99, 0);\n\t}\n}\n\n@keyframes fade-active-image {\n from { opacity: 0.7 }\n to { opacity: 1 }\n}",""])},1860:(t,e,n)=>{(t.exports=n(3645)(!1)).push([t.id,".cloudimage-360-icons-container {\n position: absolute;\n display: flex;\n top: 5px;\n right: 5px;\n width: 30px;\n height: 95%;\n flex-direction: column;\n align-items: center;\n z-index: 101;\n}\n\n.cloudimage-360-magnifier-icon {\n width: 25px;\n height: 25px;\n margin-bottom: 5px;\n cursor: pointer;\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/loupe.svg') 50% 50% / cover no-repeat;\n}\n\n.cloudimage-360-fullscreen-icon {\n width: 25px;\n height: 25px;\n margin-bottom: 5px;\n cursor: pointer;\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/full_screen.svg') 50% 50% / cover no-repeat;\n}\n\n.cloudimage-360-reset-zoom-icon {\n display: none;\n width: 30px;\n height: 30px;\n margin-top: auto;\n cursor: pointer;\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/ic-resize.svg?vh=248986') 50% 50% / cover no-repeat;\n}\n\n.cloudimage-360-close-fullscreen-icon {\n width: 25px;\n height: 25px;\n cursor: pointer;\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/cross.svg') 50% 50% / cover no-repeat;\n}\n\n.cloudimage-360-loader {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n width: 0%;\n height: 8px;\n background-color: rgb(165, 175, 184);\n z-index: 100;\n}\n\n.cloudimage-360-box-shadow {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 99;\n}\n\n.cloudimage-360-view-360-icon {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100px;\n height: 100px;\n margin: auto;\n background-color: rgba(255, 255, 255, 0.8);\n border-radius: 50%;\n box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 4px;\n transition: 0.5s all;\n color: rgb(80, 80, 80);\n text-align: center;\n line-height: 100px;\n z-index: 2;\n}\n\n.cloudimage-360-view-360-circle {\n position: absolute;\n left: 0;\n right: 0;\n width: 80%;\n height: auto;\n margin: auto;\n pointer-events: none;\n user-select: none;\n transition: 0.5s all;\n z-index: 2;\n}\n\n.cloudimage-360-fullscreen-modal {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n z-index: 999;\n background-color: #FFF;\n}\n\n.cloudimage-360-img-magnifier-glass {\n background-color: #FFF;\n background-repeat: no-repeat;\n position: absolute;\n border: 3px solid #000;\n border-radius: 50%;\n cursor: wait;\n line-height: 200px;\n text-align: center;\n z-index: 1000;\n width: 250px;\n height: 250px;\n top: -75px;\n right: -85px;\n}\n\n.cloudimage-360 .cloudimage-360-left,\n.cloudimage-360 .cloudimage-360-right {\n padding: 8px;\n background: rgb(244, 244, 244);\n border: none;\n border-radius: 4px;\n}\n\n.cloudimage-360 .cloudimage-360-left:focus,\n.cloudimage-360 .cloudimage-360-right:focus {\n outline: none;\n}\n\n.cloudimage-360 .cloudimage-360-left {\n display: none;\n position: absolute;\n z-index: 100;\n top: calc(50% - 15px);\n left: 20px;\n}\n\n.cloudimage-360 .cloudimage-360-right {\n display: none;\n position: absolute;\n z-index: 100;\n top: calc(50% - 15px);\n right: 20px;\n}\n\n.cloudimage-360 .cloudimage-360-left:before,\n.cloudimage-360 .cloudimage-360-right:before {\n content: '';\n display: block;\n width: 30px;\n height: 30px;\n background: 50% 50% / cover no-repeat;\n}\n\n.cloudimage-360 .cloudimage-360-left:before {\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-left.svg');\n}\n\n.cloudimage-360 .cloudimage-360-right:before {\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-right.svg');\n}\n\n.cloudimage-360 .cloudimage-360-left.not-active,\n.cloudimage-360 .cloudimage-360-right.not-active {\n opacity: 0.4;\n cursor: default;\n pointer-events: none;\n}\n\n.cloudimage-360 .cloudimage-360-top,\n.cloudimage-360 .cloudimage-360-bottom {\n padding: 8px;\n background: rgb(244, 244, 244);\n border: none;\n border-radius: 4px;\n}\n\n.cloudimage-360 .cloudimage-360-top:focus,\n.cloudimage-360 .cloudimage-360-bottom:focus {\n outline: none;\n}\n\n.cloudimage-360 .cloudimage-360-top {\n display: none;\n position: absolute;\n z-index: 100;\n left: calc(50% - 15px);\n top: 20px;\n transform: rotate(90deg);\n}\n\n.cloudimage-360 .cloudimage-360-bottom {\n display: none;\n position: absolute;\n z-index: 100;\n left: calc(50% - 15px);\n bottom: 20px;\n transform: rotate(90deg);\n}\n\n.cloudimage-360 .cloudimage-360-top:before,\n.cloudimage-360 .cloudimage-360-bottom:before {\n content: '';\n display: block;\n width: 30px;\n height: 30px;\n background: 50% 50% / cover no-repeat;\n}\n\n.cloudimage-360 .cloudimage-360-top:before {\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-left.svg');\n}\n\n.cloudimage-360 .cloudimage-360-bottom:before {\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-right.svg');\n}\n\n.cloudimage-360 .cloudimage-360-top.not-active,\n.cloudimage-360 .cloudimage-360-bottom.not-active {\n opacity: 0.4;\n cursor: default;\n}",""])},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i=t[1]||"",o=t[3];if(!o)return i;if(e&&"function"==typeof btoa){var r=(n=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=o.sources.map((function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"}));return[i].concat(a).concat([r]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o{"use strict";var e=[];function n(t){for(var n=-1,i=0;i{"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,o&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},7061:(t,e,n)=>{var i=n(8698).default;function o(){"use strict";t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function h(t,e,n,i){var o=e&&e.prototype instanceof m?e:m,r=Object.create(o.prototype),s=new j(i||[]);return a(r,"_invoke",{value:k(t,n,s)}),r}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p={};function m(){}function v(){}function g(){}var y={};d(y,c,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(L([])));w&&w!==n&&r.call(w,c)&&(y=w);var x=g.prototype=m.prototype=Object.create(y);function I(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,a,s,c){var u=f(t[o],t,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==i(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(t,i){function r(){return new e((function(e,o){n(t,i,e,o)}))}return o=o?o.then(r,r):r()}})}function k(t,e,n){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return{value:void 0,done:!0}}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=f(t,e,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=f(i,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function L(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4687:(t,e,n)=>{var i=n(7061)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,exports:{}};return t[i](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0,(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var o=i.call(e,"string");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}function i(t,n,i){return(n=e(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function o(t,n){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:0,o=e[i];i>e.length-1||X(o,(function(o){var r=i+1;n(o,i),t(e,n,r)}))};function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:0;return(t+="").length>=e?t:new Array(e-t.length+1).join("0")+t},_=function(t,e,n){var i,o=e||{},r=o.amount,a=o.indexZeroBase;return(i=new Array(r),function(t){if(Array.isArray(t))return F(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||z(i)||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.")}()).map((function(e,i){var o=B(i+1,a),r=t.replace("{index}",o);return n?r.replace(N,"").replace(V,"?"):r}))};function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var H=function(t,e,n){var o=e.folder;return t.map((function(t){var r=function(t){for(var e=1;e4&&void 0!==arguments[4]?arguments[4]:1,r=n/i,a=t/e,s=t*o,c=e*o;return r>a?c=s/r:s=c*r,{width:s,height:c,offsetX:(t-s)*(arguments.length>5&&void 0!==arguments[5]?arguments[5]:.5),offsetY:(e-c)*(arguments.length>6&&void 0!==arguments[6]?arguments[6]:.5)}},nt=function(t,e,n){var i,o,r=e.container,a=e.w,s=e.h,c=e.zoom,u=e.bw,l=e.offsetX,d=e.offsetY,h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=0,n=0,i=(arguments.length>1?arguments[1]:void 0).getBoundingClientRect();return e=t.pageX-i.left,n=t.pageY-i.top,{x:e-=window.pageXOffset,y:n-=window.pageYOffset}}(t,r);i=h.x,o=h.y,i>r.offsetWidth-a/c&&(i=r.offsetWidth-a/c),ir.offsetHeight-s/c&&(o=r.offsetHeight-s/c),o10&&(r=c),s>10&&e&&(r=u),r},st=function(t,e,n){return Math.floor((t-e)/n)||1},ct=function(t){var e=document.createElement("div");return e.className="cloudimage-360-icons-container",t.appendChild(e),e},ut=function(t,e){var n=document.createElement("div");return n.className="cloudimage-360-box-shadow",n.style.boxShadow=t,e.appendChild(n),n},lt=function(t){var e=document.createElement("div");return e.className="cloudimage-360-loader",t.appendChild(e),e},dt=function(t,e){if(t&&e)try{t.removeChild(e)}catch(t){}},ht=function(t,e,n){for(var i=new Array(e).length-1;i>-1;i--){var o,r=null===(o=t[i])||void 0===o?void 0:o[n];if(r)return r}return"0%"},ft=function(t){var e="[data-hotspot-icon-id=".concat(t,"]");return document.querySelector(e)},pt=function(t){t.style.visibility="hidden",t.style.opacity=0},mt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"x-axis";e.forEach((function(e){var r=e.positions,a=e.initialDimensions,s=e.orientation,c=e.variant.anchorId,u=function(t){switch(t.toLowerCase()){case"x-axis":default:return"x";case"y-axis":return"y"}}(o),l="x"===s?n:i,d=function(t){return t.reduce((function(e,n,i){var o=!(null==n||!n.xCoord),r=!(null==n||!n.yCoord);return o||(n.xCoord=ht(t,i,"xCoord")),r||(n.yCoord=ht(t,i,"yCoord")),e.push(n),e}),[])}(r),h=d.find((function(t){return t.imageIndex===l})),f=ft(c);if(h&&u===s){var p=h.xCoord,m=void 0===p?0:p,v=h.yCoord;!function(t,e,n,i,o){n.style.visibility="visible",n.style.opacity=1,n.style.zIndex=100,n.style.left="".concat(-n.offsetWidth/2,"px"),n.style.top="".concat(-n.offsetHeight/2,"px");var r=t.offsetWidth/e[0],a=t.offsetHeight/e[1],s="".concat(r*i,"px"),c="".concat(a*o,"px");n.style.transform="translate3d(".concat(s,", ").concat(c,", 0)")}(t,a,f,m,void 0===v?0:v)}else pt(f)}))};function vt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function gt(t){return t instanceof vt(t).Element||t instanceof Element}function yt(t){return t instanceof vt(t).HTMLElement||t instanceof HTMLElement}function bt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof vt(t).ShadowRoot||t instanceof ShadowRoot)}var wt=Math.max,xt=Math.min,It=Math.round;function Ot(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function kt(){return!/^((?!chrome|android).)*safari/i.test(Ot())}function Et(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&yt(t)&&(o=t.offsetWidth>0&&It(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&It(i.height)/t.offsetHeight||1);var a=(gt(t)?vt(t):window).visualViewport,s=!kt()&&n,c=(i.left+(s&&a?a.offsetLeft:0))/o,u=(i.top+(s&&a?a.offsetTop:0))/r,l=i.width/o,d=i.height/r;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function St(t){var e=vt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ct(t){return t?(t.nodeName||"").toLowerCase():null}function jt(t){return((gt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Lt(t){return Et(jt(t)).left+St(t).scrollLeft}function Pt(t){return vt(t).getComputedStyle(t)}function At(t){var e=Pt(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Dt(t,e,n){void 0===n&&(n=!1);var i,o,r=yt(e),a=yt(e)&&function(t){var e=t.getBoundingClientRect(),n=It(e.width)/t.offsetWidth||1,i=It(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=jt(e),c=Et(t,a,n),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ct(e)||At(s))&&(u=(i=e)!==vt(i)&&yt(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:St(i)),yt(e)?((l=Et(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Lt(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Yt(t){var e=Et(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Tt(t){return"html"===Ct(t)?t:t.assignedSlot||t.parentNode||(bt(t)?t.host:null)||jt(t)}function Rt(t){return["html","body","#document"].indexOf(Ct(t))>=0?t.ownerDocument.body:yt(t)&&At(t)?t:Rt(Tt(t))}function Xt(t,e){var n;void 0===e&&(e=[]);var i=Rt(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=vt(i),a=o?[r].concat(r.visualViewport||[],At(i)?i:[]):i,s=e.concat(a);return o?s:s.concat(Xt(Tt(a)))}function Mt(t){return["table","td","th"].indexOf(Ct(t))>=0}function Ft(t){return yt(t)&&"fixed"!==Pt(t).position?t.offsetParent:null}function zt(t){for(var e=vt(t),n=Ft(t);n&&Mt(n)&&"static"===Pt(n).position;)n=Ft(n);return n&&("html"===Ct(n)||"body"===Ct(n)&&"static"===Pt(n).position)?e:n||function(t){var e=/firefox/i.test(Ot());if(/Trident/i.test(Ot())&&yt(t)&&"fixed"===Pt(t).position)return null;var n=Tt(t);for(bt(n)&&(n=n.host);yt(n)&&["html","body"].indexOf(Ct(n))<0;){var i=Pt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var Nt="top",Vt="bottom",Bt="right",_t="left",Wt="auto",Ht=[Nt,Vt,Bt,_t],qt="start",Ut="end",Zt="viewport",Gt="popper",Jt=Ht.reduce((function(t,e){return t.concat([e+"-"+qt,e+"-"+Ut])}),[]),$t=[].concat(Ht,[Wt]).reduce((function(t,e){return t.concat([e,e+"-"+qt,e+"-"+Ut])}),[]),Kt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qt(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function ee(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function ce(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?re(o):null,a=o?ae(o):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case Nt:e={x:s,y:n.y-i.height};break;case Vt:e={x:s,y:n.y+n.height};break;case Bt:e={x:n.x+n.width,y:c};break;case _t:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var u=r?se(r):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case qt:e[u]=e[u]-(n[l]/2-i[l]/2);break;case Ut:e[u]=e[u]+(n[l]/2-i[l]/2)}}return e}var ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,a=t.offsets,s=t.position,c=t.gpuAcceleration,u=t.adaptive,l=t.roundOffsets,d=t.isFixed,h=a.x,f=void 0===h?0:h,p=a.y,m=void 0===p?0:p,v="function"==typeof l?l({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=_t,w=Nt,x=window;if(u){var I=zt(n),O="clientHeight",k="clientWidth";I===vt(n)&&"static"!==Pt(I=jt(n)).position&&"absolute"===s&&(O="scrollHeight",k="scrollWidth"),(o===Nt||(o===_t||o===Bt)&&r===Ut)&&(w=Vt,m-=(d&&I===x&&x.visualViewport?x.visualViewport.height:I[O])-i.height,m*=c?1:-1),o!==_t&&(o!==Nt&&o!==Vt||r!==Ut)||(b=Bt,f-=(d&&I===x&&x.visualViewport?x.visualViewport.width:I[k])-i.width,f*=c?1:-1)}var E,S=Object.assign({position:s},u&&ue),C=!0===l?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:It(n*o)/o||0,y:It(i*o)/o||0}}({x:f,y:m},vt(n)):{x:f,y:m};return f=C.x,m=C.y,c?Object.assign({},S,((E={})[w]=y?"0":"",E[b]=g?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},S,((e={})[w]=y?m+"px":"",e[b]=g?f+"px":"",e.transform="",e))}const de={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s,u={placement:re(e.placement),variation:ae(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,le(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,le(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},he={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];yt(o)&&Ct(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});yt(i)&&Ct(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},fe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,a=$t.reduce((function(t,n){return t[n]=function(t,e,n){var i=re(t),o=[_t,Nt].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,[_t,Bt].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,r),t}),{}),s=a[e.placement],c=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}};var pe={left:"right",right:"left",bottom:"top",top:"bottom"};function me(t){return t.replace(/left|right|bottom|top/g,(function(t){return pe[t]}))}var ve={start:"end",end:"start"};function ge(t){return t.replace(/start|end/g,(function(t){return ve[t]}))}function ye(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&bt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function be(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function we(t,e,n){return e===Zt?be(function(t,e){var n=vt(t),i=jt(t),o=n.visualViewport,r=i.clientWidth,a=i.clientHeight,s=0,c=0;if(o){r=o.width,a=o.height;var u=kt();(u||!u&&"fixed"===e)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:r,height:a,x:s+Lt(t),y:c}}(t,n)):gt(e)?function(t,e){var n=Et(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):be(function(t){var e,n=jt(t),i=St(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=wt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=wt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-i.scrollLeft+Lt(t),c=-i.scrollTop;return"rtl"===Pt(o||n).direction&&(s+=wt(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}(jt(t)))}function xe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Ie(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Oe(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,a=void 0===r?t.strategy:r,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,l=void 0===u?Zt:u,d=n.elementContext,h=void 0===d?Gt:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=xe("number"!=typeof v?v:Ie(v,Ht)),y=h===Gt?"reference":Gt,b=t.rects.popper,w=t.elements[p?y:h],x=function(t,e,n,i){var o="clippingParents"===e?function(t){var e=Xt(Tt(t)),n=["absolute","fixed"].indexOf(Pt(t).position)>=0&&yt(t)?zt(t):t;return gt(n)?e.filter((function(t){return gt(t)&&ye(t,n)&&"body"!==Ct(t)})):[]}(t):[].concat(e),r=[].concat(o,[n]),a=r[0],s=r.reduce((function(e,n){var o=we(t,n,i);return e.top=wt(o.top,e.top),e.right=xt(o.right,e.right),e.bottom=xt(o.bottom,e.bottom),e.left=wt(o.left,e.left),e}),we(t,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(gt(w)?w:w.contextElement||jt(t.elements.popper),c,l,a),I=Et(t.elements.reference),O=ce({reference:I,element:b,strategy:"absolute",placement:o}),k=be(Object.assign({},b,O)),E=h===Gt?k:I,S={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},C=t.modifiersData.offset;if(h===Gt&&C){var j=C[o];Object.keys(S).forEach((function(t){var e=[Bt,Vt].indexOf(t)>=0?1:-1,n=[Nt,Vt].indexOf(t)>=0?"y":"x";S[t]+=j[n]*e}))}return S}const ke={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,v=e.options.placement,g=re(v),y=c||(g!==v&&p?function(t){if(re(t)===Wt)return[];var e=me(t);return[ge(t),e,ge(e)]}(v):[me(v)]),b=[v].concat(y).reduce((function(t,n){return t.concat(re(n)===Wt?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?$t:c,l=ae(i),d=l?s?Jt:Jt.filter((function(t){return ae(t)===l})):Ht,h=d.filter((function(t){return u.indexOf(t)>=0}));0===h.length&&(h=d);var f=h.reduce((function(e,n){return e[n]=Oe(t,{placement:n,boundary:o,rootBoundary:r,padding:a})[re(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),w=e.rects.reference,x=e.rects.popper,I=new Map,O=!0,k=b[0],E=0;E=0,P=L?"width":"height",A=Oe(e,{placement:S,boundary:l,rootBoundary:d,altBoundary:h,padding:u}),D=L?j?Bt:_t:j?Vt:Nt;w[P]>x[P]&&(D=me(D));var Y=me(D),T=[];if(r&&T.push(A[C]<=0),s&&T.push(A[D]<=0,A[Y]<=0),T.every((function(t){return t}))){k=S,O=!1;break}I.set(S,T)}if(O)for(var R=function(t){var e=b.find((function(e){var n=I.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},X=p?3:1;X>0&&"break"!==R(X);X--);e.placement!==k&&(e.modifiersData[i]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ee(t,e,n){return wt(t,xt(e,n))}const Se={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,v=Oe(e,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),g=re(e.placement),y=ae(e.placement),b=!y,w=se(g),x="x"===w?"y":"x",I=e.modifiersData.popperOffsets,O=e.rects.reference,k=e.rects.popper,E="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(I){if(r){var L,P="y"===w?Nt:_t,A="y"===w?Vt:Bt,D="y"===w?"height":"width",Y=I[w],T=Y+v[P],R=Y-v[A],X=f?-k[D]/2:0,M=y===qt?O[D]:k[D],F=y===qt?-k[D]:-O[D],z=e.elements.arrow,N=f&&z?Yt(z):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=V[P],_=V[A],W=Ee(0,O[D],N[D]),H=b?O[D]/2-X-W-B-S.mainAxis:M-W-B-S.mainAxis,q=b?-O[D]/2+X+W+_+S.mainAxis:F+W+_+S.mainAxis,U=e.elements.arrow&&zt(e.elements.arrow),Z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,G=null!=(L=null==C?void 0:C[w])?L:0,J=Y+q-G,$=Ee(f?xt(T,Y+H-G-Z):T,Y,f?wt(R,J):R);I[w]=$,j[w]=$-Y}if(s){var K,Q="x"===w?Nt:_t,tt="x"===w?Vt:Bt,et=I[x],nt="y"===x?"height":"width",it=et+v[Q],ot=et-v[tt],rt=-1!==[Nt,_t].indexOf(g),at=null!=(K=null==C?void 0:C[x])?K:0,st=rt?it:et-O[nt]-k[nt]-at+S.altAxis,ct=rt?et+O[nt]+k[nt]-at-S.altAxis:ot,ut=f&&rt?function(t,e,n){var i=Ee(t,e,n);return i>n?n:i}(st,et,ct):Ee(f?st:it,et,f?ct:ot);I[x]=ut,j[x]=ut-et}e.modifiersData[i]=j}},requiresIfExists:["offset"]},Ce={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=re(n.placement),c=se(s),u=[_t,Bt].indexOf(s)>=0?"height":"width";if(r&&a){var l=function(t,e){return xe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ie(t,Ht))}(o.padding,n),d=Yt(r),h="y"===c?Nt:_t,f="y"===c?Vt:Bt,p=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],v=zt(r),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=p/2-m/2,b=l[h],w=g-d[u]-l[f],x=g/2-d[u]/2+y,I=Ee(b,x,w),O=c;n.modifiersData[i]=((e={})[O]=I,e.centerOffset=I-x,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&ye(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Le(t){return[Nt,Bt,Vt,_t].some((function(e){return t[e]>=0}))}var Pe=ne({defaultModifiers:[oe,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=ce({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},de,he,fe,ke,Se,Ce,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,a=Oe(e,{elementContext:"reference"}),s=Oe(e,{altBoundary:!0}),c=je(a,i),u=je(s,o,r),l=Le(c),d=Le(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),Ae=function(t,e){e||(t.removeAttribute("data-show"),t.removeAttribute("data-cloudimage-360-show"))};var De=function(t,e,n){var i,o,r=t.images,a=t.title,s=t.description,c=t.moreDetailsUrl,u=t.moreDetailsTitle,l=void 0===u?"Read more":u,d=document.createElement("div");if(d.className="cloudimage-360-modal-wrapper",r){var h=document.createElement("div"),f=(i=function(t,e,n){var i=document.createElement("div"),o=document.createElement("div");return i.className="cloudimage-360-images-carousel",i.style.maxWidth="".concat(n.offsetWidth,"px"),o.className="cloudimage-360-carousel-dots",t.forEach((function(t,n){var r=function(t,e){var n=document.createElement("img");return n.className="cloudimage-360-carousel-image",n.setAttribute("src",t.src||""),n.setAttribute("alt",t.alt||"more-info"),e||(n.setAttribute("data-active-image",""),n.className+=" active-image"),n}(t,n),a=function(t,e,n){var i=document.createElement("button");return i.className="cloudimage-360-carousel-dot",i.onclick=function(){return function(t,e,n){var i=n.querySelector("[data-active-dot]"),o=n.querySelector("[data-active-image]");i.classList.remove("active-dot"),i.removeAttribute("data-active-dot"),o.classList.remove("active-image"),o.removeAttribute("data-active-image"),t.className+=" active-image",t.setAttribute("data-active-image",""),e.className+=" active-dot",e.setAttribute("data-active-dot","")}(t,i,n)},e||(i.className+=" active-dot",i.setAttribute("data-active-dot","")),i}(r,n,e);o.appendChild(a),i.appendChild(r)})),[i,o]}(r,n,e),o=2,function(t){if(Array.isArray(t))return t}(i)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,u=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(i,o)||z(i,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],m=f[1];h.appendChild(p),r.length>1&&h.appendChild(m),d.appendChild(h),h.className="cloudimage-360-images-carousel-wrapper"}if(a){var v=function(t){var e=document.createElement("h4");return e.innerText=t,e.className="cloudimage-360-modal-title",e}(a);d.appendChild(v)}if(s){var g=function(t){var e=document.createElement("p");return e.innerText=t,e.className="cloudimage-360-modal-description",e}(s);d.appendChild(g)}if(c){var y=function(t,e){var n=document.createElement("a");return n.href=t,n.innerText=e,n.className="cloudimage-360-modal-more-details",n.target="_blank",n}(c,l);d.appendChild(y)}n.appendChild(d)},Ye=function(e,n){n.forEach((function(n){var i=n.popupProps,o=function(e,n,i){var o,r=n.variant,a=i.popupSelector,s=i.arrow,c=r.url,u=r.images,l=r.title,d=r.anchorId,h=r.description,f=r.moreDetailsUrl,p=document.createElement("div");if(p.className="cloudimage-360-hotspot-popup ".concat(a),p.setAttribute("data-hotspot-popup-id",d),p.setAttribute("data-cloudimage-360-hotspot",""),p.style.minHeight=16,p.style.minWidth=16,p.style.cursor="default",p.onclick=function(t){return t.stopPropagation()},"object"===t(r)&&u||h||f||l&&!c)De(r,e,p);else if(c){var m=function(t){var e=t.url,n=t.title,i=t.newTab,o=document.createElement("a");return o.href=e,o.innerText=n,i&&(o.target="_blank"),o}(r);p.appendChild(m)}else if("string"==typeof r)try{var v=(o=r,document.querySelector("[".concat("data-cloudimage-360-hotspots","=").concat(o,"]"))),g=v.cloneNode(!0);p.appendChild(g),v.parentNode.removeChild(v)}catch(t){console.error("Cloudimage-360: Element with anchorId '".concat(d,"' not exist in the DOM"))}if(s){var y=function(){var t=document.createElement("div");return t.setAttribute("data-popper-arrow",""),t.setAttribute("data-cloudimage-360-hotspot",""),t.className="cloudimage-360-popup-arrow",t}();p.appendChild(y)}return e.appendChild(p),p}(e,n,i),r=function(t,e,n){var i=e.placement,o=e.offset,r=document.createElement("div"),a=Pe(r,t);return a.setOptions({placement:i,modifiers:[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{boundary:n}}]}),a}(o,i,e),a=function(t,e,n,i){var o,r=e.indicatorSelector,a=e.variant,s=a.url,c=a.anchorId,u=e.popupProps.open,l=void 0!==u&&u,d=document.createElement("div");return d.style.position="absolute",d.className="cloudimage-360-hotspot-".concat(s?"link":"custom","-icon ").concat(r),d.setAttribute("data-hotspot-icon-id",c),d.setAttribute("data-cloudimage-360-hotspot",""),d.onclick=function(t){return t.stopPropagation()},["mouseenter","touchstart","focus"].forEach((function(t){d.addEventListener(t,(function(){return function(t,e){t.setAttribute("data-show",""),t.setAttribute("data-cloudimage-360-show",""),e.update()}(n,i)}))})),l||["mouseleave","blur"].forEach((function(t){d.addEventListener(t,(function(){return setTimeout((function(){return Ae(n,o)}),160)}))})),n.addEventListener("mouseenter",(function(){o=!0})),n.addEventListener("mouseleave",(function(){o=!1,!l&&Ae(n,o)})),pt(d),t.appendChild(d),d}(e,n,o,r);r.state.elements.reference=a,r.update()}))};function Te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Re(t){for(var e=1;e=this.amountX?(this.activeImageX=this.amountX,(e?this.leftElem:this.rightElem)&&ot(e?this.leftElem:this.rightElem,"not-active")):(this.activeImageX+=t,this.rightElem&&rt(this.rightElem,"not-active"),this.leftElem&&rt(this.leftElem,"not-active")):(this.activeImageX=(this.activeImageX+t)%this.amountX||this.amountX,this.activeImageX===this.amountX&&this.allowSpinY&&(this.spinY=!0))}},{key:"moveActiveIndexDown",value:function(t){var e=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageX-t<=1?(this.activeImageX=1,(e?this.rightElem:this.leftElem)&&ot(e?this.rightElem:this.leftElem,"not-active")):(this.activeImageX-=t,this.leftElem&&rt(this.leftElem,"not-active"),this.rightElem&&rt(this.rightElem,"not-active")):this.activeImageX-t<1?(this.activeImageX=this.amountX+(this.activeImageX-t),this.spinY=!0):this.activeImageX-=t}},{key:"moveActiveYIndexUp",value:function(t){var e=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageY+t>=this.amountY?(this.activeImageY=this.amountY,(e?this.bottomElem:this.topElem)&&ot(e?this.bottomElem:this.topElem,"not-active")):(this.activeImageY+=t,this.topElem&&rt(this.topElem,"not-active"),this.bottomElem&&rt(this.bottomElem,"not-active")):(this.activeImageY=(this.activeImageY+t)%this.amountY||this.amountY,this.activeImageY===this.amountY&&(this.spinY=!1))}},{key:"moveActiveYIndexDown",value:function(t){var e=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageY-t<=1?(this.activeImageY=1,(e?this.topElem:this.bottomElem)&&ot(e?this.topElem:this.bottomElem,"not-active")):(this.activeImageY-=t,this.bottomElem&&rt(this.bottomElem,"not-active"),this.topElem&&rt(this.topElem,"not-active")):this.activeImageY-t<1?(this.activeImageY=this.amountY+(this.activeImageY-t),this.spinY=!1):this.activeImageY-=t}},{key:"moveRight",value:function(t){var e=st(t,this.movementStart.x,this.speedFactor);this.spinReverse?this.moveActiveIndexDown(e):this.moveActiveIndexUp(e),this.movementStart.x=t,this.activeImageY=1,this.update()}},{key:"moveLeft",value:function(t){var e=st(this.movementStart.x,t,this.speedFactor);this.spinReverse?this.moveActiveIndexUp(e):this.moveActiveIndexDown(e),this.activeImageY=1,this.movementStart.x=t,this.update()}},{key:"moveTop",value:function(t){var e=st(this.movementStart.y,t,this.speedFactor);this.spinReverse?this.moveActiveYIndexUp(e):this.moveActiveYIndexDown(e),this.activeImageX=1,this.movementStart.y=t,this.update()}},{key:"moveBottom",value:function(t){var e=st(t,this.movementStart.y,this.speedFactor);this.spinReverse?this.moveActiveYIndexDown(e):this.moveActiveYIndexUp(e),this.activeImageX=1,this.movementStart.y=t,this.update()}},{key:"onMoveHandler",value:function(t){var e=this.isMobile?t.touches[0].clientX:t.pageX,n=this.isMobile?t.touches[0].clientY:t.pageY,i=e-this.movementStart.x>=this.speedFactor,o=this.movementStart.x-e>=this.speedFactor,r=this.movementStart.y-n>=this.speedFactor,a=n-this.movementStart.y>=this.speedFactor;this.bottomCircle&&this.hide360ViewCircleIcon(),i&&this.movingDirection===c?(this.moveRight(e),this.isStartSpin=!0):o&&this.movingDirection===c?(this.moveLeft(e),this.isStartSpin=!0):r&&this.movingDirection===u?(this.moveTop(n),this.isStartSpin=!0):a&&this.movingDirection===u&&(this.moveBottom(n),this.isStartSpin=!0)}},{key:"left",value:function(){this.movingDirection=c,this.activeImageY=this.reversed?this.amountY:1,this.moveActiveIndexDown(1),this.update()}},{key:"right",value:function(){this.movingDirection=c,this.activeImageY=this.reversed?this.amountY:1,this.moveActiveIndexUp(1),this.update()}},{key:"top",value:function(){this.movingDirection=u,this.activeImageX=this.reversed?this.amountX:1,this.moveActiveYIndexUp(1),this.update()}},{key:"bottom",value:function(){this.movingDirection=u,this.activeImageX=this.reversed?this.amountX:1,this.moveActiveYIndexDown(1),this.update()}},{key:"loop",value:function(t){var e={left:this.left.bind(this),right:this.right.bind(this),top:this.top.bind(this),bottom:this.bottom.bind(this)};!function(t,e,n,i){var o=i.bottom,c=i.top,u=i.left,l=i.right;switch(t){case r:n?o():c();break;case a:case s:e?n?o():c():n?u():l();break;default:n?u():l()}}(this.autoplayBehavior,this.spinY,t,e)}},{key:"updateContainerAndCanvasSize",value:function(e){var n=function(e,n){try{var i=e.width/e.height;if("number"==typeof n&&(i=n),n&&"object"===t(n)){var o=Object.keys(n).sort((function(t,e){return t-e})).find((function(t){return window.innerWidth<=parseInt(t,10)}));o&&(i=n[o])}return i}catch(t){return 1}}(e,this.ratio);if(this.fullscreenView)return this.container.width=window.innerWidth*this.devicePixelRatio,this.container.style.width=window.innerWidth+"px",this.container.height=window.innerHeight*this.devicePixelRatio,this.container.style.height=window.innerHeight+"px",this.container.style.maxWidth="unset",this.canvas.width=window.innerWidth*this.devicePixelRatio,this.canvas.style.width=window.innerWidth+"px",this.canvas.height=window.innerHeight*this.devicePixelRatio,void(this.canvas.style.height=window.innerHeight+"px");this.canvas.width=this.container.offsetWidth*this.devicePixelRatio,this.canvas.style.width=this.container.offsetWidth+"px",this.canvas.height=this.container.offsetWidth/n*this.devicePixelRatio,this.canvas.style.height=this.container.offsetWidth/n+"px"}},{key:"onResizedImageLoad",value:function(t,e,n){t===u?this.resizedImagesY[n]=e:this.resizedImagesX[n]=e,this.resizedImagesX.length+this.resizedImagesY.length===this.amountX+this.amountY&&(this.imagesX=this.resizedImagesX,this.imagesY=this.resizedImagesY,this.update())}},{key:"showImageInfo",value:function(t){t.font="".concat(this.fullscreenView?28:14,"px serif"),t.fillStyle="white"===this.info?"#FFF":"#000";var e="image-dimension: ".concat(this.container.offsetWidth,"x").concat(this.container.offsetHeight,"px"),n=["active-index-x: "+this.activeImageX,"active-index-y: "+this.activeImageY].join(" | ");t.fillText(e,20,this.container.offsetHeight-35),t.fillText(n,20,this.container.offsetHeight-10)}},{key:"requestResizedImages",value:function(){if(this.isReady()){var t=this.ciParams.ciToken,e=this.imagesX[0];if(this.update(),t&&this.requestResponsiveImages&&!(this.container.offsetWidth<1.5*e.width)){this.speedFactor=it(this.dragSpeed,this.amountX,this.container.offsetWidth);var n=R(this.srcXConfig);if(q(this.srcXConfig,n,this.onResizedImageLoad.bind(this,c)),this.allowSpinY){var i=R(this.srcYConfig);q(this.srcYConfig,i,this.onResizedImageLoad.bind(this,u))}}}}},{key:"update",value:function(){var t=this.imagesX[this.activeImageX-1];if(this.movingDirection===u&&(t=this.imagesY[this.activeImageY-1]),t){var e=this.canvas.getContext("2d");if(e.scale(this.devicePixelRatio,this.devicePixelRatio),this.updateContainerAndCanvasSize(t),this.fullscreenView){var n=et(this.canvas.width,this.canvas.height,t.width,t.height),i=n.width,o=n.height,r=n.offsetX,a=n.offsetY;e.drawImage(t,r,a,i,o)}else this.mouseTracked?this.updateImageScale(e):(this.hotspotsConfigs&&!this.autoplay&&mt(this.container,this.hotspotsConfigs,this.activeImageX,this.activeImageY,this.movingDirection,this.isClicked),e.drawImage(t,0,0,this.canvas.width,this.canvas.height));this.info&&this.showImageInfo(e)}}},{key:"updateImageScale",value:function(t){var e=this.originalImagesX[this.activeImageX-1];this.movingDirection===u&&(e=this.originalImagesY[this.activeImageY-1]);var n=this.getCursorPositionInCanvas(),i=this.canvas.width,o=this.canvas.height,r=this.canvas.width*this.zoomIntensity,a=this.canvas.height*this.zoomIntensity,s=0-n.x/i*(r-this.canvas.width),c=0-n.y/o*(a-this.canvas.height);t.drawImage(e,s,c,r,a)}},{key:"updatePercentageInLoader",value:function(t){this.loader&&(this.loader.style.width=t+"%"),this.view360Icon&&(this.view360Icon.innerText=t+"%")}},{key:"onFirstImageLoaded",value:function(t){this.add360ViewIcon();var e=this.canvas.getContext("2d");if(e.scale(this.devicePixelRatio,this.devicePixelRatio),this.updateContainerAndCanvasSize(t),this.fullscreenView){var n=et(this.canvas.width,this.canvas.height,t.width,t.height),i=n.offsetX,o=n.offsetY,r=n.width,a=n.height;this.offset={x:i,y:o},this.addCloseFullscreenView(),e.drawImage(t,i,o,r,a)}else e.drawImage(t,0,0,this.canvas.width,this.canvas.height);this.info&&this.showImageInfo(e),this.magnifier&&this.addMagnifier(),this.boxShadow&&!this.fullscreenView&&(this.boxShadowEl=ut(this.boxShadow,this.innerBox)),this.bottomCircle&&!this.fullscreenView&&this.add360ViewCircleIcon(),this.fullscreen&&!this.fullscreenView&&this.addFullscreenIcon()}},{key:"onAllImagesLoaded",value:function(){if(this.removeLoader(),this.imagesLoaded=!0,this.autoplay&&this.pointerZoom?this.container.style.cursor="zoom-in":this.container.style.cursor="grab",this.speedFactor=it(this.dragSpeed,this.amountX,this.container.offsetWidth),this.autoplay&&this.play(),this.disableDrag&&(this.container.style.cursor="default"),this.view360Icon){if(this.hide360Logo)return this.remove360ViewIcon();this.view360Icon.innerText="",this.logoSrc&&p(this.view360Icon,this.logoSrc)}this.initControls()}},{key:"magnify",value:function(t){var e=this;t.stopPropagation(),this.mouseTracked&&this.togglePointerZoom();var n,i,o,r,a,s,c,l,d=(n=this.movingDirection,i=this.imagesX,o=this.imagesY,r=this.activeImageX,a=this.activeImageY,s=new Image,c=i.map((function(t){return t.src.replace(N,"").replace(V,"?")})),l=o.map((function(t){return t.src.replace(N,"").replace(V,"?")})),s.src=c[r-1],n===u&&(s.src=l[a-1]),s);this.isMagnifyOpen=!0,d.onload=function(){e.glass&&(e.glass.style.cursor="none")},this.glass=document.createElement("div"),this.container.style.overflow="hidden",function(t,e,n,i,o){var r=e||{},a=r.x,s=void 0===a?0:a,c=r.y,u=void 0===c?0:c,l=(t.offsetWidth-2*s)*o,d=(t.offsetHeight-2*u)*o;i.setAttribute("class","cloudimage-360-img-magnifier-glass"),t.prepend(i),i.style.backgroundImage="url('".concat(n.src,"')"),i.style.backgroundSize="".concat(l,"px ").concat(d,"px");var h={container:t,w:i.offsetWidth/2,h:i.offsetHeight/2,zoom:o,bw:3,offsetX:s,offsetY:u},f=function(t){nt(t,h,i)},p=function(t){nt(t,h,i)};i.addEventListener("mousemove",f),t.addEventListener("mousemove",f),i.addEventListener("touchmove",p,{passive:!0}),t.addEventListener("touchmove",p,{passive:!0})}(this.container,this.offset,d,this.glass,this.magnifier||3)}},{key:"closeMagnifier",value:function(){this.glass&&(this.container.style.overflow="visible",this.container.removeChild(this.glass),this.glass=null,this.isMagnifyOpen=!1)}},{key:"openFullscreenModal",value:function(t){t.stopPropagation(),this.mouseTracked&&this.togglePointerZoom(),new e(function(t){var e=document.createElement("div");e.className="cloudimage-360-fullscreen-modal";var n=t.cloneNode();return n.style.height="100%",n.style.maxHeight="100%",e.appendChild(n),window.document.body.style.overflow="hidden",window.document.body.appendChild(e),n}(this.container),!0,this.hotspotsConfigs)}},{key:"setFullscreenEvents",value:function(t,e){if("click"===e.type)return this.closeFullscreenModal(e);"Escape"===e.key&&this.container.parentNode.parentNode===document.body&&this.closeFullscreenModalOnEsc(e)}},{key:"closeFullscreenModalOnEsc",value:function(t){this.closeFullscreenModal(t)}},{key:"play",value:function(){var t=this;this.bottomCircle&&this.hide360ViewCircleIcon(),this.remove360ViewIcon(),this.loopTimeoutId=window.setInterval((function(){t.loop(t.reversed);var e=function(t,e,n,i,o,s){switch(t){case a:case r:return!!(s?1===n:n===o);default:return!!(s?1===e:e===i)}}(t.autoplayBehavior,t.activeImageX,t.activeImageY,t.amountX,t.amountY,t.reversed);t.playOnce&&e&&(window.clearTimeout(t.loopTimeoutId),t.autoplay=!1,t.hotspotsConfigs&&mt(t.container,t.hotspotsConfigs,t.activeImageX,t.activeImageY,t.movingDirection,t.isClicked))}),this.autoplaySpeed)}},{key:"stop",value:function(){this.bottomCircle&&this.show360ViewCircleIcon(),window.clearTimeout(this.loopTimeoutId)}},{key:"updateView",value:function(t,n){var i,o,r=this,a=this.container,s=d(a);if(i=this,o=s,Object.keys(o).reduce((function(t,e){var n=i[e]!==o[e];return-1!==Y.indexOf(e)&&n&&(t=!0),t}),!1)||t){var c=this.container,u=n.findIndex((function(t){return t.id===r.container.id}));return a.removeChild(this.innerBox),(a=a.cloneNode(!0)).className=a.className.replace(" initialized",""),c.parentNode.replaceChild(a,c),n.splice(u,1,new e(a))}a.style.position="relative",a.style.width="100%",a.style.cursor="default",a.setAttribute("draggable","false"),this.stop(),this.init(a,!0)}},{key:"destroy",value:function(){this.stop();var t=this.container,e=t.cloneNode(!0),n=e.querySelector(".cloudimage-360-inner-box");e.className=e.className.replace(" initialized",""),e.style.position="relative",e.style.width="100%",e.style.cursor="default",e.setAttribute("draggable","false"),e.style.minHeight="auto",e.removeChild(n),t.parentNode.replaceChild(e,t)}},{key:"addCloseFullscreenView",value:function(t){var e=function(){var t=document.createElement("div");return t.className="cloudimage-360-close-fullscreen-icon",t}();e.onclick=this.setFullscreenEvents.bind(this,t),window.onkeyup=this.setFullscreenEvents.bind(this,t),this.iconsContainer.appendChild(e)}},{key:"add360ViewIcon",value:function(){var t;this.view360Icon=((t=document.createElement("div")).className="cloudimage-360-view-360-icon",t.innerText="0%",t),this.innerBox.appendChild(this.view360Icon)}},{key:"addFullscreenIcon",value:function(){var t;this.fullscreenIcon=((t=document.createElement("div")).className="cloudimage-360-fullscreen-icon",t),this.fullscreenIcon.onclick=this.openFullscreenModal.bind(this),this.iconsContainer.appendChild(this.fullscreenIcon)}},{key:"showFullscreenIcon",value:function(){this.fullscreenIcon&&(this.fullscreenIcon.style.display="block",this.fullscreenIcon.style.pointerEvents="auto")}},{key:"hideFullscreenIcon",value:function(){this.fullscreenIcon&&(this.fullscreenIcon.style.display="none",this.fullscreenIcon.style.pointerEvents="none")}},{key:"addMagnifier",value:function(){var t;this.magnifierIcon=((t=document.createElement("div")).className="cloudimage-360-magnifier-icon",t),this.magnifierIcon.onclick=this.magnify.bind(this),this.iconsContainer.appendChild(this.magnifierIcon)}},{key:"enableMagnifierIcon",value:function(){this.magnifierIcon&&(this.magnifierIcon.style.display="block",this.magnifierIcon.style.pointerEvents="auto")}},{key:"disableMagnifierIcon",value:function(){this.magnifierIcon&&(this.magnifierIcon.style.display="none",this.magnifierIcon.style.pointerEvents="none")}},{key:"closeFullscreenModal",value:function(t){t.stopPropagation(),document.body.removeChild(this.container.parentNode),window.document.body.style.overflow="visible"}},{key:"add360ViewCircleIcon",value:function(){var t,e;this.view360CircleIcon=(t=this.bottomCircleOffset,(e=new Image).src="https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/360.svg",e.style.bottom="".concat(t,"%"),e.className="cloudimage-360-view-360-circle",e),this.innerBox.appendChild(this.view360CircleIcon)}},{key:"show360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.view360CircleIcon.style.opacity="1")}},{key:"hide360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.view360CircleIcon.style.opacity="0")}},{key:"remove360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.innerBox.removeChild(this.view360CircleIcon),this.view360CircleIcon=null)}},{key:"removeLoader",value:function(){this.loader&&(this.innerBox.removeChild(this.loader),this.loader=null)}},{key:"remove360ViewIcon",value:function(){if(this.view360Icon)try{this.innerBox.removeChild(this.view360Icon),this.view360Icon=null}catch(t){}}},{key:"initControls",value:function(){var t=this,e=function(t,e){var n=t.container,i=t.spinReverse,o=t.stopAtEdges,r=e.onRightStart,a=e.onLeftStart,s=e.onTopStart,c=e.onBottomStart,u=e.onEventEnd,l={},d=t.controlReverse?!i:i,h=n.querySelectorAll(".cloudimage-360-left, .cloudimage-360-prev")[0],f=n.querySelectorAll(".cloudimage-360-right, .cloudimage-360-next")[0],p=n.querySelector(".cloudimage-360-top"),m=n.querySelector(".cloudimage-360-bottom");return h&&(h.style.display="block",h.addEventListener("mousedown",d?r:a),h.addEventListener("touchstart",d?r:a,{passive:!0}),h.addEventListener("mouseup",u),h.addEventListener("touchend",u),l.left=h),f&&(f.style.display="block",f.addEventListener("mousedown",d?a:r),f.addEventListener("touchstart",d?a:r,{passive:!0}),f.addEventListener("mouseup",u),f.addEventListener("touchend",u),l.right=f),p&&(p.style.display="block",p.addEventListener("mousedown",d?c:s),p.addEventListener("touchstart",d?c:s),p.addEventListener("mouseup",u),p.addEventListener("touchend",u),l.top=p),m&&(m.style.display="block",m.addEventListener("mousedown",d?s:c),m.addEventListener("touchstart",d?s:c),m.addEventListener("mouseup",u),m.addEventListener("touchend",u),l.bottom=m),(d?f:h)&&o&&(ot(d?f:h,"not-active"),ot(d?p:m,"not-active")),l}({container:this.container,controlReverse:this.controlReverse,spinReverse:this.spinReverse,stopAtEdges:this.stopAtEdges},{onLeftStart:function(e){e.stopPropagation(),t.onSpin(),t.left(),t.loopTimeoutId=window.setInterval(t.left.bind(t),t.autoplaySpeed)},onRightStart:function(e){e.stopPropagation(),t.onSpin(),t.right(),t.loopTimeoutId=window.setInterval(t.right.bind(t),t.autoplaySpeed)},onTopStart:function(e){e.stopPropagation(),t.onSpin(),t.top(),t.loopTimeoutId=window.setInterval(t.top.bind(t),t.autoplaySpeed)},onBottomStart:function(e){e.stopPropagation(),t.onSpin(),t.bottom(),t.loopTimeoutId=window.setInterval(t.bottom.bind(t),t.autoplaySpeed)},onEventEnd:function(){t.onFinishSpin(),window.clearTimeout(t.loopTimeoutId)}});this.topElem=e.top,this.bottomElem=e.bottom,this.leftElem=e.left,this.rightElem=e.right}},{key:"attachEvents",value:function(t,e,n){window.addEventListener("resize",this.requestResizedImages.bind(this)),t&&!this.disableDrag&&(this.container.addEventListener("click",this.mouseClick.bind(this)),this.container.addEventListener("mousedown",this.mouseDown.bind(this)),this.container.addEventListener("mousemove",this.mouseMove.bind(this)),this.container.addEventListener("mouseleave",this.mouseLeave.bind(this)),document.addEventListener("mouseup",this.mouseUp.bind(this))),e&&!this.disableDrag&&(this.container.addEventListener("touchstart",this.touchStart.bind(this),{passive:!0}),this.container.addEventListener("touchend",this.touchEnd.bind(this)),this.container.addEventListener("touchmove",this.touchMove.bind(this))),n&&(document.addEventListener("keydown",this.keyDown.bind(this)),document.addEventListener("keyup",this.keyUp.bind(this))),document.addEventListener("keydown",this.keyDownGeneral.bind(this))}},{key:"init",value:function(t){var e,n,i=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=d(t),a=r.folder,l=r.apiVersion,h=r.filenameX,f=r.filenameY,m=r.imageListX,v=r.imageListY,g=r.indexZeroBase,y=r.amountX,b=r.amountY,w=r.draggable,x=void 0===w||w,I=r.swipeable,O=void 0===I||I,k=r.keys,E=r.keysReverse,S=r.bottomCircle,C=r.bottomCircleOffset,j=r.boxShadow,L=r.autoplay,P=r.autoplayBehavior,A=r.playOnce,D=r.speed,Y=r.autoplayReverse,T=r.disableDrag,X=void 0===T||T,M=r.fullscreen,F=r.magnifier,z=r.ciToken,N=r.ciFilters,V=r.ciTransformation,B=r.lazyload,_=r.lazySelector,W=r.spinReverse,H=r.dragSpeed,U=r.stopAtEdges,Z=r.controlReverse,G=r.hide360Logo,J=r.logoSrc,$=r.pointerZoom,K=r.ratio,Q=r.imageInfo,et=void 0===Q?"black":Q,nt=r.requestResponsiveImages,it={ciToken:z,ciFilters:N,ciTransformation:V};if(this.folder=a,this.apiVersion=l,this.filenameX=h,this.filenameY=f,this.imageListX=m,this.imageListY=v,this.indexZeroBase=g,this.amountX=m?JSON.parse(m).length:y,this.amountY=v?JSON.parse(v).length:b,this.allowSpinY=!!this.amountY,this.activeImageX=Y?this.amountX:1,this.activeImageY=Y?this.amountY:1,this.spinY=P===s,this.bottomCircle=S,this.bottomCircleOffset=C,this.boxShadow=j,this.autoplay=L,this.autoplayBehavior=P,this.playOnce=A,this.speed=D,this.reversed=Y,this.disableDrag=X,this.fullscreen=M,this.magnifier=!this.isMobile&&F>1?Math.min(F,5):0,this.lazySelector=_,this.spinReverse=W,this.controlReverse=Z,this.dragSpeed=Math.max(H,50),this.autoplaySpeed=36*this.speed/this.amountX,this.stopAtEdges=U,this.hide360Logo=G,this.logoSrc=J,this.ciParams=it,this.apiVersion=l,this.pointerZoom=$>1?Math.min($,3):0,this.keysReverse=E,this.info=et,this.keys=k,this.ratio=K&&JSON.parse(K),this.requestResponsiveImages=nt,o)return dt(this.innerBox,this.iconsContainer),dt(this.innerBox,this.boxShadowEl),dt(this.innerBox,this.view360Icon),this.remove360ViewCircleIcon(),this.iconsContainer=ct(this.innerBox),this.hide360Logo||this.lazyload||!this.logoSrc||(this.add360ViewIcon(),p(this.view360Icon,this.logoSrc)),this.magnifier&&this.addMagnifier(),this.bottomCircle&&!this.fullscreenView&&this.add360ViewCircleIcon(),this.fullscreen&&!this.fullscreenView&&this.addFullscreenIcon(),this.boxShadow&&!this.fullscreenView&&(this.boxShadowEl=ut(this.boxShadow,this.innerBox)),this.onAllImagesLoaded();this.innerBox=function(t){var e=document.createElement("div");return e.className="cloudimage-360-inner-box",t.appendChild(e),e}(this.container),this.iconsContainer=ct(this.innerBox),this.canvas=(e=this.innerBox,(n=document.createElement("canvas")).style.width="100%",n.style.fontSize="0",e.appendChild(n),n),this.loader=lt(this.innerBox),this.hotspotsConfigs&&!this.fullscreenView&&Ye(t,this.hotspotsConfigs),function(t){t.style.position="relative",t.style.width="100%",t.style.cursor="wait",t.setAttribute("draggable","false"),t.className="".concat(t.className," initialized")}(this.container),this.srcXConfig={folder:a,filename:h,imageList:m,container:t,innerBox:this.innerBox,apiVersion:l,ciParams:it,lazySelector:_,amount:this.amountX,indexZeroBase:g,fullscreen:this.fullscreenView},this.srcYConfig=ze(ze({},this.srcXConfig),{},{filename:f,orientation:u,imageList:v,amount:this.amountY});var ot=R(this.srcXConfig),rt=function(t,e,n){t===c?i.imagesX[n]=e:i.imagesY[n]=e;var o=i.amountX+i.amountY,r=i.imagesX.length+i.imagesY.length,a=!n&&t!==u,s=Math.round(r/o*100);i.updatePercentageInLoader(s),a?i.onFirstImageLoaded(e):i.autoplay&&i.moveRight(n),i.isReady()&&i.onAllImagesLoaded()},at=function(){if(q(i.srcXConfig,ot,rt.bind(i,c)),i.allowSpinY){var t=R(i.srcYConfig);q(i.srcYConfig,t,rt.bind(i,u))}};B?tt(ot,this.srcXConfig,(function(t){i.innerBox.removeChild(t),at()})):at(),this.attachEvents(x,O,k)}}],i&&o(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),e}();const Ve=Ne;function Be(){var t=[],e=document.querySelectorAll(".cloudimage-360:not(.initialized)");[].slice.call(e).forEach((function(e){var n=function(t){if(!t.id){var e=Math.floor(1e4*Math.random()),n="cloudimage-360-view-".concat(e);t.id=n}return t}(e);h(n,"hotspots")||t.push(new Ve(n))})),window.CI360._viewers=t}function _e(){return!(window.CI360._viewers&&window.CI360._viewers.length>0)}window.CI360=window.CI360||{},window.CI360.init=Be,window.CI360.destroy=function(){_e()||(window.CI360._viewers.forEach((function(t){t.destroy()})),window.CI360._viewers=[])},window.CI360.getActiveIndexByID=function(t,e){if(!_e()){var n=window.CI360._viewers.filter((function(e){return e.id===t}))[0];return"y"===e?n&&n.activeImageY-1:n&&n.activeImageX-1}},window.CI360.update=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?window.CI360._viewers.filter((function(e){return e.id===t}))[0].updateView(e,window.CI360._viewers):window.CI360._viewers.forEach((function(t){t.updateView(e,window.CI360._viewers)}))},window.CI360.add=function(t){var e=Array.from(document.querySelectorAll(".cloudimage-360:not(.initialized)"));if(e.length&&t){var n=e.filter((function(e){return e.id===t}))[0];n&&window.CI360._viewers.push(new Ve(n))}},window.CI360.addHotspots=function(t,e){var n=document.querySelectorAll(".cloudimage-360:not(.initialized)"),i=Array.from(n).find((function(e){return e.id===t}));i&&window.CI360._viewers.push(new Ve(i,!1,e))},window.CI360.notInitOnLoad||Be()})()})(); \ No newline at end of file +(()=>{var t={1442:(t,e,n)=>{(t.exports=n(6314)(!1)).push([t.id,".cloudimage-360-hotspot-link-icon {\r\n width: 42px;\r\n height: 42px;\r\n background: rgba(12, 109, 199, 0.2);\r\n border: 1px solid rgba(255, 255, 255, 0.2);\r\n border-radius: 50%;\r\n box-sizing: border-box;\r\n transition: opacity 600ms ease-in-out;\r\n cursor: auto;\r\n}\r\n\r\n.cloudimage-360-hotspot-link-icon::before {\r\n content: '';\r\n position: absolute;\r\n width: 16px;\r\n height: 16px;\r\n background-image: url('https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/link-hotspot.svg');\r\n background-color: #0C6DC7;\r\n background-repeat: no-repeat;\r\n background-size: 9px;\r\n background-position: center;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);\r\n border-radius: 50%;\r\n\tanimation: pulse 2s infinite;\r\n cursor: auto;\r\n}\r\n\r\n.cloudimage-360-hotspot-custom-icon {\r\n width: 42px;\r\n height: 42px;\r\n background: #76AD0133;\r\n border: 1px solid #FFFFFF33;\r\n border-radius: 50%;\r\n box-sizing: border-box;\r\n transition: opacity 300ms ease-in-out;\r\n cursor: auto;\r\n}\r\n\r\n.cloudimage-360-hotspot-custom-icon::before {\r\n content: '';\r\n position: absolute;\r\n width: 16px;\r\n height: 16px;\r\n background-image: url('https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/plus.svg');\r\n background-color: #76AD01;\r\n background-repeat: no-repeat;\r\n background-size: 9px;\r\n background-position: center;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.25);\r\n border-radius: 50%;\r\n\tanimation: pulse 2s infinite;\r\n cursor: auto;\r\n}\r\n\r\n.cloudimage-360-hotspot-popup {\r\n visibility: hidden;\r\n opacity: 0;\r\n background-color: #FFFFFF;\r\n padding: 6px;\r\n border-radius: 2px;\r\n box-shadow: 0px 4px 4px 0px #00000040;\r\n z-index: 999;\r\n}\r\n\r\n.cloudimage-360-hotspot-popup[data-show] {\r\n visibility: visible;\r\n opacity: 1;\r\n}\r\n\r\n.cloudimage-360-popup-arrow,\r\n.cloudimage-360-popup-arrow::before {\r\n position: absolute;\r\n width: 8px;\r\n height: 8px;\r\n background: inherit;\r\n cursor: 'auto';\r\n}\r\n\r\n.cloudimage-360-popup-arrow {\r\n visibility: hidden;\r\n}\r\n\r\n.cloudimage-360-popup-arrow::before {\r\n visibility: visible;\r\n content: '';\r\n transform: rotate(45deg);\r\n}\r\n\r\n.cloudimage-360-hotspot-popup[data-popper-placement^='top']\r\n > .cloudimage-360-popup-arrow {\r\n bottom: -4px;\r\n}\r\n\r\n.cloudimage-360-hotspot-popup[data-popper-placement^='bottom']\r\n > .cloudimage-360-popup-arrow {\r\n top: -4px;\r\n}\r\n\r\n.cloudimage-360-hotspot-popup[data-popper-placement^='left']\r\n > .cloudimage-360-popup-arrow {\r\n right: -4px;\r\n}\r\n\r\n.cloudimage-360-hotspot-popup[data-popper-placement^='right']\r\n > .cloudimage-360-popup-arrow {\r\n left: -4px;\r\n}\r\n\r\n.cloudimage-360-modal-wrapper {\r\n max-width: 222px;\r\n}\r\n\r\n.cloudimage-360-images-carousel-wrapper {\r\n margin: 0 auto;\r\n}\r\n\r\n.cloudimage-360-images-carousel {\r\n background-color: #f5f4f4;\r\n border-radius: 2px;\r\n}\r\n\r\n.cloudimage-360-images-carousel .cloudimage-360-carousel-image {\r\n display: none;\r\n object-fit: contain;\r\n min-height: 187px;\r\n max-width: 100%;\r\n max-height: 100%;\r\n}\r\n\r\n.cloudimage-360-images-carousel .cloudimage-360-carousel-image.active-image {\r\n display: block;\r\n animation-name: fade-active-image;\r\n animation-duration: 1.5s;\r\n}\r\n\r\n.cloudimage-360-carousel-dots {\r\n display: flex;\r\n column-gap: 6px;\r\n justify-content: center;\r\n flex-wrap: wrap;\r\n margin: 5px auto;\r\n row-gap: 3px;\r\n padding: 0 6px;\r\n width: 50%;\r\n}\r\n\r\n.cloudimage-360-carousel-dot {\r\n width: 6px;\r\n height: 6px;\r\n background-color: #C9D0DE;\r\n border-radius: 50%;\r\n cursor: pointer;\r\n transition: background-color 0.6s ease;\r\n border: 0;\r\n padding: 0;\r\n}\r\n\r\n.cloudimage-360-carousel-dot.active-dot {\r\n background-color: #76AD01;\r\n}\r\n\r\n.cloudimage-360-carousel-dot:focus,\r\n.cloudimage-360-carousel-dot:focus-visible {\r\n border: 0;\r\n outline: 0;\r\n}\r\n\r\n.cloudimage-360-modal-title {\r\n font-size: 12px;\r\n font-weight: 700;\r\n line-height: 16px;\r\n margin: 4px 0;\r\n}\r\n\r\n.cloudimage-360-modal-description {\r\n font-size: 10px;\r\n font-weight: 400;\r\n line-height: 16px;\r\n margin: 4px 0;\r\n}\r\n\r\n.cloudimage-360-modal-more-details {\r\n color: #76AD01;\r\n background-color: #ECFAE6;\r\n font-size: 10px;\r\n line-height: 16px;\r\n font-weight: 400;\r\n padding: 4px 8px;\r\n transition: background-color 200ms ease-in-out;\r\n border-radius: 2px;\r\n text-decoration: none;\r\n}\r\n\r\n.cloudimage-360-modal-more-details:hover {\r\n color: #76AD01;\r\n background-color: #e1f5d8;\r\n}\r\n\r\n@keyframes pulse {\r\n\t0% {\r\n\t\tbox-shadow: 0 0 0 0 rgba(99, 99, 99, 0.7);\r\n\t}\r\n\r\n\t70% {\r\n\t\tbox-shadow: 0 0 0 10px rgba(99, 99, 99, 0);\r\n\t}\r\n\r\n\t100% {\r\n\t\tbox-shadow: 0 0 0 0 rgba(99, 99, 99, 0);\r\n\t}\r\n}\r\n\r\n@keyframes fade-active-image {\r\n from { opacity: 0.7 }\r\n to { opacity: 1 }\r\n}",""])},1011:(t,e,n)=>{(t.exports=n(6314)(!1)).push([t.id,".cloudimage-360-icons-container {\r\n position: absolute;\r\n display: flex;\r\n top: 5px;\r\n right: 5px;\r\n width: 30px;\r\n height: 95%;\r\n flex-direction: column;\r\n align-items: center;\r\n z-index: 101;\r\n}\r\n\r\n.cloudimage-360-magnifier-icon {\r\n width: 25px;\r\n height: 25px;\r\n margin-bottom: 5px;\r\n cursor: pointer;\r\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/loupe.svg') 50% 50% / cover no-repeat;\r\n}\r\n\r\n.cloudimage-360-fullscreen-icon {\r\n width: 25px;\r\n height: 25px;\r\n margin-bottom: 5px;\r\n cursor: pointer;\r\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/full_screen.svg') 50% 50% / cover no-repeat;\r\n}\r\n\r\n.cloudimage-360-reset-zoom-icon {\r\n display: none;\r\n width: 30px;\r\n height: 30px;\r\n margin-top: auto;\r\n cursor: pointer;\r\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/ic-resize.svg?vh=248986') 50% 50% / cover no-repeat;\r\n}\r\n\r\n.cloudimage-360-close-fullscreen-icon {\r\n width: 25px;\r\n height: 25px;\r\n cursor: pointer;\r\n background: url('https://scaleflex.cloudimg.io/v7/filerobot/js-cloudimage-360-view/cross.svg') 50% 50% / cover no-repeat;\r\n}\r\n\r\n.cloudimage-360-loader {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n width: 0%;\r\n height: 8px;\r\n background-color: rgb(165, 175, 184);\r\n z-index: 100;\r\n}\r\n\r\n.cloudimage-360-box-shadow {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n bottom: 0;\r\n z-index: 99;\r\n}\r\n\r\n.cloudimage-360-view-360-icon {\r\n position: absolute;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n width: 100px;\r\n height: 100px;\r\n margin: auto;\r\n background-color: rgba(255, 255, 255, 0.8);\r\n border-radius: 50%;\r\n box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 4px;\r\n transition: 0.5s all;\r\n color: rgb(80, 80, 80);\r\n text-align: center;\r\n line-height: 100px;\r\n z-index: 2;\r\n}\r\n\r\n.cloudimage-360-view-360-circle {\r\n position: absolute;\r\n left: 0;\r\n right: 0;\r\n width: 80%;\r\n height: auto;\r\n margin: auto;\r\n pointer-events: none;\r\n user-select: none;\r\n transition: 0.5s all;\r\n z-index: 2;\r\n}\r\n\r\n.cloudimage-360-fullscreen-modal {\r\n position: fixed;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n width: 100%;\r\n height: 100%;\r\n z-index: 999;\r\n background-color: #FFF;\r\n}\r\n\r\n.cloudimage-360-img-magnifier-glass {\r\n background-color: #FFF;\r\n background-repeat: no-repeat;\r\n position: absolute;\r\n border: 3px solid #000;\r\n border-radius: 50%;\r\n cursor: wait;\r\n line-height: 200px;\r\n text-align: center;\r\n z-index: 1000;\r\n width: 250px;\r\n height: 250px;\r\n top: -75px;\r\n right: -85px;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-left,\r\n.cloudimage-360 .cloudimage-360-right {\r\n padding: 8px;\r\n background: rgb(244, 244, 244);\r\n border: none;\r\n border-radius: 4px;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-left:focus,\r\n.cloudimage-360 .cloudimage-360-right:focus {\r\n outline: none;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-left {\r\n display: none;\r\n position: absolute;\r\n z-index: 100;\r\n top: calc(50% - 15px);\r\n left: 20px;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-right {\r\n display: none;\r\n position: absolute;\r\n z-index: 100;\r\n top: calc(50% - 15px);\r\n right: 20px;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-left:before,\r\n.cloudimage-360 .cloudimage-360-right:before {\r\n content: '';\r\n display: block;\r\n width: 30px;\r\n height: 30px;\r\n background: 50% 50% / cover no-repeat;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-left:before {\r\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-left.svg');\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-right:before {\r\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-right.svg');\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-left.not-active,\r\n.cloudimage-360 .cloudimage-360-right.not-active {\r\n opacity: 0.4;\r\n cursor: default;\r\n pointer-events: none;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-top,\r\n.cloudimage-360 .cloudimage-360-bottom {\r\n padding: 8px;\r\n background: rgb(244, 244, 244);\r\n border: none;\r\n border-radius: 4px;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-top:focus,\r\n.cloudimage-360 .cloudimage-360-bottom:focus {\r\n outline: none;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-top {\r\n display: none;\r\n position: absolute;\r\n z-index: 100;\r\n left: calc(50% - 15px);\r\n top: 20px;\r\n transform: rotate(90deg);\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-bottom {\r\n display: none;\r\n position: absolute;\r\n z-index: 100;\r\n left: calc(50% - 15px);\r\n bottom: 20px;\r\n transform: rotate(90deg);\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-top:before,\r\n.cloudimage-360 .cloudimage-360-bottom:before {\r\n content: '';\r\n display: block;\r\n width: 30px;\r\n height: 30px;\r\n background: 50% 50% / cover no-repeat;\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-top:before {\r\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-left.svg');\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-bottom:before {\r\n background-image: url('https://cdn.scaleflex.it/plugins/js-cloudimage-360-view/assets/img/arrow-right.svg');\r\n}\r\n\r\n.cloudimage-360 .cloudimage-360-top.not-active,\r\n.cloudimage-360 .cloudimage-360-bottom.not-active {\r\n opacity: 0.4;\r\n cursor: default;\r\n}",""])},6314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,i=t[1]||"",r=t[3];if(!r)return i;if(e&&"function"==typeof btoa){var o=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[i].concat(a).concat([o]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},r=0;r{"use strict";var e=[];function n(t){for(var n=-1,i=0;i{"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},5056:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},1113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4633:(t,e,n)=>{var i=n(3738).default;function r(){"use strict";t.exports=r=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,n){return t[e]=n}}function f(t,e,n,i){var r=e&&e.prototype instanceof w?e:w,o=Object.create(r.prototype),a=new D(i||[]);return s(o,"_invoke",{value:L(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var m="suspendedStart",v="suspendedYield",g="executing",y="completed",b={};function w(){}function x(){}function I(){}var O={};h(O,u,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(T([])));E&&E!==o&&a.call(E,u)&&(O=E);var S=I.prototype=w.prototype=Object.create(O);function C(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(r,o,s,c){var u=p(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==i(d)&&a.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var r;s(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}})}function L(t,n,i){var r=m;return function(o,a){if(r===g)throw Error("Generator is already running");if(r===y){if("throw"===o)throw a;return{value:e,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var c=P(s,i);if(c){if(c===b)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===m)throw r=y,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var u=p(t,n,i);if("normal"===u.type){if(r=i.done?y:v,u.arg===b)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=y,i.method="throw",i.arg=u.arg)}}}function P(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var o=p(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function Y(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),Y(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;Y(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:T(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),b}},n}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},3738:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4756:(t,e,n)=>{var i=n(4633)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},5368:(t,e,n)=>{"use strict";var i=n(6127);t.exports=i},4525:(t,e,n)=>{"use strict";var i=n(2514);t.exports=i},6343:(t,e,n)=>{"use strict";var i=n(6612);t.exports=i},94:(t,e,n)=>{"use strict";n(2008);var i=n(7015);t.exports=i("Array","filter")},4883:(t,e,n)=>{"use strict";n(1629);var i=n(7015);t.exports=i("Array","forEach")},3609:(t,e,n)=>{"use strict";n(4423);var i=n(7015);t.exports=i("Array","includes")},19:(t,e,n)=>{"use strict";n(7641)},6086:(t,e,n)=>{"use strict";n(7956)},2288:(t,e,n)=>{"use strict";n(5914)},7641:(t,e,n)=>{"use strict";var i=n(5368);t.exports=i},7956:(t,e,n)=>{"use strict";var i=n(4525);t.exports=i},5914:(t,e,n)=>{"use strict";var i=n(6343);t.exports=i},9306:(t,e,n)=>{"use strict";var i=n(4901),r=n(6823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},6469:(t,e,n)=>{"use strict";var i=n(8227),r=n(2360),o=n(4913).f,a=i("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},8551:(t,e,n)=>{"use strict";var i=n(34),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},235:(t,e,n)=>{"use strict";var i=n(9213).forEach,r=n(4598)("forEach");t.exports=r?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},9617:(t,e,n)=>{"use strict";var i=n(5397),r=n(5610),o=n(6198),a=function(t){return function(e,n,a){var s=i(e),c=o(s);if(0===c)return!t&&-1;var u,l=r(a,c);if(t&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9213:(t,e,n)=>{"use strict";var i=n(6080),r=n(9504),o=n(7055),a=n(8981),s=n(6198),c=n(1469),u=r([].push),l=function(t){var e=1===t,n=2===t,r=3===t,l=4===t,d=6===t,h=7===t,f=5===t||d;return function(p,m,v,g){for(var y,b,w=a(p),x=o(w),I=s(x),O=i(m,v),k=0,E=g||c,S=e?E(p,I):n||h?E(p,0):void 0;I>k;k++)if((f||k in x)&&(b=O(y=x[k],k,w),t))if(e)S[k]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:u(S,y)}else switch(t){case 4:return!1;case 7:u(S,y)}return d?-1:r||l?l:S}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},597:(t,e,n)=>{"use strict";var i=n(9039),r=n(8227),o=n(7388),a=r("species");t.exports=function(t){return o>=51||!i((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},4598:(t,e,n)=>{"use strict";var i=n(9039);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},7433:(t,e,n)=>{"use strict";var i=n(4376),r=n(3517),o=n(34),a=n(8227)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===s||i(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},1469:(t,e,n)=>{"use strict";var i=n(7433);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},4576:(t,e,n)=>{"use strict";var i=n(9504),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},6955:(t,e,n)=>{"use strict";var i=n(2140),r=n(4901),o=n(4576),a=n(8227)("toStringTag"),s=Object,c="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},7740:(t,e,n)=>{"use strict";var i=n(9297),r=n(5031),o=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=r(e),c=a.f,u=o.f,l=0;l{"use strict";var i=n(3724),r=n(4913),o=n(6980);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6840:(t,e,n)=>{"use strict";var i=n(4901),r=n(4913),o=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(i(n)&&o(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9433:(t,e,n)=>{"use strict";var i=n(4475),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},3724:(t,e,n)=>{"use strict";var i=n(9039);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(t,e,n)=>{"use strict";var i=n(4475),r=n(34),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},9392:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:(t,e,n)=>{"use strict";var i,r,o=n(4475),a=n(9392),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(r=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},7015:(t,e,n)=>{"use strict";var i=n(4475),r=n(9504);t.exports=function(t,e){return r(i[t].prototype[e])}},8727:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:(t,e,n)=>{"use strict";var i=n(4475),r=n(7347).f,o=n(6699),a=n(6840),s=n(9433),c=n(7740),u=n(2796);t.exports=function(t,e){var n,l,d,h,f,p=t.target,m=t.global,v=t.stat;if(n=m?i:v?i[p]||s(p,{}):i[p]&&i[p].prototype)for(l in e){if(h=e[l],d=t.dontCallGetSet?(f=r(n,l))&&f.value:n[l],!u(m?l:p+(v?".":"#")+l,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(n,l,h,t)}}},9039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6080:(t,e,n)=>{"use strict";var i=n(7476),r=n(9306),o=n(616),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},616:(t,e,n)=>{"use strict";var i=n(9039);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:(t,e,n)=>{"use strict";var i=n(616),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},350:(t,e,n)=>{"use strict";var i=n(3724),r=n(9297),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},7476:(t,e,n)=>{"use strict";var i=n(4576),r=n(9504);t.exports=function(t){if("Function"===i(t))return r(t)}},9504:(t,e,n)=>{"use strict";var i=n(616),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},7751:(t,e,n)=>{"use strict";var i=n(4475),r=n(4901);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},5966:(t,e,n)=>{"use strict";var i=n(9306),r=n(4117);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},4475:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:(t,e,n)=>{"use strict";var i=n(9504),r=n(8981),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},421:t=>{"use strict";t.exports={}},397:(t,e,n)=>{"use strict";var i=n(7751);t.exports=i("document","documentElement")},5917:(t,e,n)=>{"use strict";var i=n(3724),r=n(9039),o=n(4055);t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},7055:(t,e,n)=>{"use strict";var i=n(9504),r=n(9039),o=n(4576),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},3706:(t,e,n)=>{"use strict";var i=n(9504),r=n(4901),o=n(7629),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},1181:(t,e,n)=>{"use strict";var i,r,o,a=n(8622),s=n(4475),c=n(34),u=n(6699),l=n(9297),d=n(7629),h=n(6119),f=n(421),p="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,i=function(t,e){if(g.has(t))throw new m(p);return e.facade=t,g.set(t,e),e},r=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var y=h("state");f[y]=!0,i=function(t,e){if(l(t,y))throw new m(p);return e.facade=t,u(t,y,e),e},r=function(t){return l(t,y)?t[y]:{}},o=function(t){return l(t,y)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}}}},4376:(t,e,n)=>{"use strict";var i=n(4576);t.exports=Array.isArray||function(t){return"Array"===i(t)}},4901:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:(t,e,n)=>{"use strict";var i=n(9504),r=n(9039),o=n(4901),a=n(6955),s=n(7751),c=n(3706),u=function(){},l=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=i(d.exec),f=!d.test(u),p=function(t){if(!o(t))return!1;try{return l(u,[],t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,c(t))}catch(t){return!0}};m.sham=!0,t.exports=!l||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?m:p},2796:(t,e,n)=>{"use strict";var i=n(9039),r=n(4901),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===l||n!==u&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},4117:t=>{"use strict";t.exports=function(t){return null==t}},34:(t,e,n)=>{"use strict";var i=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},6395:t=>{"use strict";t.exports=!1},757:(t,e,n)=>{"use strict";var i=n(7751),r=n(4901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},6198:(t,e,n)=>{"use strict";var i=n(8014);t.exports=function(t){return i(t.length)}},283:(t,e,n)=>{"use strict";var i=n(9504),r=n(9039),o=n(4901),a=n(9297),s=n(3724),c=n(350).CONFIGURABLE,u=n(3706),l=n(1181),d=l.enforce,h=l.get,f=String,p=Object.defineProperty,m=i("".slice),v=i("".replace),g=i([].join),y=s&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===m(f(e),0,7)&&(e="["+v(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return a(i,"source")||(i.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&h(this).source||u(this)}),"toString")},741:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},2360:(t,e,n)=>{"use strict";var i,r=n(8551),o=n(6801),a=n(8727),s=n(421),c=n(397),u=n(4055),l=n(6119),d="prototype",h="script",f=l("IE_PROTO"),p=function(){},m=function(t){return"<"+h+">"+t+""},v=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&i?v(i):(e=u("iframe"),n="java"+h+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):v(i);for(var r=a.length;r--;)delete g[d][a[r]];return g()};s[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[d]=r(t),n=new p,p[d]=null,n[f]=t):n=g(),void 0===e?n:o.f(n,e)}},6801:(t,e,n)=>{"use strict";var i=n(3724),r=n(8686),o=n(4913),a=n(8551),s=n(5397),c=n(1072);e.f=i&&!r?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),r=c(e),u=r.length,l=0;u>l;)o.f(t,n=r[l++],i[n]);return t}},4913:(t,e,n)=>{"use strict";var i=n(3724),r=n(5917),o=n(8686),a=n(8551),s=n(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var i=l(t,e);i&&i[f]&&(t[e]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:d in n?n[d]:i[d],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:(t,e,n)=>{"use strict";var i=n(3724),r=n(9565),o=n(8773),a=n(6980),s=n(5397),c=n(6969),u=n(9297),l=n(5917),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=c(e),l)try{return d(t,e)}catch(t){}if(u(t,e))return a(!r(o.f,t,e),t[e])}},8480:(t,e,n)=>{"use strict";var i=n(1828),r=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},3717:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},1625:(t,e,n)=>{"use strict";var i=n(9504);t.exports=i({}.isPrototypeOf)},1828:(t,e,n)=>{"use strict";var i=n(9504),r=n(9297),o=n(5397),a=n(9617).indexOf,s=n(421),c=i([].push);t.exports=function(t,e){var n,i=o(t),u=0,l=[];for(n in i)!r(s,n)&&r(i,n)&&c(l,n);for(;e.length>u;)r(i,n=e[u++])&&(~a(l,n)||c(l,n));return l}},1072:(t,e,n)=>{"use strict";var i=n(1828),r=n(8727);t.exports=Object.keys||function(t){return i(t,r)}},8773:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},4270:(t,e,n)=>{"use strict";var i=n(9565),r=n(4901),o=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},5031:(t,e,n)=>{"use strict";var i=n(7751),r=n(9504),o=n(8480),a=n(3717),s=n(8551),c=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},7750:(t,e,n)=>{"use strict";var i=n(4117),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},6119:(t,e,n)=>{"use strict";var i=n(5745),r=n(3392),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},7629:(t,e,n)=>{"use strict";var i=n(6395),r=n(4475),o=n(9433),a="__core-js_shared__",s=t.exports=r[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:i?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(t,e,n)=>{"use strict";var i=n(7629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},4495:(t,e,n)=>{"use strict";var i=n(7388),r=n(9039),o=n(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},5610:(t,e,n)=>{"use strict";var i=n(1291),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},5397:(t,e,n)=>{"use strict";var i=n(7055),r=n(7750);t.exports=function(t){return i(r(t))}},1291:(t,e,n)=>{"use strict";var i=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},8014:(t,e,n)=>{"use strict";var i=n(1291),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,9007199254740991):0}},8981:(t,e,n)=>{"use strict";var i=n(7750),r=Object;t.exports=function(t){return r(i(t))}},2777:(t,e,n)=>{"use strict";var i=n(9565),r=n(34),o=n(757),a=n(5966),s=n(4270),c=n(8227),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!r(n)||o(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6969:(t,e,n)=>{"use strict";var i=n(2777),r=n(757);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},2140:(t,e,n)=>{"use strict";var i={};i[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(i)},6823:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:(t,e,n)=>{"use strict";var i=n(9504),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},7040:(t,e,n)=>{"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:(t,e,n)=>{"use strict";var i=n(3724),r=n(9039);t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:(t,e,n)=>{"use strict";var i=n(4475),r=n(4901),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},8227:(t,e,n)=>{"use strict";var i=n(4475),r=n(5745),o=n(9297),a=n(3392),s=n(4495),c=n(7040),u=i.Symbol,l=r("wks"),d=c?u.for||u:u&&u.withoutSetter||a;t.exports=function(t){return o(l,t)||(l[t]=s&&o(u,t)?u[t]:d("Symbol."+t)),l[t]}},2008:(t,e,n)=>{"use strict";var i=n(6518),r=n(9213).filter;i({target:"Array",proto:!0,forced:!n(597)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},1629:(t,e,n)=>{"use strict";var i=n(6518),r=n(235);i({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},4423:(t,e,n)=>{"use strict";var i=n(6518),r=n(9617).includes,o=n(9039),a=n(6469);i({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},6127:(t,e,n)=>{"use strict";var i=n(94);t.exports=i},2514:(t,e,n)=>{"use strict";var i=n(4883);t.exports=i},6612:(t,e,n)=>{"use strict";var i=n(3609);t.exports=i}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={id:i,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0,(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:n+""}function i(t,n,i){return(n=e(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function r(t,n){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:0,r=e[i];i>e.length-1||X(r,(function(r){var o=i+1;n(r,i),t(e,n,o)}))};function F(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:0;return(t+="").length>=e?t:new Array(e-t.length+1).join("0")+t},W=function(t,e,n){var i,r=e||{},o=r.amount,a=r.indexZeroBase;return(i=new Array(o),function(t){if(Array.isArray(t))return F(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||z(i)||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.")}()).map((function(e,i){var r=B(i+1,a),o=t.replace("{index}",r);return n?o.replace(N,"").replace(V,"?"):o}))};function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var H=function(t,e,n){var r=e.folder;return t.map((function(t){var o=function(t){for(var e=1;e4&&void 0!==arguments[4]?arguments[4]:1,o=n/i,a=t/e,s=t*r,c=e*r;return o>a?c=s/o:s=c*o,{width:s,height:c,offsetX:(t-s)*(arguments.length>5&&void 0!==arguments[5]?arguments[5]:.5),offsetY:(e-c)*(arguments.length>6&&void 0!==arguments[6]?arguments[6]:.5)}},nt=function(t,e,n){var i,r,o=e.container,a=e.w,s=e.h,c=e.zoom,u=e.bw,l=e.offsetX,d=e.offsetY,h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=0,n=0,i=(arguments.length>1?arguments[1]:void 0).getBoundingClientRect();return e=t.pageX-i.left,n=t.pageY-i.top,{x:e-=window.pageXOffset,y:n-=window.pageYOffset}}(t,o);i=h.x,r=h.y,i>o.offsetWidth-a/c&&(i=o.offsetWidth-a/c),io.offsetHeight-s/c&&(r=o.offsetHeight-s/c),r10&&(o=c),s>10&&e&&(o=u),o},st=function(t,e,n){return Math.floor((t-e)/n)||1},ct=function(t){var e=document.createElement("div");return e.className="cloudimage-360-icons-container",t.appendChild(e),e},ut=function(t,e){var n=document.createElement("div");return n.className="cloudimage-360-box-shadow",n.style.boxShadow=t,e.appendChild(n),n},lt=function(t){var e=document.createElement("div");return e.className="cloudimage-360-loader",t.appendChild(e),e},dt=function(t,e){if(t&&e)try{t.removeChild(e)}catch(t){}},ht=function(t,e,n){for(var i=new Array(e).length-1;i>-1;i--){var r,o=null===(r=t[i])||void 0===r?void 0:r[n];if(o)return o}return"0%"},ft=function(t){var e="[data-hotspot-icon-id=".concat(t,"]");return document.querySelector(e)},pt=function(t){t.style.visibility="hidden",t.style.opacity=0},mt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"x-axis";e.forEach((function(e){var o=e.positions,a=e.initialDimensions,s=e.orientation,c=e.variant.anchorId,u=function(t){switch(t.toLowerCase()){case"x-axis":default:return"x";case"y-axis":return"y"}}(r),l="x"===s?n:i,d=function(t){return t.reduce((function(e,n,i){var r=!(null==n||!n.xCoord),o=!(null==n||!n.yCoord);return r||(n.xCoord=ht(t,i,"xCoord")),o||(n.yCoord=ht(t,i,"yCoord")),e.push(n),e}),[])}(o),h=d.find((function(t){return t.imageIndex===l})),f=ft(c);if(h&&u===s){var p=h.xCoord,m=void 0===p?0:p,v=h.yCoord;!function(t,e,n,i,r){n.style.visibility="visible",n.style.opacity=1,n.style.zIndex=100,n.style.left="".concat(-n.offsetWidth/2,"px"),n.style.top="".concat(-n.offsetHeight/2,"px");var o=t.offsetWidth/e[0],a=t.offsetHeight/e[1],s="".concat(o*i,"px"),c="".concat(a*r,"px");n.style.transform="translate3d(".concat(s,", ").concat(c,", 0)")}(t,a,f,m,void 0===v?0:v)}else pt(f)}))};function vt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function gt(t){return t instanceof vt(t).Element||t instanceof Element}function yt(t){return t instanceof vt(t).HTMLElement||t instanceof HTMLElement}function bt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof vt(t).ShadowRoot||t instanceof ShadowRoot)}var wt=Math.max,xt=Math.min,It=Math.round;function Ot(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function kt(){return!/^((?!chrome|android).)*safari/i.test(Ot())}function Et(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&yt(t)&&(r=t.offsetWidth>0&&It(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&It(i.height)/t.offsetHeight||1);var a=(gt(t)?vt(t):window).visualViewport,s=!kt()&&n,c=(i.left+(s&&a?a.offsetLeft:0))/r,u=(i.top+(s&&a?a.offsetTop:0))/o,l=i.width/r,d=i.height/o;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c,x:c,y:u}}function St(t){var e=vt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ct(t){return t?(t.nodeName||"").toLowerCase():null}function jt(t){return((gt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Lt(t){return Et(jt(t)).left+St(t).scrollLeft}function Pt(t){return vt(t).getComputedStyle(t)}function At(t){var e=Pt(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Yt(t,e,n){void 0===n&&(n=!1);var i,r,o=yt(e),a=yt(e)&&function(t){var e=t.getBoundingClientRect(),n=It(e.width)/t.offsetWidth||1,i=It(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=jt(e),c=Et(t,a,n),u={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&(("body"!==Ct(e)||At(s))&&(u=(i=e)!==vt(i)&&yt(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:St(i)),yt(e)?((l=Et(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Lt(s))),{x:c.left+u.scrollLeft-l.x,y:c.top+u.scrollTop-l.y,width:c.width,height:c.height}}function Dt(t){var e=Et(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Tt(t){return"html"===Ct(t)?t:t.assignedSlot||t.parentNode||(bt(t)?t.host:null)||jt(t)}function Rt(t){return["html","body","#document"].indexOf(Ct(t))>=0?t.ownerDocument.body:yt(t)&&At(t)?t:Rt(Tt(t))}function Xt(t,e){var n;void 0===e&&(e=[]);var i=Rt(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=vt(i),a=r?[o].concat(o.visualViewport||[],At(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(Xt(Tt(a)))}function Mt(t){return["table","td","th"].indexOf(Ct(t))>=0}function Ft(t){return yt(t)&&"fixed"!==Pt(t).position?t.offsetParent:null}function zt(t){for(var e=vt(t),n=Ft(t);n&&Mt(n)&&"static"===Pt(n).position;)n=Ft(n);return n&&("html"===Ct(n)||"body"===Ct(n)&&"static"===Pt(n).position)?e:n||function(t){var e=/firefox/i.test(Ot());if(/Trident/i.test(Ot())&&yt(t)&&"fixed"===Pt(t).position)return null;var n=Tt(t);for(bt(n)&&(n=n.host);yt(n)&&["html","body"].indexOf(Ct(n))<0;){var i=Pt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var Nt="top",Vt="bottom",Bt="right",Wt="left",_t="auto",Ht=[Nt,Vt,Bt,Wt],qt="start",Ut="end",Zt="viewport",Gt="popper",Jt=Ht.reduce((function(t,e){return t.concat([e+"-"+qt,e+"-"+Ut])}),[]),$t=[].concat(Ht,[_t]).reduce((function(t,e){return t.concat([e,e+"-"+qt,e+"-"+Ut])}),[]),Kt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Qt(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function ee(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function ce(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?oe(r):null,a=r?ae(r):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(o){case Nt:e={x:s,y:n.y-i.height};break;case Vt:e={x:s,y:n.y+n.height};break;case Bt:e={x:n.x+n.width,y:c};break;case Wt:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var u=o?se(o):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case qt:e[u]=e[u]-(n[l]/2-i[l]/2);break;case Ut:e[u]=e[u]+(n[l]/2-i[l]/2)}}return e}var ue={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,c=t.gpuAcceleration,u=t.adaptive,l=t.roundOffsets,d=t.isFixed,h=a.x,f=void 0===h?0:h,p=a.y,m=void 0===p?0:p,v="function"==typeof l?l({x:f,y:m}):{x:f,y:m};f=v.x,m=v.y;var g=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=Wt,w=Nt,x=window;if(u){var I=zt(n),O="clientHeight",k="clientWidth";I===vt(n)&&"static"!==Pt(I=jt(n)).position&&"absolute"===s&&(O="scrollHeight",k="scrollWidth"),(r===Nt||(r===Wt||r===Bt)&&o===Ut)&&(w=Vt,m-=(d&&I===x&&x.visualViewport?x.visualViewport.height:I[O])-i.height,m*=c?1:-1),r!==Wt&&(r!==Nt&&r!==Vt||o!==Ut)||(b=Bt,f-=(d&&I===x&&x.visualViewport?x.visualViewport.width:I[k])-i.width,f*=c?1:-1)}var E,S=Object.assign({position:s},u&&ue),C=!0===l?function(t,e){var n=t.x,i=t.y,r=e.devicePixelRatio||1;return{x:It(n*r)/r||0,y:It(i*r)/r||0}}({x:f,y:m},vt(n)):{x:f,y:m};return f=C.x,m=C.y,c?Object.assign({},S,((E={})[w]=y?"0":"",E[b]=g?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},S,((e={})[w]=y?m+"px":"",e[b]=g?f+"px":"",e.transform="",e))}const de={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,c=void 0===s||s,u={placement:oe(e.placement),variation:ae(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,le(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,le(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},he={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];yt(r)&&Ct(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});yt(i)&&Ct(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},fe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,a=$t.reduce((function(t,n){return t[n]=function(t,e,n){var i=oe(t),r=[Wt,Nt].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[Wt,Bt].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],c=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}};var pe={left:"right",right:"left",bottom:"top",top:"bottom"};function me(t){return t.replace(/left|right|bottom|top/g,(function(t){return pe[t]}))}var ve={start:"end",end:"start"};function ge(t){return t.replace(/start|end/g,(function(t){return ve[t]}))}function ye(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&bt(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function be(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function we(t,e,n){return e===Zt?be(function(t,e){var n=vt(t),i=jt(t),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,c=0;if(r){o=r.width,a=r.height;var u=kt();(u||!u&&"fixed"===e)&&(s=r.offsetLeft,c=r.offsetTop)}return{width:o,height:a,x:s+Lt(t),y:c}}(t,n)):gt(e)?function(t,e){var n=Et(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):be(function(t){var e,n=jt(t),i=St(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=wt(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=wt(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+Lt(t),c=-i.scrollTop;return"rtl"===Pt(r||n).direction&&(s+=wt(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}(jt(t)))}function xe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Ie(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Oe(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,a=void 0===o?t.strategy:o,s=n.boundary,c=void 0===s?"clippingParents":s,u=n.rootBoundary,l=void 0===u?Zt:u,d=n.elementContext,h=void 0===d?Gt:d,f=n.altBoundary,p=void 0!==f&&f,m=n.padding,v=void 0===m?0:m,g=xe("number"!=typeof v?v:Ie(v,Ht)),y=h===Gt?"reference":Gt,b=t.rects.popper,w=t.elements[p?y:h],x=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=Xt(Tt(t)),n=["absolute","fixed"].indexOf(Pt(t).position)>=0&&yt(t)?zt(t):t;return gt(n)?e.filter((function(t){return gt(t)&&ye(t,n)&&"body"!==Ct(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(e,n){var r=we(t,n,i);return e.top=wt(r.top,e.top),e.right=xt(r.right,e.right),e.bottom=xt(r.bottom,e.bottom),e.left=wt(r.left,e.left),e}),we(t,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(gt(w)?w:w.contextElement||jt(t.elements.popper),c,l,a),I=Et(t.elements.reference),O=ce({reference:I,element:b,strategy:"absolute",placement:r}),k=be(Object.assign({},b,O)),E=h===Gt?k:I,S={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},C=t.modifiersData.offset;if(h===Gt&&C){var j=C[r];Object.keys(S).forEach((function(t){var e=[Bt,Vt].indexOf(t)>=0?1:-1,n=[Nt,Vt].indexOf(t)>=0?"y":"x";S[t]+=j[n]*e}))}return S}const ke={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,v=e.options.placement,g=oe(v),y=c||(g!==v&&p?function(t){if(oe(t)===_t)return[];var e=me(t);return[ge(t),e,ge(e)]}(v):[me(v)]),b=[v].concat(y).reduce((function(t,n){return t.concat(oe(n)===_t?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?$t:c,l=ae(i),d=l?s?Jt:Jt.filter((function(t){return ae(t)===l})):Ht,h=d.filter((function(t){return u.indexOf(t)>=0}));0===h.length&&(h=d);var f=h.reduce((function(e,n){return e[n]=Oe(t,{placement:n,boundary:r,rootBoundary:o,padding:a})[oe(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}(e,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),w=e.rects.reference,x=e.rects.popper,I=new Map,O=!0,k=b[0],E=0;E=0,P=L?"width":"height",A=Oe(e,{placement:S,boundary:l,rootBoundary:d,altBoundary:h,padding:u}),Y=L?j?Bt:Wt:j?Vt:Nt;w[P]>x[P]&&(Y=me(Y));var D=me(Y),T=[];if(o&&T.push(A[C]<=0),s&&T.push(A[Y]<=0,A[D]<=0),T.every((function(t){return t}))){k=S,O=!1;break}I.set(S,T)}if(O)for(var R=function(t){var e=b.find((function(e){var n=I.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},X=p?3:1;X>0&&"break"!==R(X);X--);e.placement!==k&&(e.modifiersData[i]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ee(t,e,n){return wt(t,xt(e,n))}const Se={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,m=void 0===p?0:p,v=Oe(e,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),g=oe(e.placement),y=ae(e.placement),b=!y,w=se(g),x="x"===w?"y":"x",I=e.modifiersData.popperOffsets,O=e.rects.reference,k=e.rects.popper,E="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(I){if(o){var L,P="y"===w?Nt:Wt,A="y"===w?Vt:Bt,Y="y"===w?"height":"width",D=I[w],T=D+v[P],R=D-v[A],X=f?-k[Y]/2:0,M=y===qt?O[Y]:k[Y],F=y===qt?-k[Y]:-O[Y],z=e.elements.arrow,N=f&&z?Dt(z):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=V[P],W=V[A],_=Ee(0,O[Y],N[Y]),H=b?O[Y]/2-X-_-B-S.mainAxis:M-_-B-S.mainAxis,q=b?-O[Y]/2+X+_+W+S.mainAxis:F+_+W+S.mainAxis,U=e.elements.arrow&&zt(e.elements.arrow),Z=U?"y"===w?U.clientTop||0:U.clientLeft||0:0,G=null!=(L=null==C?void 0:C[w])?L:0,J=D+q-G,$=Ee(f?xt(T,D+H-G-Z):T,D,f?wt(R,J):R);I[w]=$,j[w]=$-D}if(s){var K,Q="x"===w?Nt:Wt,tt="x"===w?Vt:Bt,et=I[x],nt="y"===x?"height":"width",it=et+v[Q],rt=et-v[tt],ot=-1!==[Nt,Wt].indexOf(g),at=null!=(K=null==C?void 0:C[x])?K:0,st=ot?it:et-O[nt]-k[nt]-at+S.altAxis,ct=ot?et+O[nt]+k[nt]-at-S.altAxis:rt,ut=f&&ot?function(t,e,n){var i=Ee(t,e,n);return i>n?n:i}(st,et,ct):Ee(f?st:it,et,f?ct:rt);I[x]=ut,j[x]=ut-et}e.modifiersData[i]=j}},requiresIfExists:["offset"]},Ce={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=oe(n.placement),c=se(s),u=[Wt,Bt].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(t,e){return xe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ie(t,Ht))}(r.padding,n),d=Dt(o),h="y"===c?Nt:Wt,f="y"===c?Vt:Bt,p=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],v=zt(o),g=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=p/2-m/2,b=l[h],w=g-d[u]-l[f],x=g/2-d[u]/2+y,I=Ee(b,x,w),O=c;n.modifiersData[i]=((e={})[O]=I,e.centerOffset=I-x,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&ye(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Le(t){return[Nt,Bt,Vt,Wt].some((function(e){return t[e]>=0}))}var Pe=ne({defaultModifiers:[re,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=ce({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},de,he,fe,ke,Se,Ce,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=Oe(e,{elementContext:"reference"}),s=Oe(e,{altBoundary:!0}),c=je(a,i),u=je(s,r,o),l=Le(c),d=Le(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),Ae=function(t,e){e||(t.removeAttribute("data-show"),t.removeAttribute("data-cloudimage-360-show"))};var Ye=function(t,e,n){var i,r,o=t.images,a=t.title,s=t.description,c=t.moreDetailsUrl,u=t.moreDetailsTitle,l=void 0===u?"Read more":u,d=document.createElement("div");if(d.className="cloudimage-360-modal-wrapper",o){var h=document.createElement("div"),f=(i=function(t,e,n){var i=document.createElement("div"),r=document.createElement("div");return i.className="cloudimage-360-images-carousel",i.style.maxWidth="".concat(n.offsetWidth,"px"),r.className="cloudimage-360-carousel-dots",t.forEach((function(t,n){var o=function(t,e){var n=document.createElement("img");return n.className="cloudimage-360-carousel-image",n.setAttribute("src",t.src||""),n.setAttribute("alt",t.alt||"more-info"),e||(n.setAttribute("data-active-image",""),n.className+=" active-image"),n}(t,n),a=function(t,e,n){var i=document.createElement("button");return i.className="cloudimage-360-carousel-dot",i.onclick=function(){return function(t,e,n){var i=n.querySelector("[data-active-dot]"),r=n.querySelector("[data-active-image]");i.classList.remove("active-dot"),i.removeAttribute("data-active-dot"),r.classList.remove("active-image"),r.removeAttribute("data-active-image"),t.className+=" active-image",t.setAttribute("data-active-image",""),e.className+=" active-dot",e.setAttribute("data-active-dot","")}(t,i,n)},e||(i.className+=" active-dot",i.setAttribute("data-active-dot","")),i}(o,n,e);r.appendChild(a),i.appendChild(o)})),[i,r]}(o,n,e),r=2,function(t){if(Array.isArray(t))return t}(i)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){u=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(i,r)||z(i,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=f[0],m=f[1];h.appendChild(p),o.length>1&&h.appendChild(m),d.appendChild(h),h.className="cloudimage-360-images-carousel-wrapper"}if(a){var v=function(t){var e=document.createElement("h4");return e.innerText=t,e.className="cloudimage-360-modal-title",e}(a);d.appendChild(v)}if(s){var g=function(t){var e=document.createElement("p");return e.innerText=t,e.className="cloudimage-360-modal-description",e}(s);d.appendChild(g)}if(c){var y=function(t,e){var n=document.createElement("a");return n.href=t,n.innerText=e,n.className="cloudimage-360-modal-more-details",n.target="_blank",n}(c,l);d.appendChild(y)}n.appendChild(d)},De=function(e,n){n.forEach((function(n){var i=n.popupProps,r=function(e,n,i){var r,o=n.variant,a=i.popupSelector,s=i.arrow,c=o.url,u=o.images,l=o.title,d=o.anchorId,h=o.description,f=o.moreDetailsUrl,p=document.createElement("div");if(p.className="cloudimage-360-hotspot-popup ".concat(a),p.setAttribute("data-hotspot-popup-id",d),p.setAttribute("data-cloudimage-360-hotspot",""),p.style.minHeight=16,p.style.minWidth=16,p.style.cursor="default",p.onclick=function(t){return t.stopPropagation()},"object"===t(o)&&u||h||f||l&&!c)Ye(o,e,p);else if(c){var m=function(t){var e=t.url,n=t.title,i=t.newTab,r=document.createElement("a");return r.href=e,r.innerText=n,i&&(r.target="_blank"),r}(o);p.appendChild(m)}else if("string"==typeof o)try{var v=(r=o,document.querySelector("[".concat("data-cloudimage-360-hotspots","=").concat(r,"]"))),g=v.cloneNode(!0);p.appendChild(g),v.parentNode.removeChild(v)}catch(t){console.error("Cloudimage-360: Element with anchorId '".concat(d,"' not exist in the DOM"))}if(s){var y=function(){var t=document.createElement("div");return t.setAttribute("data-popper-arrow",""),t.setAttribute("data-cloudimage-360-hotspot",""),t.className="cloudimage-360-popup-arrow",t}();p.appendChild(y)}return e.appendChild(p),p}(e,n,i),o=function(t,e,n){var i=e.placement,r=e.offset,o=document.createElement("div"),a=Pe(o,t);return a.setOptions({placement:i,modifiers:[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{boundary:n}}]}),a}(r,i,e),a=function(t,e,n,i){var r,o=e.indicatorSelector,a=e.variant,s=a.url,c=a.anchorId,u=e.popupProps.open,l=void 0!==u&&u,d=document.createElement("div");return d.style.position="absolute",d.className="cloudimage-360-hotspot-".concat(s?"link":"custom","-icon ").concat(o),d.setAttribute("data-hotspot-icon-id",c),d.setAttribute("data-cloudimage-360-hotspot",""),d.onclick=function(t){return t.stopPropagation()},["mouseenter","touchstart","focus"].forEach((function(t){d.addEventListener(t,(function(){return function(t,e){t.setAttribute("data-show",""),t.setAttribute("data-cloudimage-360-show",""),e.update()}(n,i)}))})),l||["mouseleave","blur"].forEach((function(t){d.addEventListener(t,(function(){return setTimeout((function(){return Ae(n,r)}),160)}))})),n.addEventListener("mouseenter",(function(){r=!0})),n.addEventListener("mouseleave",(function(){r=!1,!l&&Ae(n,r)})),pt(d),t.appendChild(d),d}(e,n,r,o);o.state.elements.reference=a,o.update()}))};function Te(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Re(t){for(var e=1;e=this.amountX?(this.activeImageX=this.amountX,(e?this.leftElem:this.rightElem)&&rt(e?this.leftElem:this.rightElem,"not-active")):(this.activeImageX+=t,this.rightElem&&ot(this.rightElem,"not-active"),this.leftElem&&ot(this.leftElem,"not-active")):(this.activeImageX=(this.activeImageX+t)%this.amountX||this.amountX,this.activeImageX===this.amountX&&this.allowSpinY&&(this.spinY=!0))}},{key:"moveActiveIndexDown",value:function(t){var e=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageX-t<=1?(this.activeImageX=1,(e?this.rightElem:this.leftElem)&&rt(e?this.rightElem:this.leftElem,"not-active")):(this.activeImageX-=t,this.leftElem&&ot(this.leftElem,"not-active"),this.rightElem&&ot(this.rightElem,"not-active")):this.activeImageX-t<1?(this.activeImageX=this.amountX+(this.activeImageX-t),this.spinY=!0):this.activeImageX-=t}},{key:"moveActiveYIndexUp",value:function(t){var e=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageY+t>=this.amountY?(this.activeImageY=this.amountY,(e?this.bottomElem:this.topElem)&&rt(e?this.bottomElem:this.topElem,"not-active")):(this.activeImageY+=t,this.topElem&&ot(this.topElem,"not-active"),this.bottomElem&&ot(this.bottomElem,"not-active")):(this.activeImageY=(this.activeImageY+t)%this.amountY||this.amountY,this.activeImageY===this.amountY&&(this.spinY=!1))}},{key:"moveActiveYIndexDown",value:function(t){var e=this.controlReverse?!this.spinReverse:this.spinReverse;this.stopAtEdges?this.activeImageY-t<=1?(this.activeImageY=1,(e?this.topElem:this.bottomElem)&&rt(e?this.topElem:this.bottomElem,"not-active")):(this.activeImageY-=t,this.bottomElem&&ot(this.bottomElem,"not-active"),this.topElem&&ot(this.topElem,"not-active")):this.activeImageY-t<1?(this.activeImageY=this.amountY+(this.activeImageY-t),this.spinY=!1):this.activeImageY-=t}},{key:"moveRight",value:function(t){var e=st(t,this.movementStart.x,this.speedFactor);this.spinReverse?this.moveActiveIndexDown(e):this.moveActiveIndexUp(e),this.movementStart.x=t,this.activeImageY=1,this.update()}},{key:"moveLeft",value:function(t){var e=st(this.movementStart.x,t,this.speedFactor);this.spinReverse?this.moveActiveIndexUp(e):this.moveActiveIndexDown(e),this.activeImageY=1,this.movementStart.x=t,this.update()}},{key:"moveTop",value:function(t){var e=st(this.movementStart.y,t,this.speedFactor);this.spinReverse?this.moveActiveYIndexUp(e):this.moveActiveYIndexDown(e),this.activeImageX=1,this.movementStart.y=t,this.update()}},{key:"moveBottom",value:function(t){var e=st(t,this.movementStart.y,this.speedFactor);this.spinReverse?this.moveActiveYIndexDown(e):this.moveActiveYIndexUp(e),this.activeImageX=1,this.movementStart.y=t,this.update()}},{key:"onMoveHandler",value:function(t){var e=t.touches&&t.touches.length>0?t.touches[0].clientX:t.pageX,n=t.touches&&t.touches.length>0?t.touches[0].clientY:t.pageY,i=e-this.movementStart.x>=this.speedFactor,r=this.movementStart.x-e>=this.speedFactor,o=this.movementStart.y-n>=this.speedFactor,a=n-this.movementStart.y>=this.speedFactor;this.bottomCircle&&this.hide360ViewCircleIcon(),i&&this.movingDirection===c?(this.moveRight(e),this.isStartSpin=!0):r&&this.movingDirection===c?(this.moveLeft(e),this.isStartSpin=!0):o&&this.movingDirection===u?(this.moveTop(n),this.isStartSpin=!0):a&&this.movingDirection===u&&(this.moveBottom(n),this.isStartSpin=!0)}},{key:"left",value:function(){this.movingDirection=c,this.activeImageY=this.reversed?this.amountY:1,this.moveActiveIndexDown(1),this.update()}},{key:"right",value:function(){this.movingDirection=c,this.activeImageY=this.reversed?this.amountY:1,this.moveActiveIndexUp(1),this.update()}},{key:"top",value:function(){this.movingDirection=u,this.activeImageX=this.reversed?this.amountX:1,this.moveActiveYIndexUp(1),this.update()}},{key:"bottom",value:function(){this.movingDirection=u,this.activeImageX=this.reversed?this.amountX:1,this.moveActiveYIndexDown(1),this.update()}},{key:"loop",value:function(t){var e={left:this.left.bind(this),right:this.right.bind(this),top:this.top.bind(this),bottom:this.bottom.bind(this)};!function(t,e,n,i){var r=i.bottom,c=i.top,u=i.left,l=i.right;switch(t){case o:n?r():c();break;case a:case s:e?n?r():c():n?u():l();break;default:n?u():l()}}(this.autoplayBehavior,this.spinY,t,e)}},{key:"updateContainerAndCanvasSize",value:function(e){var n=function(e,n){try{var i=e.width/e.height;if("number"==typeof n&&(i=n),n&&"object"===t(n)){var r=Object.keys(n).sort((function(t,e){return t-e})).find((function(t){return window.innerWidth<=parseInt(t,10)}));r&&(i=n[r])}return i}catch(t){return 1}}(e,this.ratio);if(this.fullscreenView)return this.container.width=window.innerWidth*this.devicePixelRatio,this.container.style.width=window.innerWidth+"px",this.container.height=window.innerHeight*this.devicePixelRatio,this.container.style.height=window.innerHeight+"px",this.container.style.maxWidth="unset",this.canvas.width=window.innerWidth*this.devicePixelRatio,this.canvas.style.width=window.innerWidth+"px",this.canvas.height=window.innerHeight*this.devicePixelRatio,void(this.canvas.style.height=window.innerHeight+"px");this.canvas.width=this.container.offsetWidth*this.devicePixelRatio,this.canvas.style.width=this.container.offsetWidth+"px",this.canvas.height=this.container.offsetWidth/n*this.devicePixelRatio,this.canvas.style.height=this.container.offsetWidth/n+"px"}},{key:"onResizedImageLoad",value:function(t,e,n){t===u?this.resizedImagesY[n]=e:this.resizedImagesX[n]=e,this.resizedImagesX.length+this.resizedImagesY.length===this.amountX+this.amountY&&(this.imagesX=this.resizedImagesX,this.imagesY=this.resizedImagesY,this.update())}},{key:"showImageInfo",value:function(t){t.font="".concat(this.fullscreenView?28:14,"px serif"),t.fillStyle="white"===this.info?"#FFF":"#000";var e="image-dimension: ".concat(this.container.offsetWidth,"x").concat(this.container.offsetHeight,"px"),n=["active-index-x: "+this.activeImageX,"active-index-y: "+this.activeImageY].join(" | ");t.fillText(e,20,this.container.offsetHeight-35),t.fillText(n,20,this.container.offsetHeight-10)}},{key:"requestResizedImages",value:function(){if(this.isReady()){var t=this.ciParams.ciToken,e=this.imagesX[0];if(this.update(),t&&this.requestResponsiveImages&&!(this.container.offsetWidth<1.5*e.width)){this.speedFactor=it(this.dragSpeed,this.amountX,this.container.offsetWidth);var n=R(this.srcXConfig);if(q(this.srcXConfig,n,this.onResizedImageLoad.bind(this,c)),this.allowSpinY){var i=R(this.srcYConfig);q(this.srcYConfig,i,this.onResizedImageLoad.bind(this,u))}}}}},{key:"update",value:function(){var t=this.imagesX[this.activeImageX-1];if(this.movingDirection===u&&(t=this.imagesY[this.activeImageY-1]),t){var e=this.canvas.getContext("2d");if(e.scale(this.devicePixelRatio,this.devicePixelRatio),this.updateContainerAndCanvasSize(t),this.fullscreenView){var n=et(this.canvas.width,this.canvas.height,t.width,t.height),i=n.width,r=n.height,o=n.offsetX,a=n.offsetY;e.drawImage(t,o,a,i,r)}else this.mouseTracked?this.updateImageScale(e):(this.hotspotsConfigs&&!this.autoplay&&mt(this.container,this.hotspotsConfigs,this.activeImageX,this.activeImageY,this.movingDirection,this.isClicked),e.drawImage(t,0,0,this.canvas.width,this.canvas.height));this.info&&this.showImageInfo(e)}}},{key:"updateImageScale",value:function(t){var e=this.originalImagesX[this.activeImageX-1];this.movingDirection===u&&(e=this.originalImagesY[this.activeImageY-1]);var n=this.getCursorPositionInCanvas(),i=this.canvas.width,r=this.canvas.height,o=this.canvas.width*this.zoomIntensity,a=this.canvas.height*this.zoomIntensity,s=0-n.x/i*(o-this.canvas.width),c=0-n.y/r*(a-this.canvas.height);t.drawImage(e,s,c,o,a)}},{key:"updatePercentageInLoader",value:function(t){this.loader&&(this.loader.style.width=t+"%"),this.view360Icon&&(this.view360Icon.innerText=t+"%")}},{key:"onFirstImageLoaded",value:function(t){this.add360ViewIcon();var e=this.canvas.getContext("2d");if(e.scale(this.devicePixelRatio,this.devicePixelRatio),this.updateContainerAndCanvasSize(t),this.fullscreenView){var n=et(this.canvas.width,this.canvas.height,t.width,t.height),i=n.offsetX,r=n.offsetY,o=n.width,a=n.height;this.offset={x:i,y:r},this.addCloseFullscreenView(),e.drawImage(t,i,r,o,a)}else e.drawImage(t,0,0,this.canvas.width,this.canvas.height);this.info&&this.showImageInfo(e),this.magnifier&&this.addMagnifier(),this.boxShadow&&!this.fullscreenView&&(this.boxShadowEl=ut(this.boxShadow,this.innerBox)),this.bottomCircle&&!this.fullscreenView&&this.add360ViewCircleIcon(),this.fullscreen&&!this.fullscreenView&&this.addFullscreenIcon()}},{key:"onAllImagesLoaded",value:function(){if(this.removeLoader(),this.imagesLoaded=!0,this.autoplay&&this.pointerZoom?this.container.style.cursor="zoom-in":this.container.style.cursor="grab",this.speedFactor=it(this.dragSpeed,this.amountX,this.container.offsetWidth),this.autoplay&&this.play(),this.disableDrag&&(this.container.style.cursor="default"),this.view360Icon){if(this.hide360Logo)return this.remove360ViewIcon();this.view360Icon.innerText="",this.logoSrc&&p(this.view360Icon,this.logoSrc)}this.initControls()}},{key:"magnify",value:function(t){var e=this;t.stopPropagation(),this.mouseTracked&&this.togglePointerZoom();var n,i,r,o,a,s,c,l,d=(n=this.movingDirection,i=this.imagesX,r=this.imagesY,o=this.activeImageX,a=this.activeImageY,s=new Image,c=i.map((function(t){return t.src.replace(N,"").replace(V,"?")})),l=r.map((function(t){return t.src.replace(N,"").replace(V,"?")})),s.src=c[o-1],n===u&&(s.src=l[a-1]),s);this.isMagnifyOpen=!0,d.onload=function(){e.glass&&(e.glass.style.cursor="none")},this.glass=document.createElement("div"),this.container.style.overflow="hidden",function(t,e,n,i,r){var o=e||{},a=o.x,s=void 0===a?0:a,c=o.y,u=void 0===c?0:c,l=(t.offsetWidth-2*s)*r,d=(t.offsetHeight-2*u)*r;i.setAttribute("class","cloudimage-360-img-magnifier-glass"),t.prepend(i),i.style.backgroundImage="url('".concat(n.src,"')"),i.style.backgroundSize="".concat(l,"px ").concat(d,"px");var h={container:t,w:i.offsetWidth/2,h:i.offsetHeight/2,zoom:r,bw:3,offsetX:s,offsetY:u},f=function(t){nt(t,h,i)},p=function(t){nt(t,h,i)};i.addEventListener("mousemove",f),t.addEventListener("mousemove",f),i.addEventListener("touchmove",p,{passive:!0}),t.addEventListener("touchmove",p,{passive:!0})}(this.container,this.offset,d,this.glass,this.magnifier||3)}},{key:"closeMagnifier",value:function(){this.glass&&(this.container.style.overflow="visible",this.container.removeChild(this.glass),this.glass=null,this.isMagnifyOpen=!1)}},{key:"openFullscreenModal",value:function(t){t.stopPropagation(),this.mouseTracked&&this.togglePointerZoom(),new e(function(t){var e=document.createElement("div");e.className="cloudimage-360-fullscreen-modal";var n=t.cloneNode();return n.style.height="100%",n.style.maxHeight="100%",e.appendChild(n),window.document.body.style.overflow="hidden",window.document.body.appendChild(e),n}(this.container),!0,this.hotspotsConfigs)}},{key:"setFullscreenEvents",value:function(t,e){if("click"===e.type)return this.closeFullscreenModal(e);"Escape"===e.key&&this.container.parentNode.parentNode===document.body&&this.closeFullscreenModalOnEsc(e)}},{key:"closeFullscreenModalOnEsc",value:function(t){this.closeFullscreenModal(t)}},{key:"play",value:function(){var t=this;this.bottomCircle&&this.hide360ViewCircleIcon(),this.remove360ViewIcon(),this.loopTimeoutId=window.setInterval((function(){t.loop(t.reversed);var e=function(t,e,n,i,r,s){switch(t){case a:case o:return!!(s?1===n:n===r);default:return!!(s?1===e:e===i)}}(t.autoplayBehavior,t.activeImageX,t.activeImageY,t.amountX,t.amountY,t.reversed);t.playOnce&&e&&(window.clearTimeout(t.loopTimeoutId),t.autoplay=!1,t.hotspotsConfigs&&mt(t.container,t.hotspotsConfigs,t.activeImageX,t.activeImageY,t.movingDirection,t.isClicked))}),this.autoplaySpeed)}},{key:"stop",value:function(){this.bottomCircle&&this.show360ViewCircleIcon(),window.clearTimeout(this.loopTimeoutId)}},{key:"updateView",value:function(t,n,i){var r,o,a=this,s=this.container,c=d(s);if(r=this,o=c,Object.keys(o).reduce((function(t,e){var n=r[e]!==o[e];return-1!==D.indexOf(e)&&n&&(t=!0),t}),!1)||t){var u=this.container,l=n.findIndex((function(t){return t.id===a.container.id}));return s.removeChild(this.innerBox),(s=s.cloneNode(!0)).className=s.className.replace(" initialized",""),u.parentNode.replaceChild(s,u),n.splice(l,1,new e(s))}s.style.position="relative",s.style.width="100%",s.style.cursor="default",s.setAttribute("draggable","false"),this.stop(),this.init(s,!0,i)}},{key:"destroy",value:function(){this.stop();var t=this.container,e=t.cloneNode(!0),n=e.querySelector(".cloudimage-360-inner-box");e.className=e.className.replace(" initialized",""),e.style.position="relative",e.style.width="100%",e.style.cursor="default",e.setAttribute("draggable","false"),e.style.minHeight="auto",e.removeChild(n),t.parentNode.replaceChild(e,t)}},{key:"addCloseFullscreenView",value:function(t){var e=function(){var t=document.createElement("div");return t.className="cloudimage-360-close-fullscreen-icon",t}();e.onclick=this.setFullscreenEvents.bind(this,t),window.onkeyup=this.setFullscreenEvents.bind(this,t),this.iconsContainer.appendChild(e)}},{key:"add360ViewIcon",value:function(){var t;this.view360Icon=((t=document.createElement("div")).className="cloudimage-360-view-360-icon",t.innerText="0%",t),this.innerBox.appendChild(this.view360Icon)}},{key:"addFullscreenIcon",value:function(){var t;this.fullscreenIcon=((t=document.createElement("div")).className="cloudimage-360-fullscreen-icon",t),this.fullscreenIcon.onclick=this.openFullscreenModal.bind(this),this.iconsContainer.appendChild(this.fullscreenIcon)}},{key:"showFullscreenIcon",value:function(){this.fullscreenIcon&&(this.fullscreenIcon.style.display="block",this.fullscreenIcon.style.pointerEvents="auto")}},{key:"hideFullscreenIcon",value:function(){this.fullscreenIcon&&(this.fullscreenIcon.style.display="none",this.fullscreenIcon.style.pointerEvents="none")}},{key:"addMagnifier",value:function(){var t;this.magnifierIcon=((t=document.createElement("div")).className="cloudimage-360-magnifier-icon",t),this.magnifierIcon.onclick=this.magnify.bind(this),this.iconsContainer.appendChild(this.magnifierIcon)}},{key:"enableMagnifierIcon",value:function(){this.magnifierIcon&&(this.magnifierIcon.style.display="block",this.magnifierIcon.style.pointerEvents="auto")}},{key:"disableMagnifierIcon",value:function(){this.magnifierIcon&&(this.magnifierIcon.style.display="none",this.magnifierIcon.style.pointerEvents="none")}},{key:"closeFullscreenModal",value:function(t){t.stopPropagation(),document.body.removeChild(this.container.parentNode),window.document.body.style.overflow="visible"}},{key:"add360ViewCircleIcon",value:function(){var t,e;this.view360CircleIcon=(t=this.bottomCircleOffset,(e=new Image).src="https://scaleflex.cloudimg.io/v7/plugins/js-cloudimage-360-view/assets/img/360.svg",e.style.bottom="".concat(t,"%"),e.className="cloudimage-360-view-360-circle",e),this.innerBox.appendChild(this.view360CircleIcon)}},{key:"show360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.view360CircleIcon.style.opacity="1")}},{key:"hide360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.view360CircleIcon.style.opacity="0")}},{key:"remove360ViewCircleIcon",value:function(){this.view360CircleIcon&&(this.innerBox.removeChild(this.view360CircleIcon),this.view360CircleIcon=null)}},{key:"removeLoader",value:function(){this.loader&&(this.innerBox.removeChild(this.loader),this.loader=null)}},{key:"remove360ViewIcon",value:function(){if(this.view360Icon)try{this.innerBox.removeChild(this.view360Icon),this.view360Icon=null}catch(t){}}},{key:"initControls",value:function(){var t=this,e=function(t,e){var n=t.container,i=t.spinReverse,r=t.stopAtEdges,o=e.onRightStart,a=e.onLeftStart,s=e.onTopStart,c=e.onBottomStart,u=e.onEventEnd,l={},d=t.controlReverse?!i:i,h=n.querySelectorAll(".cloudimage-360-left, .cloudimage-360-prev")[0],f=n.querySelectorAll(".cloudimage-360-right, .cloudimage-360-next")[0],p=n.querySelector(".cloudimage-360-top"),m=n.querySelector(".cloudimage-360-bottom");return h&&(h.style.display="block",h.addEventListener("mousedown",d?o:a),h.addEventListener("touchstart",d?o:a,{passive:!0}),h.addEventListener("mouseup",u),h.addEventListener("touchend",u),l.left=h),f&&(f.style.display="block",f.addEventListener("mousedown",d?a:o),f.addEventListener("touchstart",d?a:o,{passive:!0}),f.addEventListener("mouseup",u),f.addEventListener("touchend",u),l.right=f),p&&(p.style.display="block",p.addEventListener("mousedown",d?c:s),p.addEventListener("touchstart",d?c:s),p.addEventListener("mouseup",u),p.addEventListener("touchend",u),l.top=p),m&&(m.style.display="block",m.addEventListener("mousedown",d?s:c),m.addEventListener("touchstart",d?s:c),m.addEventListener("mouseup",u),m.addEventListener("touchend",u),l.bottom=m),(d?f:h)&&r&&(rt(d?f:h,"not-active"),rt(d?p:m,"not-active")),l}({container:this.container,controlReverse:this.controlReverse,spinReverse:this.spinReverse,stopAtEdges:this.stopAtEdges},{onLeftStart:function(e){e.stopPropagation(),t.onSpin(),t.left(),t.loopTimeoutId=window.setInterval(t.left.bind(t),t.autoplaySpeed)},onRightStart:function(e){e.stopPropagation(),t.onSpin(),t.right(),t.loopTimeoutId=window.setInterval(t.right.bind(t),t.autoplaySpeed)},onTopStart:function(e){e.stopPropagation(),t.onSpin(),t.top(),t.loopTimeoutId=window.setInterval(t.top.bind(t),t.autoplaySpeed)},onBottomStart:function(e){e.stopPropagation(),t.onSpin(),t.bottom(),t.loopTimeoutId=window.setInterval(t.bottom.bind(t),t.autoplaySpeed)},onEventEnd:function(){t.onFinishSpin(),window.clearTimeout(t.loopTimeoutId)}});this.topElem=e.top,this.bottomElem=e.bottom,this.leftElem=e.left,this.rightElem=e.right}},{key:"attachEvents",value:function(t,e,n){window.addEventListener("resize",this.requestResizedImages.bind(this)),t&&!this.disableDrag&&(this.container.addEventListener("click",this.mouseClick.bind(this)),this.container.addEventListener("mousedown",this.mouseDown.bind(this)),this.container.addEventListener("mousemove",this.mouseMove.bind(this)),this.container.addEventListener("mouseleave",this.mouseLeave.bind(this)),document.addEventListener("mouseup",this.mouseUp.bind(this))),e&&!this.disableDrag&&(this.container.addEventListener("touchstart",this.touchStart.bind(this),{passive:!0}),this.container.addEventListener("touchend",this.touchEnd.bind(this)),this.container.addEventListener("touchmove",this.touchMove.bind(this))),n&&(document.addEventListener("keydown",this.keyDown.bind(this)),document.addEventListener("keyup",this.keyUp.bind(this))),document.addEventListener("keydown",this.keyDownGeneral.bind(this))}},{key:"init",value:function(t){var e,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=d(t),l=a.folder,h=a.apiVersion,f=a.filenameX,m=a.filenameY,v=a.imageListX,g=a.imageListY,y=a.indexZeroBase,b=a.amountX,w=a.amountY,x=a.draggable,I=void 0===x||x,O=a.swipeable,k=void 0===O||O,E=a.keys,S=a.keysReverse,C=a.bottomCircle,j=a.bottomCircleOffset,L=a.boxShadow,P=a.autoplay,A=a.autoplayBehavior,Y=a.playOnce,D=a.speed,T=a.autoplayReverse,X=a.disableDrag,M=void 0===X||X,F=a.fullscreen,z=a.magnifier,N=a.ciToken,V=a.ciFilters,B=a.ciTransformation,W=a.lazyload,_=a.lazySelector,H=a.spinReverse,U=a.dragSpeed,Z=a.stopAtEdges,G=a.controlReverse,J=a.hide360Logo,$=a.logoSrc,K=a.pointerZoom,Q=a.ratio,et=a.imageInfo,nt=void 0===et?"black":et,it=a.requestResponsiveImages,rt={ciToken:N,ciFilters:V,ciTransformation:B};if(this.folder=l,this.apiVersion=h,this.filenameX=f,this.filenameY=m,this.imageListX=v,this.imageListY=g,this.indexZeroBase=y,this.amountX=v?JSON.parse(v).length:b,this.amountY=g?JSON.parse(g).length:w,this.allowSpinY=!!this.amountY,this.activeImageX=T?this.amountX:1,this.activeImageY=T?this.amountY:1,this.spinY=A===s,this.bottomCircle=C,this.bottomCircleOffset=j,this.boxShadow=L,this.autoplay=P,this.autoplayBehavior=A,this.playOnce=Y,this.speed=D,this.reversed=T,this.disableDrag=M,this.fullscreen=F,this.magnifier=!this.isMobile&&z>1?Math.min(z,5):0,this.lazySelector=_,this.spinReverse=H,this.controlReverse=G,this.dragSpeed=Math.max(U,50),this.autoplaySpeed=36*this.speed/this.amountX,this.stopAtEdges=Z,this.hide360Logo=J,this.logoSrc=$,this.ciParams=rt,this.apiVersion=h,this.pointerZoom=K>1?Math.min(K,3):0,this.keysReverse=S,this.info=nt,this.keys=E,this.ratio=Q&&JSON.parse(Q),this.requestResponsiveImages=it,r)return dt(this.innerBox,this.iconsContainer),dt(this.innerBox,this.boxShadowEl),dt(this.innerBox,this.view360Icon),this.remove360ViewCircleIcon(),this.iconsContainer=ct(this.innerBox),this.hide360Logo||this.lazyload||!this.logoSrc||(this.add360ViewIcon(),p(this.view360Icon,this.logoSrc)),this.magnifier&&this.addMagnifier(),this.bottomCircle&&!this.fullscreenView&&this.add360ViewCircleIcon(),this.fullscreen&&!this.fullscreenView&&this.addFullscreenIcon(),this.boxShadow&&!this.fullscreenView&&(this.boxShadowEl=ut(this.boxShadow,this.innerBox)),o&&!this.fullscreenView&&(this.hotspotsConfigs=Xe(o),De(t,this.hotspotsConfigs)),this.onAllImagesLoaded();this.innerBox=function(t){var e=document.createElement("div");return e.className="cloudimage-360-inner-box",t.appendChild(e),e}(this.container),this.iconsContainer=ct(this.innerBox),this.canvas=(e=this.innerBox,(n=document.createElement("canvas")).style.width="100%",n.style.fontSize="0",e.appendChild(n),n),this.loader=lt(this.innerBox),this.hotspotsConfigs&&!this.fullscreenView&&De(t,this.hotspotsConfigs),function(t){t.style.position="relative",t.style.width="100%",t.style.cursor="wait",t.setAttribute("draggable","false"),t.className="".concat(t.className," initialized")}(this.container),this.srcXConfig={folder:l,filename:f,imageList:v,container:t,innerBox:this.innerBox,apiVersion:h,ciParams:rt,lazySelector:_,amount:this.amountX,indexZeroBase:y,fullscreen:this.fullscreenView},this.srcYConfig=Ne(Ne({},this.srcXConfig),{},{filename:m,orientation:u,imageList:g,amount:this.amountY});var ot=R(this.srcXConfig),at=function(t,e,n){t===c?i.imagesX[n]=e:i.imagesY[n]=e;var r=i.amountX+i.amountY,o=i.imagesX.length+i.imagesY.length,a=!n&&t!==u,s=Math.round(o/r*100);i.updatePercentageInLoader(s),a?i.onFirstImageLoaded(e):i.autoplay&&i.moveRight(n),i.isReady()&&i.onAllImagesLoaded()},st=function(){if(q(i.srcXConfig,ot,at.bind(i,c)),i.allowSpinY){var t=R(i.srcYConfig);q(i.srcYConfig,t,at.bind(i,u))}};W?tt(ot,this.srcXConfig,(function(t){i.innerBox.removeChild(t),st()})):st(),this.attachEvents(I,k,E)}}],i&&r(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}();const Be=Ve;function We(){var t=[],e=document.querySelectorAll(".cloudimage-360:not(.initialized)");[].slice.call(e).forEach((function(e){var n=function(t){if(!t.id){var e=Math.floor(1e4*Math.random()),n="cloudimage-360-view-".concat(e);t.id=n}return t}(e);h(n,"hotspots")||t.push(new Be(n))})),window.CI360._viewers=t}function _e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t){var i=window.CI360._viewers.filter((function(e){return e.id===t}))[0];if(n){var r=document.querySelectorAll(".cloudimage-360"),o=Array.from(r).find((function(e){return e.id===t}));o.setAttribute("data-hotspots",!0)}i.updateView(e,window.CI360._viewers,n)}else window.CI360._viewers.forEach((function(t){t.updateView(e,window.CI360._viewers)}))}function He(){return!(window.CI360._viewers&&window.CI360._viewers.length>0)}window.CI360=window.CI360||{},window.CI360.init=We,window.CI360.destroy=function(){He()||(window.CI360._viewers.forEach((function(t){t.destroy()})),window.CI360._viewers=[])},window.CI360.getActiveIndexByID=function(t,e){if(!He()){var n=window.CI360._viewers.filter((function(e){return e.id===t}))[0];return"y"===e?n&&n.activeImageY-1:n&&n.activeImageX-1}},window.CI360.update=_e,window.CI360.add=function(t){var e=Array.from(document.querySelectorAll(".cloudimage-360:not(.initialized)"));if(e.length&&t){var n=e.filter((function(e){return e.id===t}))[0];n&&window.CI360._viewers.push(new Be(n))}},window.CI360.addHotspots=function(t,e){var n=document.querySelectorAll(".cloudimage-360:not(.initialized)");if(Array.from(n).find((function(e){return e.id===t})))return container.setAttribute("data-hotspots",!0),window.CI360._viewers.push(new Be(container,!1,e));_e(t,!1,e)},window.CI360.notInitOnLoad||We()})()})(); \ No newline at end of file diff --git a/package.json b/package.json index c5963b1..f08b866 100644 --- a/package.json +++ b/package.json @@ -23,12 +23,12 @@ ], "scripts": { "start-demo": "webpack-dev-server --mode development --config config/webpack-demo.config.js", - "clean:build": "rm -rf build", + "clean:build": "shx rm -rf build", "build:bundle": "npm run clean:build && webpack --mode production --config config/webpack-build.config.js", "deploy:bundle": "npm run build:bundle && node bin/deploy-bundle", - "clean:dist": "rm -rf dist", + "clean:dist": "shx rm -rf dist", "dist": "npm run clean:dist && babel src -d dist --copy-files", - "clean:demo": "rm -rf examples/dist", + "clean:demo": "shx rm -rf examples/dist", "build:demo": "npm run clean:demo && webpack --mode production --config config/webpack-demo.config.js", "deploy:demo": "gh-pages -d examples/dist", "publish:demo": "npm run build:demo && npm run deploy:demo" @@ -59,6 +59,7 @@ "isomorphic-fetch": "^3.0.0", "mini-css-extract-plugin": "^0.9.0", "mobile-detect": "^1.4.3", + "shx": "^0.3.4", "style-loader": "^3.3.2", "webpack": "^5.79.0", "webpack-cli": "^5.0.1",