@plaidev/karte-action-sdk 1.1.268-29083022.42c3d847 → 1.1.268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2169,1111 +2169,1056 @@ function createFog$1({ color = '#000', opacity = '50%', zIndex = 999, onclick, }
2169
2169
  }
2170
2170
 
2171
2171
  /**
2172
- * モーダル(ポップアップ)に関連するコードの管理
2172
+ * スクリプト接客が利用するコードの管理
2173
+ */
2174
+ /** @internal */
2175
+ async function runScript$1(options = {
2176
+ send: () => { },
2177
+ publish: () => { },
2178
+ props: {},
2179
+ variables: {},
2180
+ localVariablesQuery: undefined,
2181
+ karteTemplate: {},
2182
+ context: { api_key: '', collection_endpoint: undefined },
2183
+ }) {
2184
+ if (!options.onCreate)
2185
+ return;
2186
+ let data = getVariables();
2187
+ initialize({ send: options.send, initialState: data.initial_state });
2188
+ initActionTable(options.localVariablesQuery);
2189
+ const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key, options.context.collection_endpoint);
2190
+ if (!success)
2191
+ return;
2192
+ // Action Tableの取得結果を反映する
2193
+ data = getVariables();
2194
+ const actionProps = {
2195
+ send: options.send,
2196
+ publish: options.publish,
2197
+ data,
2198
+ };
2199
+ options.send('script_fired');
2200
+ // 旧Widget API IFの処理
2201
+ const { onCreateHandlers } = getInternalHandlers();
2202
+ if (onCreateHandlers) {
2203
+ onCreateHandlers.forEach(h => {
2204
+ h({ send: options.send, publish: options.publish, data });
2205
+ console.debug(`${ACTION_HOOK_LABEL}: onCreate`);
2206
+ });
2207
+ }
2208
+ options.onCreate(actionProps);
2209
+ finalize();
2210
+ }
2211
+ /**
2212
+ * ES Modules に対応していない JavaScript をページに読み込む
2173
2213
  *
2174
- * アクションのShow, Close, ChangeStateの状態はここで管理する。
2214
+ * @param src - JavaScript ファイルのリンク URL
2215
+ *
2216
+ * @public
2175
2217
  */
2218
+ async function loadGlobalScript(src) {
2219
+ return new Promise((resolve, reject) => {
2220
+ const script = document.createElement('script');
2221
+ script.src = src;
2222
+ document.body.appendChild(script);
2223
+ script.addEventListener('load', () => resolve(script));
2224
+ script.addEventListener('error', () => reject(script));
2225
+ });
2226
+ }
2176
2227
  /**
2177
- * アクションが表示 (show) された後にフックする関数
2228
+ * グローバル CSS をページに適用する
2178
2229
  *
2179
- * @param fn - 呼び出されるフック関数
2230
+ * @param css - CSS
2180
2231
  *
2181
2232
  * @public
2182
2233
  */
2183
- function onShow(fn) {
2184
- let { onShowHandlers } = getInternalHandlers();
2185
- if (!onShowHandlers) {
2186
- onShowHandlers = [];
2187
- }
2188
- onShowHandlers.push(fn);
2189
- setInternalHandlers({ onShowHandlers });
2234
+ async function applyGlobalCss(css) {
2235
+ return new Promise((resolve, reject) => {
2236
+ const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2237
+ if (!action) {
2238
+ return;
2239
+ }
2240
+ const style = document.createElement('style');
2241
+ style.textContent = css;
2242
+ action.appendChild(style);
2243
+ style.addEventListener('load', () => resolve(style));
2244
+ style.addEventListener('error', () => reject(style));
2245
+ });
2190
2246
  }
2191
2247
  /**
2192
- * アクションがクローズ (close) される前にフックする関数
2248
+ * style ファイルをページに読み込む
2193
2249
  *
2194
- * @param fn - 呼び出されるフック関数
2250
+ * @param href - style ファイルのリンク URL
2195
2251
  *
2196
2252
  * @public
2197
2253
  */
2198
- function onClose(fn) {
2199
- let { onCloseHandlers } = getInternalHandlers();
2200
- if (!onCloseHandlers) {
2201
- onCloseHandlers = [];
2202
- }
2203
- onCloseHandlers.push(fn);
2204
- setInternalHandlers({ onCloseHandlers });
2254
+ async function loadGlobalStyle(href) {
2255
+ return new Promise((resolve, reject) => {
2256
+ const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2257
+ if (!action) {
2258
+ return;
2259
+ }
2260
+ const link = document.createElement('link');
2261
+ link.rel = 'stylesheet';
2262
+ link.href = href;
2263
+ link.type = 'text/css';
2264
+ action.appendChild(link);
2265
+ link.addEventListener('load', () => resolve(link));
2266
+ link.addEventListener('error', () => reject(link));
2267
+ });
2205
2268
  }
2269
+
2206
2270
  /**
2207
- * アクションのステートが変更された (changeState) 後にフックする関数
2271
+ * Edgeが起動するアクションに関連するコードを管理する
2208
2272
  *
2209
- * @param fn - 呼び出されるフック関数
2273
+ * アクションのCreate, Destroyの状態はここで管理する。
2274
+ */
2275
+ const emptyOptions = {
2276
+ send: () => { },
2277
+ publish: () => { },
2278
+ props: {},
2279
+ variables: {},
2280
+ localVariablesQuery: undefined,
2281
+ karteTemplate: {},
2282
+ context: { api_key: '', collection_endpoint: undefined },
2283
+ };
2284
+ /**
2285
+ * アクションを作成する
2286
+ *
2287
+ * @param App - Svelte コンポーネントのエントリポイント
2288
+ * @param options - {@link ActionOptions | オプション}
2289
+ *
2290
+ * @returns アクションを破棄する関数
2210
2291
  *
2211
2292
  * @public
2212
2293
  */
2213
- function onChangeState(fn) {
2214
- let { onChangeStateHandlers } = getInternalHandlers();
2215
- if (!onChangeStateHandlers) {
2216
- onChangeStateHandlers = [];
2294
+ function create(App, options) {
2295
+ // TSの型検査が効かない場所やエラーを無視している箇所があるため、念の為
2296
+ options = { ...emptyOptions, ...options };
2297
+ setVariables({
2298
+ ...options.props,
2299
+ ...options.variables,
2300
+ });
2301
+ const data = getVariables();
2302
+ const actionProps = {
2303
+ send: options.send,
2304
+ publish: options.publish,
2305
+ data,
2306
+ };
2307
+ const handleDestroy = () => {
2308
+ const { onDestroyHandlers } = getInternalHandlers();
2309
+ onDestroyHandlers?.forEach(h => {
2310
+ const actionHookLog = { name: 'onDestroy' };
2311
+ console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
2312
+ h(actionProps);
2313
+ });
2314
+ // 旧Widget APIの内部で利用するため、実行ログは出力しない
2315
+ const { onDestroyHandlers: onDestroyWidgetHandlers } = getWidgetHandlers();
2316
+ if (onDestroyWidgetHandlers) {
2317
+ onDestroyWidgetHandlers.forEach(h => h(actionProps));
2318
+ }
2319
+ };
2320
+ // ここからメインの処理
2321
+ setSystem({
2322
+ // @ts-ignore
2323
+ apiKey: data.api_key || null,
2324
+ collection_endpoint: options.context.collection_endpoint,
2325
+ shortenId: data.shorten_id || null,
2326
+ campaignId: data.campaign_id || null,
2327
+ });
2328
+ setActionRunnerContext(options.context);
2329
+ window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2330
+ window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2331
+ let modalCleanup = NOOP;
2332
+ if (options.karteTemplate?.template_type === 'script' ||
2333
+ options.karteTemplate?.template_content_types?.includes('script')) {
2334
+ runScript$1(options);
2217
2335
  }
2218
- onChangeStateHandlers.push(fn);
2219
- setInternalHandlers({ onChangeStateHandlers });
2336
+ else {
2337
+ modalCleanup = createModal(App, options);
2338
+ }
2339
+ return () => {
2340
+ modalCleanup();
2341
+ window.removeEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2342
+ };
2220
2343
  }
2221
2344
  /**
2222
- * アクションを表示する
2345
+ * アクションの破棄する
2223
2346
  *
2224
2347
  * @public
2225
2348
  */
2226
- function showAction() {
2227
- const event = new CustomEvent(ACTION_SHOW_EVENT, { detail: { trigger: 'custom' } });
2228
- window.dispatchEvent(event);
2349
+ function destroyAction() {
2350
+ setDestroyed(true);
2351
+ dispatchDestroyEvent();
2229
2352
  }
2230
2353
  /**
2231
- * アクションを閉じる
2354
+ * アクションが作成 (create) される前にフックする関数
2232
2355
  *
2233
- * @param trigger - 閉じた時のトリガー。デフォルト `'none'`
2356
+ * @param fn - 呼び出されるフック関数
2234
2357
  *
2235
2358
  * @public
2236
2359
  */
2237
- function closeAction(trigger = 'none') {
2238
- const event = new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } });
2239
- window.dispatchEvent(event);
2360
+ function onCreate(fn) {
2361
+ let { onCreateHandlers } = getInternalHandlers();
2362
+ if (!onCreateHandlers) {
2363
+ onCreateHandlers = [];
2364
+ }
2365
+ onCreateHandlers.push(fn);
2366
+ setInternalHandlers({ onCreateHandlers });
2240
2367
  }
2241
2368
  /**
2242
- * アクションに CSS を適用する
2243
- *
2244
- * @param css - 適用する CSS
2369
+ * アクションが破棄 (destroy) される前にフックする関数
2245
2370
  *
2246
- * @returns 適用された style 要素を返す Promise
2371
+ * @param fn - 呼び出されるフック関数
2247
2372
  *
2248
2373
  * @public
2249
2374
  */
2250
- async function applyCss(css) {
2251
- return new Promise((resolve, reject) => {
2252
- const style = document.createElement('style');
2253
- style.textContent = css;
2254
- const shadowRoot = getActionRoot();
2255
- if (!shadowRoot)
2256
- return;
2257
- shadowRoot.append(style);
2258
- style.addEventListener('load', () => resolve(style));
2259
- style.addEventListener('error', () => reject(style));
2260
- });
2261
- }
2262
- async function fixFontFaceIssue(href, cssRules) {
2263
- const css = new CSSStyleSheet();
2264
- // @ts-ignore
2265
- await css.replace(cssRules);
2266
- const rules = [];
2267
- const fixedRules = [];
2268
- Array.from(css.cssRules).forEach(cssRule => {
2269
- if (cssRule.type !== 5) {
2270
- rules.push(cssRule.cssText);
2271
- }
2272
- // type 5 is @font-face
2273
- const split = href.split('/');
2274
- const stylePath = split.slice(0, split.length - 1).join('/');
2275
- const cssText = cssRule.cssText;
2276
- const newCssText = cssText.replace(
2277
- // relative paths
2278
- /url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g, `url("${stylePath}/$4")`);
2279
- if (cssText === newCssText)
2280
- return;
2281
- fixedRules.push(newCssText);
2282
- });
2283
- return [rules.join('\n'), fixedRules.join('\n')];
2375
+ function onDestroy(fn) {
2376
+ let { onDestroyHandlers } = getInternalHandlers();
2377
+ if (!onDestroyHandlers) {
2378
+ onDestroyHandlers = [];
2379
+ }
2380
+ onDestroyHandlers.push(fn);
2381
+ setInternalHandlers({ onDestroyHandlers });
2284
2382
  }
2383
+ // -------- The following codes are deprecated --------
2285
2384
  /**
2286
- * アクションにグローバルなスタイルを読み込む
2385
+ * 非推奨
2287
2386
  *
2288
- * @param href - style ファイルのリンク URL
2387
+ * @deprecated 非推奨
2289
2388
  *
2290
- * @public
2389
+ * @internal
2291
2390
  */
2292
- async function loadStyle(href) {
2293
- const sr = getActionRoot();
2294
- if (!sr)
2295
- return;
2296
- let cssRules = '';
2297
- try {
2298
- const res = await fetch(href);
2299
- cssRules = await res.text();
2300
- }
2301
- catch (_) {
2302
- // pass
2303
- }
2304
- if (!cssRules)
2305
- return;
2306
- // Chromeのバグで、Shadow Rootの@font-faceを絶対パスで指定する必要がある
2307
- // @see https://stackoverflow.com/a/63717709
2308
- const [rules, fontFaceRules] = await fixFontFaceIssue(href, cssRules);
2309
- const css = new CSSStyleSheet();
2310
- // @ts-ignore
2311
- await css.replace(rules);
2312
- const fontFaceCss = new CSSStyleSheet();
2313
- // @ts-ignore
2314
- await fontFaceCss.replace(fontFaceRules);
2315
- // @ts-ignore
2316
- sr.adoptedStyleSheets = [...sr.adoptedStyleSheets, css, fontFaceCss];
2317
- // Chromeのバグで、ページとShadow Rootの両方に、@font-faceを設定する必要がある
2318
- // @see https://stackoverflow.com/a/63717709
2319
- // @ts-ignore
2320
- document.adoptedStyleSheets = [...document.adoptedStyleSheets, css, fontFaceCss];
2321
- }
2322
- // @internal
2323
- function getCssVariables(data) {
2324
- return Object.entries(data)
2325
- .filter(([key, value]) => {
2326
- return ['string', 'number'].includes(typeof value) && key.startsWith('--');
2327
- })
2328
- .map(([key, value]) => `${key}:${value}`)
2329
- .join(';');
2330
- }
2391
+ const showModal = create;
2331
2392
  /**
2332
- * アクションのルートの DOM 要素を取得する
2393
+ * 非推奨
2333
2394
  *
2334
- * @returns アクションがルートの DOM 要素 を持つ場合は DOM 要素を返します。ない場合は `null` を返します
2395
+ * @deprecated 非推奨
2335
2396
  *
2336
- * @public
2397
+ * @internal
2337
2398
  */
2338
- function getActionRoot() {
2339
- const root = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2340
- if (!root?.shadowRoot) {
2341
- return null;
2399
+ function destroy() {
2400
+ setDestroyed(true);
2401
+ dispatchDestroyEvent();
2402
+ }
2403
+
2404
+ const USER_ID_VARIABLE_NAME = '__karte_form_identify_user_id';
2405
+ const MAX_LENGTH_FREE_ANSWER = 2000;
2406
+ function isEmpty(value) {
2407
+ if (Array.isArray(value)) {
2408
+ return value.length === 0;
2409
+ }
2410
+ else {
2411
+ return !value;
2342
2412
  }
2343
- return root.shadowRoot;
2344
2413
  }
2345
2414
  /** @internal */
2346
- function ensureActionRoot(useShadow = true) {
2347
- const systemConfig = getSystem();
2348
- const rootAttrs = {
2349
- class: `${KARTE_ACTION_ROOT} ${KARTE_MODAL_ROOT}`,
2350
- [`data-${KARTE_ACTION_RID}`]: actionId,
2351
- [`data-${KARTE_ACTION_SHORTEN_ID}`]: systemConfig.shortenId
2352
- ? systemConfig.shortenId
2353
- : ALL_ACTION_SHORTEN_ID,
2354
- style: { display: 'block' },
2415
+ function createInputRegisterer(formData) {
2416
+ const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2417
+ const writableValue = {
2418
+ subscribe(run) {
2419
+ return formData.subscribe(formData => {
2420
+ run(formData[name]?.value);
2421
+ });
2422
+ },
2423
+ set(value) {
2424
+ formData.update(prev => ({
2425
+ ...prev,
2426
+ [name]: {
2427
+ statePath,
2428
+ value,
2429
+ isValid: validator(value),
2430
+ },
2431
+ }));
2432
+ },
2433
+ update(updater) {
2434
+ formData.update(prev => {
2435
+ const prevValue = prev[name]?.value;
2436
+ if (prevValue === undefined)
2437
+ return prev;
2438
+ const value = updater(prevValue);
2439
+ return {
2440
+ ...prev,
2441
+ [name]: {
2442
+ statePath,
2443
+ value,
2444
+ isValid: validator(value),
2445
+ },
2446
+ };
2447
+ });
2448
+ },
2449
+ };
2450
+ const readableIsValid = {
2451
+ subscribe(run) {
2452
+ return formData.subscribe(formData => {
2453
+ run(formData[name]?.isValid);
2454
+ });
2455
+ },
2456
+ };
2457
+ if (isEmpty(get(writableValue))) {
2458
+ writableValue.set(initialValue);
2459
+ }
2460
+ return {
2461
+ value: writableValue,
2462
+ isValid: readableIsValid,
2463
+ };
2355
2464
  };
2356
- let el = document.querySelector(`.${KARTE_MODAL_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2357
- if (el == null) {
2358
- el = h('div', rootAttrs);
2359
- document.body.appendChild(el);
2465
+ return registerInput;
2466
+ }
2467
+ /** @internal */
2468
+ const registerInput = createInputRegisterer(formData);
2469
+ /** @internal */
2470
+ const registerIdentifyInput = createInputRegisterer(identifyFormData);
2471
+ function validateFormData(formData, statePath) {
2472
+ return Object.entries(formData)
2473
+ .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2474
+ .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2475
+ }
2476
+ /** @internal */
2477
+ const getValuesAreValidReadable = statePath => ({
2478
+ subscribe(callback) {
2479
+ return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
2480
+ const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2481
+ callback(valuesAreValid);
2482
+ }));
2483
+ },
2484
+ });
2485
+ function createAnswerValue(value) {
2486
+ if (Array.isArray(value)) {
2487
+ return {
2488
+ choices: value,
2489
+ };
2360
2490
  }
2361
- const isShadow = !!document.body.attachShadow && useShadow;
2362
- if (isShadow) {
2363
- return el.shadowRoot ?? el.attachShadow({ mode: 'open' });
2491
+ else if (typeof value === 'string') {
2492
+ return {
2493
+ free_answer: value,
2494
+ };
2364
2495
  }
2365
- else {
2366
- return el;
2496
+ }
2497
+ function formDataToEventValues(campaignId, formData) {
2498
+ const questions = [];
2499
+ const answersMap = {};
2500
+ Object.entries(formData).forEach(([name, dataItem]) => {
2501
+ questions.push(name);
2502
+ const value = dataItem.value;
2503
+ const answerKey = `question_${name}`;
2504
+ const answerValue = createAnswerValue(value);
2505
+ answersMap[answerKey] = answerValue;
2506
+ });
2507
+ return {
2508
+ [campaignId]: {
2509
+ questions,
2510
+ ...answersMap,
2511
+ },
2512
+ };
2513
+ }
2514
+ function formDataToIdentifyEventValues(formData) {
2515
+ return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
2516
+ const value = dataItem.value;
2517
+ return [name, value];
2518
+ }));
2519
+ }
2520
+ /** @internal */
2521
+ function submit() {
2522
+ const systemConfig = getSystem();
2523
+ const campaignId = systemConfig.campaignId;
2524
+ if (campaignId) {
2525
+ const formData$1 = get(formData);
2526
+ const identifyFormData$1 = get(identifyFormData);
2527
+ const values = formDataToEventValues(campaignId, formData$1);
2528
+ const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
2529
+ if (Object.keys(identifyValues).length > 0) {
2530
+ identifyValues['user_id'] = getVariables()?.[USER_ID_VARIABLE_NAME];
2531
+ }
2532
+ return { values, identifyValues };
2367
2533
  }
2534
+ return {};
2368
2535
  }
2369
2536
  /**
2370
- * 非推奨
2537
+ * 選択式のアンケート回答を追加する
2371
2538
  *
2372
- * @deprecated 非推奨
2539
+ * @param questionId - 質問ID
2540
+ * @param choices - 回答内容
2373
2541
  *
2374
- * @internal
2542
+ * @public
2375
2543
  */
2376
- const show = showAction;
2544
+ function addChoiceAnswer(questionId, choices, validation) {
2545
+ formData.update(prev => ({
2546
+ ...prev,
2547
+ [questionId]: {
2548
+ value: choices,
2549
+ statePath: validation?.statePath ?? '',
2550
+ isValid: validation?.isValid ?? true,
2551
+ },
2552
+ }));
2553
+ }
2377
2554
  /**
2378
- * 非推奨
2555
+ * 自由記述式のアンケート回答を追加する
2379
2556
  *
2380
- * @deprecated 非推奨
2557
+ * @param questionId - 質問ID
2558
+ * @param freeAnswer - 回答内容
2381
2559
  *
2382
- * @internal
2560
+ * @public
2383
2561
  */
2384
- const close = closeAction;
2562
+ function addFreeAnswer(questionId, freeAnswer, validation) {
2563
+ formData.update(prev => ({
2564
+ ...prev,
2565
+ [questionId]: {
2566
+ value: freeAnswer.slice(0, MAX_LENGTH_FREE_ANSWER),
2567
+ statePath: validation?.statePath ?? '',
2568
+ isValid: validation?.isValid ?? true,
2569
+ },
2570
+ }));
2571
+ }
2385
2572
  /**
2386
- * 非推奨
2573
+ * 回答済の回答を削除
2387
2574
  *
2388
- * @deprecated 非推奨
2575
+ * @param questionId - 質問ID
2389
2576
  *
2390
- * @internal
2577
+ * @public
2391
2578
  */
2392
- const ensureModalRoot = ensureActionRoot;
2579
+ function removeAnswer(questionId) {
2580
+ formData.update(prev => {
2581
+ const next = { ...prev };
2582
+ delete next[questionId];
2583
+ return next;
2584
+ });
2585
+ }
2393
2586
  /**
2394
- * 非推奨
2587
+ * 回答済の回答内容を取得する
2395
2588
  *
2396
- * @deprecated 非推奨
2589
+ * @param questionId - 質問ID
2397
2590
  *
2398
- * @internal
2591
+ * @returns 回答データ
2592
+ *
2593
+ * @public
2399
2594
  */
2400
- function createApp(App, options = {
2401
- send: () => { },
2402
- publish: () => { },
2403
- props: {},
2404
- variables: {},
2405
- localVariablesQuery: undefined,
2406
- context: { api_key: '' },
2407
- }) {
2408
- let app = null;
2409
- const close = () => {
2410
- if (app) {
2411
- {
2412
- // @ts-ignore -- Svelte5 では $destroy は存在しない
2413
- app.$destroy();
2414
- }
2415
- app = null;
2416
- }
2417
- };
2418
- const appArgs = {
2419
- target: null,
2420
- props: {
2421
- send: options.send,
2422
- publish: options.publish,
2423
- close,
2424
- data: {
2425
- ...options.props,
2426
- ...options.variables,
2427
- },
2428
- },
2429
- };
2430
- const win = ensureActionRoot(isOnSite());
2431
- appArgs.target = win;
2432
- return {
2433
- close,
2434
- show: () => {
2435
- if (app) {
2436
- return;
2437
- }
2438
- options.send('message_open');
2439
- app = // @ts-ignore -- Svelte5 では `App` はクラスではない
2440
- new App(appArgs);
2441
- },
2442
- };
2595
+ function getAnsweredQuestion(questionId) {
2596
+ const formData$1 = get(formData);
2597
+ const valueState = formData$1[questionId];
2598
+ if (valueState) {
2599
+ return createAnswerValue(valueState.value);
2600
+ }
2443
2601
  }
2444
2602
  /**
2445
- * 非推奨
2603
+ * 回答済の回答IDのリストを取得
2446
2604
  *
2447
- * @deprecated 非推奨
2605
+ * @returns 回答済の質問の質問IDの配列
2448
2606
  *
2449
- * @internal
2607
+ * @public
2450
2608
  */
2451
- function createFog({ color = '#000', opacity = '50%', zIndex = 999, onclick, }) {
2452
- console.log('createFog');
2453
- const root = ensureModalRoot();
2454
- if (root.querySelector('.__krt-fog')) {
2455
- return { fog: null, close: () => { } };
2456
- }
2457
- const fog = document.createElement('div');
2458
- fog.className = '__krt-fog';
2459
- Object.assign(fog.style, {
2460
- position: 'fixed',
2461
- left: 0,
2462
- top: 0,
2463
- width: '100%',
2464
- height: '100%',
2465
- 'z-index': zIndex,
2466
- 'background-color': color,
2467
- opacity,
2468
- });
2469
- const close = () => {
2470
- onclick();
2471
- fog.remove();
2472
- };
2473
- fog.onclick = close;
2474
- root.appendChild(fog);
2475
- return { fog, close };
2609
+ function getAnsweredQuestionIds() {
2610
+ const formData$1 = get(formData);
2611
+ return Object.keys(formData$1);
2476
2612
  }
2477
-
2478
2613
  /**
2479
- * スクリプト接客が利用するコードの管理
2614
+ * `sendAnswers`のエイリアス
2615
+ *
2616
+ * @public
2480
2617
  */
2481
- /** @internal */
2482
- async function runScript$1(options = {
2483
- send: () => { },
2484
- publish: () => { },
2485
- props: {},
2486
- variables: {},
2487
- localVariablesQuery: undefined,
2488
- karteTemplate: {},
2489
- context: { api_key: '', collection_endpoint: undefined },
2490
- }) {
2491
- if (!options.onCreate)
2492
- return;
2493
- let data = getVariables();
2494
- initialize({ send: options.send, initialState: data.initial_state });
2495
- initActionTable(options.localVariablesQuery);
2496
- const { success } = await setupActionTable(options.localVariablesQuery, data, data.api_key, options.context.collection_endpoint);
2497
- if (!success)
2498
- return;
2499
- // Action Tableの取得結果を反映する
2500
- data = getVariables();
2501
- const actionProps = {
2502
- send: options.send,
2503
- publish: options.publish,
2504
- data,
2505
- };
2506
- options.send('script_fired');
2507
- // 旧Widget API IFの処理
2508
- const { onCreateHandlers } = getInternalHandlers();
2509
- if (onCreateHandlers) {
2510
- onCreateHandlers.forEach(h => {
2511
- h({ send: options.send, publish: options.publish, data });
2512
- console.debug(`${ACTION_HOOK_LABEL}: onCreate`);
2513
- });
2514
- }
2515
- options.onCreate(actionProps);
2516
- finalize();
2618
+ function sendAnswer() {
2619
+ return sendAnswers();
2517
2620
  }
2621
+ // NOTE: sendAnswers用
2622
+ let isSent = false;
2518
2623
  /**
2519
- * ES Modules に対応していない JavaScript をページに読み込む
2624
+ * 回答済の回答をまとめてイベントとして送信する
2520
2625
  *
2521
- * @param src - JavaScript ファイルのリンク URL
2626
+ * @returns イベント送信の成功/失敗
2522
2627
  *
2523
2628
  * @public
2524
2629
  */
2525
- async function loadGlobalScript(src) {
2526
- return new Promise((resolve, reject) => {
2527
- const script = document.createElement('script');
2528
- script.src = src;
2529
- document.body.appendChild(script);
2530
- script.addEventListener('load', () => resolve(script));
2531
- script.addEventListener('error', () => reject(script));
2532
- });
2630
+ function sendAnswers() {
2631
+ const { values, identifyValues } = submit();
2632
+ if (isSent)
2633
+ return false;
2634
+ if (Object.keys(values ?? {}).length === 0 && Object.keys(identifyValues ?? {}).length === 0) {
2635
+ return false;
2636
+ }
2637
+ send_event('_answer_question', values);
2638
+ if (Object.keys(identifyValues ?? {}).length > 0) {
2639
+ send_event('identify', identifyValues);
2640
+ }
2641
+ isSent = true;
2642
+ return true;
2533
2643
  }
2644
+
2534
2645
  /**
2535
- * グローバル CSS をページに適用する
2646
+ * エディタv1のWidget API 互換のインターフェース
2647
+ */
2648
+ const STORE_LS_KEY_PREFIX = 'krt___';
2649
+ const valCallbacks = {};
2650
+ const eventCallbacks = {};
2651
+ const memoryStore = {};
2652
+ setWidgetHandlers({
2653
+ onChangeState: [
2654
+ (_props, newState) => {
2655
+ setVal('state', newState);
2656
+ },
2657
+ ],
2658
+ onDestroy: [
2659
+ () => {
2660
+ Object.entries(eventCallbacks).map(([name, cbs]) => {
2661
+ cbs.forEach(cb => {
2662
+ window.removeEventListener(name, cb);
2663
+ });
2664
+ });
2665
+ },
2666
+ ],
2667
+ });
2668
+ /**
2669
+ * 変数を設定する
2536
2670
  *
2537
- * @param css - CSS
2671
+ * @param name - 変数名
2672
+ * @param value - 変数値
2538
2673
  *
2539
2674
  * @public
2540
2675
  */
2541
- async function applyGlobalCss(css) {
2542
- return new Promise((resolve, reject) => {
2543
- const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2544
- if (!action) {
2545
- return;
2676
+ function setVal(name, value) {
2677
+ variables.update(current => {
2678
+ if (valCallbacks[name]) {
2679
+ valCallbacks[name].forEach(cb => {
2680
+ cb({ newVal: value, oldVal: current[name], key: name });
2681
+ });
2546
2682
  }
2547
- const style = document.createElement('style');
2548
- style.textContent = css;
2549
- action.appendChild(style);
2550
- style.addEventListener('load', () => resolve(style));
2551
- style.addEventListener('error', () => reject(style));
2683
+ current[name] = value;
2684
+ return current;
2552
2685
  });
2553
2686
  }
2554
2687
  /**
2555
- * style ファイルをページに読み込む
2688
+ * 変数を取得する
2556
2689
  *
2557
- * @param href - style ファイルのリンク URL
2690
+ * @param name - 変数名
2691
+ *
2692
+ * @returns 変数値
2558
2693
  *
2559
2694
  * @public
2560
2695
  */
2561
- async function loadGlobalStyle(href) {
2562
- return new Promise((resolve, reject) => {
2563
- const action = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
2564
- if (!action) {
2565
- return;
2566
- }
2567
- const link = document.createElement('link');
2568
- link.rel = 'stylesheet';
2569
- link.href = href;
2570
- link.type = 'text/css';
2571
- action.appendChild(link);
2572
- link.addEventListener('load', () => resolve(link));
2573
- link.addEventListener('error', () => reject(link));
2574
- });
2696
+ function getVal(name) {
2697
+ const cv = getVariables();
2698
+ return cv[name];
2575
2699
  }
2576
-
2577
2700
  /**
2578
- * Edgeが起動するアクションに関連するコードを管理する
2701
+ * 変数が変更されたときに実行されるコールバック関数を設定する
2579
2702
  *
2580
- * アクションのCreate, Destroyの状態はここで管理する。
2703
+ * @param name - 変数名
2704
+ * @param callback - コールバック関数
2705
+ *
2706
+ * @public
2581
2707
  */
2582
- const emptyOptions = {
2583
- send: () => { },
2584
- publish: () => { },
2585
- props: {},
2586
- variables: {},
2587
- localVariablesQuery: undefined,
2588
- karteTemplate: {},
2589
- context: { api_key: '', collection_endpoint: undefined },
2590
- };
2708
+ function onChangeVal(name, callback) {
2709
+ if (!valCallbacks[name]) {
2710
+ valCallbacks[name] = [];
2711
+ }
2712
+ valCallbacks[name].push(callback);
2713
+ }
2591
2714
  /**
2592
- * アクションを作成する
2593
- *
2594
- * @param App - Svelte コンポーネントのエントリポイント
2595
- * @param options - {@link ActionOptions | オプション}
2715
+ * WEBのイベントが発生したときに実行されるコールバック関数を設定する
2596
2716
  *
2597
- * @returns アクションを破棄する関数
2717
+ * @param name - WEBのイベント名
2718
+ * @param callback - コールバック関数
2598
2719
  *
2599
2720
  * @public
2600
2721
  */
2601
- function create(App, options) {
2602
- // TSの型検査が効かない場所やエラーを無視している箇所があるため、念の為
2603
- options = { ...emptyOptions, ...options };
2604
- setVariables({
2605
- ...options.props,
2606
- ...options.variables,
2607
- });
2608
- const data = getVariables();
2609
- const actionProps = {
2610
- send: options.send,
2611
- publish: options.publish,
2612
- data,
2613
- };
2614
- const handleDestroy = () => {
2615
- const { onDestroyHandlers } = getInternalHandlers();
2616
- onDestroyHandlers?.forEach(h => {
2617
- const actionHookLog = { name: 'onDestroy' };
2618
- console.info(`${ACTION_HOOK_LABEL}:${JSON.stringify(actionHookLog)}`);
2619
- h(actionProps);
2620
- });
2621
- // 旧Widget APIの内部で利用するため、実行ログは出力しない
2622
- const { onDestroyHandlers: onDestroyWidgetHandlers } = getWidgetHandlers();
2623
- if (onDestroyWidgetHandlers) {
2624
- onDestroyWidgetHandlers.forEach(h => h(actionProps));
2625
- }
2626
- };
2627
- // ここからメインの処理
2628
- setSystem({
2629
- // @ts-ignore
2630
- apiKey: data.api_key || null,
2631
- collection_endpoint: options.context.collection_endpoint,
2632
- shortenId: data.shorten_id || null,
2633
- campaignId: data.campaign_id || null,
2634
- });
2635
- setActionRunnerContext(options.context);
2636
- window.addEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2637
- window.addEventListener('beforeunload', dispatchDestroyEvent, false);
2638
- let modalCleanup = NOOP;
2639
- if (options.karteTemplate?.template_type === 'script' ||
2640
- options.karteTemplate?.template_content_types?.includes('script')) {
2641
- runScript$1(options);
2722
+ function method(name, callback) {
2723
+ window.addEventListener(name, callback);
2724
+ if (!eventCallbacks[name]) {
2725
+ eventCallbacks[name] = [];
2726
+ }
2727
+ eventCallbacks[name].push(callback);
2728
+ }
2729
+ /**
2730
+ * Widgetのイベントが発生したときに実行されるコールバック関数を設定する
2731
+ *
2732
+ * @param name - Widgetのイベント名
2733
+ * @param callback - コールバック関数
2734
+ *
2735
+ * @public
2736
+ */
2737
+ function on(name, callback) {
2738
+ let onCallback;
2739
+ if (name === 'hide') {
2740
+ onCallback = (event) => {
2741
+ if (event.detail.trigger !== 'button')
2742
+ return;
2743
+ callback(event);
2744
+ eventCallbacks[name].push(callback);
2745
+ };
2746
+ window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
2747
+ }
2748
+ else if (name === 'clickBackdrop') {
2749
+ onCallback = (event) => {
2750
+ if (event.detail.trigger !== 'overlay')
2751
+ return;
2752
+ callback(event);
2753
+ };
2754
+ window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
2755
+ }
2756
+ else if (name === 'destroyed') {
2757
+ onCallback = callback;
2758
+ window.addEventListener(ACTION_DESTROY_EVENT, onCallback);
2642
2759
  }
2643
2760
  else {
2644
- modalCleanup = createModal(App, options);
2761
+ console.warn('warn: private event handler', name);
2645
2762
  }
2646
- return () => {
2647
- modalCleanup();
2648
- window.removeEventListener(ACTION_DESTROY_EVENT, handleDestroy);
2649
- };
2763
+ if (!eventCallbacks[name]) {
2764
+ eventCallbacks[name] = [];
2765
+ }
2766
+ eventCallbacks[name].push(onCallback);
2650
2767
  }
2651
2768
  /**
2652
- * アクションの破棄する
2769
+ * 現在のステートを設定する
2770
+ *
2771
+ * @param stateId - ステートID
2653
2772
  *
2654
2773
  * @public
2655
2774
  */
2656
- function destroyAction() {
2657
- setDestroyed(true);
2658
- dispatchDestroyEvent();
2775
+ function setState(stateId) {
2776
+ const stateIds = getStates();
2777
+ if (stateIds.includes(stateId))
2778
+ return;
2779
+ setState$1(stateId);
2659
2780
  }
2660
2781
  /**
2661
- * アクションが作成 (create) される前にフックする関数
2782
+ * 現在のステートを取得する
2662
2783
  *
2663
- * @param fn - 呼び出されるフック関数
2784
+ * @returns ステートID
2664
2785
  *
2665
2786
  * @public
2666
2787
  */
2667
- function onCreate(fn) {
2668
- let { onCreateHandlers } = getInternalHandlers();
2669
- if (!onCreateHandlers) {
2670
- onCreateHandlers = [];
2671
- }
2672
- onCreateHandlers.push(fn);
2673
- setInternalHandlers({ onCreateHandlers });
2788
+ function getState() {
2789
+ return getState$1();
2674
2790
  }
2675
2791
  /**
2676
- * アクションが破棄 (destroy) される前にフックする関数
2792
+ * ページ内の変数を設定する
2677
2793
  *
2678
- * @param fn - 呼び出されるフック関数
2794
+ * @param key - 変数のキー
2795
+ * @param value - 変数値
2679
2796
  *
2680
2797
  * @public
2681
2798
  */
2682
- function onDestroy(fn) {
2683
- let { onDestroyHandlers } = getInternalHandlers();
2684
- if (!onDestroyHandlers) {
2685
- onDestroyHandlers = [];
2686
- }
2687
- onDestroyHandlers.push(fn);
2688
- setInternalHandlers({ onDestroyHandlers });
2799
+ function setMemoryStore(key, value) {
2800
+ memoryStore[key] = value;
2689
2801
  }
2690
- // -------- The following codes are deprecated --------
2691
2802
  /**
2692
- * 非推奨
2803
+ * ページ内の変数を取定する
2693
2804
  *
2694
- * @deprecated 非推奨
2805
+ * @param key - 変数のキー
2695
2806
  *
2696
- * @internal
2807
+ * @returns 変数
2808
+ *
2809
+ * @public
2697
2810
  */
2698
- const showModal = create;
2811
+ function getMemoryStore(key) {
2812
+ return memoryStore[key];
2813
+ }
2699
2814
  /**
2700
- * 非推奨
2815
+ * ページをまたぐ変数を設定する
2701
2816
  *
2702
- * @deprecated 非推奨
2817
+ * @param key - 変数のキー
2818
+ * @param value - 変数値
2703
2819
  *
2704
- * @internal
2820
+ * @public
2705
2821
  */
2706
- function destroy() {
2707
- setDestroyed(true);
2708
- dispatchDestroyEvent();
2822
+ function setLocalStore(key, value, options = { expire: false }) {
2823
+ const item = {
2824
+ val: value,
2825
+ last: new Date().getTime(),
2826
+ };
2827
+ if (options.expire) {
2828
+ item.expire = options.expire;
2829
+ }
2830
+ localStorage.setItem(STORE_LS_KEY_PREFIX + key, JSON.stringify(item));
2709
2831
  }
2710
-
2711
- const USER_ID_VARIABLE_NAME = '__karte_form_identify_user_id';
2712
- const MAX_LENGTH_FREE_ANSWER = 2000;
2713
- function isEmpty(value) {
2714
- if (Array.isArray(value)) {
2715
- return value.length === 0;
2832
+ /**
2833
+ * ページをまたぐ変数を取得設定する
2834
+ *
2835
+ * @param key - 変数のキー
2836
+ *
2837
+ * @returns 変数
2838
+ *
2839
+ * @public
2840
+ */
2841
+ function getLocalStore(key) {
2842
+ const lsKey = STORE_LS_KEY_PREFIX + key;
2843
+ const itemJson = localStorage.getItem(lsKey);
2844
+ if (!itemJson) {
2845
+ return;
2716
2846
  }
2717
- else {
2718
- return !value;
2847
+ let item;
2848
+ try {
2849
+ item = JSON.parse(itemJson);
2719
2850
  }
2851
+ catch (_) {
2852
+ return;
2853
+ }
2854
+ if (item.val === undefined) {
2855
+ return;
2856
+ }
2857
+ const now = new Date().getTime();
2858
+ if (now - item.last > item.expire) {
2859
+ localStorage.removeItem(lsKey);
2860
+ return;
2861
+ }
2862
+ return item.val;
2720
2863
  }
2721
- /** @internal */
2722
- function createInputRegisterer(formData) {
2723
- const registerInput = ({ name, statePath, validator = () => true, initialValue, }) => {
2724
- const writableValue = {
2725
- subscribe(run) {
2726
- return formData.subscribe(formData => {
2727
- run(formData[name]?.value);
2728
- });
2729
- },
2730
- set(value) {
2731
- formData.update(prev => ({
2732
- ...prev,
2733
- [name]: {
2734
- statePath,
2735
- value,
2736
- isValid: validator(value),
2737
- },
2738
- }));
2739
- },
2740
- update(updater) {
2741
- formData.update(prev => {
2742
- const prevValue = prev[name]?.value;
2743
- if (prevValue === undefined)
2744
- return prev;
2745
- const value = updater(prevValue);
2746
- return {
2747
- ...prev,
2748
- [name]: {
2749
- statePath,
2750
- value,
2751
- isValid: validator(value),
2752
- },
2753
- };
2754
- });
2755
- },
2756
- };
2757
- const readableIsValid = {
2758
- subscribe(run) {
2759
- return formData.subscribe(formData => {
2760
- run(formData[name]?.isValid);
2761
- });
2762
- },
2763
- };
2764
- if (isEmpty(get(writableValue))) {
2765
- writableValue.set(initialValue);
2766
- }
2767
- return {
2768
- value: writableValue,
2769
- isValid: readableIsValid,
2770
- };
2771
- };
2772
- return registerInput;
2773
- }
2774
- /** @internal */
2775
- const registerInput = createInputRegisterer(formData);
2776
- /** @internal */
2777
- const registerIdentifyInput = createInputRegisterer(identifyFormData);
2778
- function validateFormData(formData, statePath) {
2779
- return Object.entries(formData)
2780
- .filter(([_, { statePath: s }]) => s === statePath) // eslint-disable-line @typescript-eslint/no-unused-vars
2781
- .every(([_, { isValid }]) => isValid); // eslint-disable-line @typescript-eslint/no-unused-vars
2782
- }
2783
- /** @internal */
2784
- const getValuesAreValidReadable = statePath => ({
2785
- subscribe(callback) {
2786
- return formData.subscribe(formData => identifyFormData.subscribe(identifyFormData => {
2787
- const valuesAreValid = validateFormData(formData, statePath) && validateFormData(identifyFormData, statePath);
2788
- callback(valuesAreValid);
2789
- }));
2790
- },
2791
- });
2792
- function createAnswerValue(value) {
2793
- if (Array.isArray(value)) {
2794
- return {
2795
- choices: value,
2796
- };
2797
- }
2798
- else if (typeof value === 'string') {
2799
- return {
2800
- free_answer: value,
2801
- };
2802
- }
2803
- }
2804
- function formDataToEventValues(campaignId, formData) {
2805
- const questions = [];
2806
- const answersMap = {};
2807
- Object.entries(formData).forEach(([name, dataItem]) => {
2808
- questions.push(name);
2809
- const value = dataItem.value;
2810
- const answerKey = `question_${name}`;
2811
- const answerValue = createAnswerValue(value);
2812
- answersMap[answerKey] = answerValue;
2813
- });
2814
- return {
2815
- [campaignId]: {
2816
- questions,
2817
- ...answersMap,
2818
- },
2819
- };
2820
- }
2821
- function formDataToIdentifyEventValues(formData) {
2822
- return Object.fromEntries(Object.entries(formData).map(([name, dataItem]) => {
2823
- const value = dataItem.value;
2824
- return [name, value];
2825
- }));
2826
- }
2827
- /** @internal */
2828
- function submit() {
2829
- const systemConfig = getSystem();
2830
- const campaignId = systemConfig.campaignId;
2831
- if (campaignId) {
2832
- const formData$1 = get(formData);
2833
- const identifyFormData$1 = get(identifyFormData);
2834
- const values = formDataToEventValues(campaignId, formData$1);
2835
- const identifyValues = formDataToIdentifyEventValues(identifyFormData$1);
2836
- if (Object.keys(identifyValues).length > 0) {
2837
- identifyValues['user_id'] = getVariables()?.[USER_ID_VARIABLE_NAME];
2838
- }
2839
- return { values, identifyValues };
2840
- }
2841
- return {};
2842
- }
2843
- /**
2844
- * 選択式のアンケート回答を追加する
2845
- *
2846
- * @param questionId - 質問ID
2847
- * @param choices - 回答内容
2848
- *
2849
- * @public
2850
- */
2851
- function addChoiceAnswer(questionId, choices, validation) {
2852
- formData.update(prev => ({
2853
- ...prev,
2854
- [questionId]: {
2855
- value: choices,
2856
- statePath: validation?.statePath ?? '',
2857
- isValid: validation?.isValid ?? true,
2858
- },
2859
- }));
2860
- }
2864
+ const storage = {
2865
+ memory: { store: setMemoryStore, restore: getMemoryStore },
2866
+ local: { store: setLocalStore, restore: getLocalStore },
2867
+ };
2861
2868
  /**
2862
- * 自由記述式のアンケート回答を追加する
2869
+ * アクションテーブルを操作するオブジェクト
2863
2870
  *
2864
- * @param questionId - 質問ID
2865
- * @param freeAnswer - 回答内容
2871
+ * @param table - アクションテーブル名
2866
2872
  *
2867
2873
  * @public
2868
2874
  */
2869
- function addFreeAnswer(questionId, freeAnswer, validation) {
2870
- formData.update(prev => ({
2871
- ...prev,
2872
- [questionId]: {
2873
- value: freeAnswer.slice(0, MAX_LENGTH_FREE_ANSWER),
2874
- statePath: validation?.statePath ?? '',
2875
- isValid: validation?.isValid ?? true,
2876
- },
2877
- }));
2875
+ function collection(table) {
2876
+ const systemConfig = getSystem();
2877
+ const collectionName = table.replace(/^v2\//, '');
2878
+ return collection$1({
2879
+ api_key: systemConfig.apiKey || 'mock',
2880
+ collection_endpoint: systemConfig.collection_endpoint,
2881
+ table: collectionName,
2882
+ });
2878
2883
  }
2884
+
2885
+ var widget = /*#__PURE__*/Object.freeze({
2886
+ __proto__: null,
2887
+ collection: collection,
2888
+ getState: getState,
2889
+ getVal: getVal,
2890
+ hide: closeAction$1,
2891
+ method: method,
2892
+ on: on,
2893
+ onChangeVal: onChangeVal,
2894
+ setState: setState,
2895
+ setVal: setVal,
2896
+ show: showAction$1,
2897
+ storage: storage
2898
+ });
2899
+
2879
2900
  /**
2880
- * 回答済の回答を削除
2881
- *
2882
- * @param questionId - 質問ID
2901
+ * エレメントをマウントしたときに実行される関数の登録
2883
2902
  *
2884
- * @public
2903
+ * @param fn - マウントしたときに実行される関数
2885
2904
  */
2886
- function removeAnswer(questionId) {
2887
- formData.update(prev => {
2888
- const next = { ...prev };
2889
- delete next[questionId];
2890
- return next;
2891
- });
2892
- }
2905
+ const onMount = onMount$1;
2893
2906
  /**
2894
- * 回答済の回答内容を取得する
2895
- *
2896
- * @param questionId - 質問ID
2897
- *
2898
- * @returns 回答データ
2907
+ * エレメントを破棄したときに実行される関数の登録
2899
2908
  *
2900
- * @public
2909
+ * @param fn - マウントしたときに実行される関数
2901
2910
  */
2902
- function getAnsweredQuestion(questionId) {
2903
- const formData$1 = get(formData);
2904
- const valueState = formData$1[questionId];
2905
- if (valueState) {
2906
- return createAnswerValue(valueState.value);
2907
- }
2908
- }
2911
+ const onDestory = onDestroy$1;
2909
2912
  /**
2910
- * 回答済の回答IDのリストを取得
2911
- *
2912
- * @returns 回答済の質問の質問IDの配列
2913
+ * エレメントを更新する前に実行される関数の登録
2913
2914
  *
2914
- * @public
2915
+ * @param fn - マウントしたときに実行される関数
2915
2916
  */
2916
- function getAnsweredQuestionIds() {
2917
- const formData$1 = get(formData);
2918
- return Object.keys(formData$1);
2919
- }
2917
+ const beforeUpdate = beforeUpdate$1;
2920
2918
  /**
2921
- * `sendAnswers`のエイリアス
2919
+ * エレメントを更新した後に実行される関数の登録
2922
2920
  *
2923
- * @public
2921
+ * @param fn - マウントしたときに実行される関数
2924
2922
  */
2925
- function sendAnswer() {
2926
- return sendAnswers();
2927
- }
2928
- // NOTE: sendAnswers用
2929
- let isSent = false;
2923
+ const afterUpdate = afterUpdate$1;
2930
2924
  /**
2931
- * 回答済の回答をまとめてイベントとして送信する
2932
- *
2933
- * @returns イベント送信の成功/失敗
2925
+ * エレメントのライフサイクルを進める
2934
2926
  *
2935
- * @public
2927
+ * @returns Promise<void>
2936
2928
  */
2937
- function sendAnswers() {
2938
- const { values, identifyValues } = submit();
2939
- if (isSent)
2940
- return false;
2941
- if (Object.keys(values ?? {}).length === 0 && Object.keys(identifyValues ?? {}).length === 0) {
2942
- return false;
2943
- }
2944
- send_event('_answer_question', values);
2945
- if (Object.keys(identifyValues ?? {}).length > 0) {
2946
- send_event('identify', identifyValues);
2947
- }
2948
- isSent = true;
2949
- return true;
2929
+ const tick = tick$1;
2930
+ // @internal
2931
+ const LAYOUT_COMPONENT_NAMES = [
2932
+ 'BreakPoint',
2933
+ 'BreakPointItem',
2934
+ 'Grid',
2935
+ 'GridItem',
2936
+ 'Modal',
2937
+ 'State',
2938
+ 'StateItem',
2939
+ ];
2940
+
2941
+ /* src/components/Header.svelte generated by Svelte v3.53.1 */
2942
+
2943
+ function create_if_block$j(ctx) {
2944
+ let link;
2945
+
2946
+ return {
2947
+ c() {
2948
+ link = element("link");
2949
+ attr(link, "href", /*googleFontUrl*/ ctx[0]);
2950
+ attr(link, "type", "text/css");
2951
+ attr(link, "rel", "stylesheet");
2952
+ },
2953
+ m(target, anchor) {
2954
+ insert(target, link, anchor);
2955
+ },
2956
+ p(ctx, dirty) {
2957
+ if (dirty & /*googleFontUrl*/ 1) {
2958
+ attr(link, "href", /*googleFontUrl*/ ctx[0]);
2959
+ }
2960
+ },
2961
+ d(detaching) {
2962
+ if (detaching) detach(link);
2963
+ }
2964
+ };
2950
2965
  }
2951
2966
 
2952
- /**
2953
- * エディタv1のWidget API 互換のインターフェース
2954
- */
2955
- const STORE_LS_KEY_PREFIX = 'krt___';
2956
- const valCallbacks = {};
2957
- const eventCallbacks = {};
2958
- const memoryStore = {};
2959
- setWidgetHandlers({
2960
- onChangeState: [
2961
- (_props, newState) => {
2962
- setVal('state', newState);
2963
- },
2964
- ],
2965
- onDestroy: [
2966
- () => {
2967
- Object.entries(eventCallbacks).map(([name, cbs]) => {
2968
- cbs.forEach(cb => {
2969
- window.removeEventListener(name, cb);
2970
- });
2971
- });
2972
- },
2973
- ],
2974
- });
2975
- /**
2976
- * 変数を設定する
2977
- *
2978
- * @param name - 変数名
2979
- * @param value - 変数値
2980
- *
2981
- * @public
2982
- */
2983
- function setVal(name, value) {
2984
- variables.update(current => {
2985
- if (valCallbacks[name]) {
2986
- valCallbacks[name].forEach(cb => {
2987
- cb({ newVal: value, oldVal: current[name], key: name });
2988
- });
2989
- }
2990
- current[name] = value;
2991
- return current;
2992
- });
2993
- }
2994
- /**
2995
- * 変数を取得する
2996
- *
2997
- * @param name - 変数名
2998
- *
2999
- * @returns 変数値
3000
- *
3001
- * @public
3002
- */
3003
- function getVal(name) {
3004
- const cv = getVariables();
3005
- return cv[name];
2967
+ function create_fragment$1v(ctx) {
2968
+ let if_block_anchor;
2969
+ let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$j(ctx);
2970
+
2971
+ return {
2972
+ c() {
2973
+ if (if_block) if_block.c();
2974
+ if_block_anchor = empty();
2975
+ },
2976
+ m(target, anchor) {
2977
+ if (if_block) if_block.m(document.head, null);
2978
+ append(document.head, if_block_anchor);
2979
+ },
2980
+ p(ctx, [dirty]) {
2981
+ if (/*googleFontUrl*/ ctx[0]) {
2982
+ if (if_block) {
2983
+ if_block.p(ctx, dirty);
2984
+ } else {
2985
+ if_block = create_if_block$j(ctx);
2986
+ if_block.c();
2987
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
2988
+ }
2989
+ } else if (if_block) {
2990
+ if_block.d(1);
2991
+ if_block = null;
2992
+ }
2993
+ },
2994
+ i: noop,
2995
+ o: noop,
2996
+ d(detaching) {
2997
+ if (if_block) if_block.d(detaching);
2998
+ detach(if_block_anchor);
2999
+ }
3000
+ };
3006
3001
  }
3007
- /**
3008
- * 変数が変更されたときに実行されるコールバック関数を設定する
3009
- *
3010
- * @param name - 変数名
3011
- * @param callback - コールバック関数
3012
- *
3013
- * @public
3014
- */
3015
- function onChangeVal(name, callback) {
3016
- if (!valCallbacks[name]) {
3017
- valCallbacks[name] = [];
3018
- }
3019
- valCallbacks[name].push(callback);
3002
+
3003
+ function instance$1v($$self, $$props, $$invalidate) {
3004
+ let $fonts;
3005
+ component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
3006
+ let googleFontUrl = '';
3007
+
3008
+ $$self.$$.update = () => {
3009
+ if ($$self.$$.dirty & /*$fonts*/ 2) {
3010
+ {
3011
+ if ($fonts.length > 0) {
3012
+ $$invalidate(0, googleFontUrl = makeGoogleFontUrl($fonts));
3013
+ }
3014
+ }
3015
+ }
3016
+
3017
+ if ($$self.$$.dirty & /*googleFontUrl*/ 1) {
3018
+ {
3019
+ if (googleFontUrl) {
3020
+ loadGlobalStyle(googleFontUrl);
3021
+ }
3022
+ }
3023
+ }
3024
+ };
3025
+
3026
+ return [googleFontUrl, $fonts];
3020
3027
  }
3021
- /**
3022
- * WEBのイベントが発生したときに実行されるコールバック関数を設定する
3023
- *
3024
- * @param name - WEBのイベント名
3025
- * @param callback - コールバック関数
3026
- *
3027
- * @public
3028
- */
3029
- function method(name, callback) {
3030
- window.addEventListener(name, callback);
3031
- if (!eventCallbacks[name]) {
3032
- eventCallbacks[name] = [];
3033
- }
3034
- eventCallbacks[name].push(callback);
3028
+
3029
+ let Header$1 = class Header extends SvelteComponent {
3030
+ constructor(options) {
3031
+ super();
3032
+ init(this, options, instance$1v, create_fragment$1v, safe_not_equal, {});
3033
+ }
3034
+ };
3035
+
3036
+ const BRAND_KIT_DEFAULT = {
3037
+ font_family: 'sans-serif, serif, monospace, system-ui',
3038
+ color_text_primary: '#222222',
3039
+ color_text_secondary: '#555555',
3040
+ color_brand: '#33403e',
3041
+ color_link: '#1558d6',
3042
+ color_danger: '#f44336',
3043
+ color_warning: '#ffa726',
3044
+ color_success: '#10b981',
3045
+ color_info: '#29b6f6',
3046
+ color_white: '#FFFFFF',
3047
+ };
3048
+ const getBrandKit = (customBrandKit) => {
3049
+ return {
3050
+ font_family: customBrandKit?.font_family ?? BRAND_KIT_DEFAULT.font_family,
3051
+ color_text_primary: customBrandKit?.color_text_primary ?? BRAND_KIT_DEFAULT.color_text_primary,
3052
+ color_text_secondary: customBrandKit?.color_text_secondary ?? BRAND_KIT_DEFAULT.color_text_secondary,
3053
+ color_brand: customBrandKit?.color_brand ?? BRAND_KIT_DEFAULT.color_brand,
3054
+ color_link: customBrandKit?.color_link ?? BRAND_KIT_DEFAULT.color_link,
3055
+ color_danger: customBrandKit?.color_danger ?? BRAND_KIT_DEFAULT.color_danger,
3056
+ color_warning: customBrandKit?.color_warning ?? BRAND_KIT_DEFAULT.color_warning,
3057
+ color_success: customBrandKit?.color_success ?? BRAND_KIT_DEFAULT.color_success,
3058
+ color_info: customBrandKit?.color_info ?? BRAND_KIT_DEFAULT.color_info,
3059
+ color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white,
3060
+ };
3061
+ };
3062
+ const useBrandKit = () => {
3063
+ return {
3064
+ brandKit: (getContext('brandKit') || getBrandKit()),
3065
+ };
3066
+ };
3067
+
3068
+ /* src/components/State.svelte generated by Svelte v3.53.1 */
3069
+
3070
+ function create_fragment$1u(ctx) {
3071
+ let header;
3072
+ let t;
3073
+ let current;
3074
+ header = new Header$1({});
3075
+ const default_slot_template = /*#slots*/ ctx[2].default;
3076
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], null);
3077
+
3078
+ return {
3079
+ c() {
3080
+ create_component(header.$$.fragment);
3081
+ t = space();
3082
+ if (default_slot) default_slot.c();
3083
+ },
3084
+ m(target, anchor) {
3085
+ mount_component(header, target, anchor);
3086
+ insert(target, t, anchor);
3087
+
3088
+ if (default_slot) {
3089
+ default_slot.m(target, anchor);
3090
+ }
3091
+
3092
+ current = true;
3093
+ },
3094
+ p(ctx, [dirty]) {
3095
+ if (default_slot) {
3096
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
3097
+ update_slot_base(
3098
+ default_slot,
3099
+ default_slot_template,
3100
+ ctx,
3101
+ /*$$scope*/ ctx[1],
3102
+ !current
3103
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
3104
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
3105
+ null
3106
+ );
3107
+ }
3108
+ }
3109
+ },
3110
+ i(local) {
3111
+ if (current) return;
3112
+ transition_in(header.$$.fragment, local);
3113
+ transition_in(default_slot, local);
3114
+ current = true;
3115
+ },
3116
+ o(local) {
3117
+ transition_out(header.$$.fragment, local);
3118
+ transition_out(default_slot, local);
3119
+ current = false;
3120
+ },
3121
+ d(detaching) {
3122
+ destroy_component(header, detaching);
3123
+ if (detaching) detach(t);
3124
+ if (default_slot) default_slot.d(detaching);
3125
+ }
3126
+ };
3035
3127
  }
3036
- /**
3037
- * Widgetのイベントが発生したときに実行されるコールバック関数を設定する
3038
- *
3039
- * @param name - Widgetのイベント名
3040
- * @param callback - コールバック関数
3041
- *
3042
- * @public
3043
- */
3044
- function on(name, callback) {
3045
- let onCallback;
3046
- if (name === 'hide') {
3047
- onCallback = (event) => {
3048
- if (event.detail.trigger !== 'button')
3049
- return;
3050
- callback(event);
3051
- eventCallbacks[name].push(callback);
3052
- };
3053
- window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
3054
- }
3055
- else if (name === 'clickBackdrop') {
3056
- onCallback = (event) => {
3057
- if (event.detail.trigger !== 'overlay')
3058
- return;
3059
- callback(event);
3060
- };
3061
- window.addEventListener(ACTION_CLOSE_EVENT, onCallback);
3062
- }
3063
- else if (name === 'destroyed') {
3064
- onCallback = callback;
3065
- window.addEventListener(ACTION_DESTROY_EVENT, onCallback);
3066
- }
3067
- else {
3068
- console.warn('warn: private event handler', name);
3069
- }
3070
- if (!eventCallbacks[name]) {
3071
- eventCallbacks[name] = [];
3072
- }
3073
- eventCallbacks[name].push(onCallback);
3074
- }
3075
- /**
3076
- * 現在のステートを設定する
3077
- *
3078
- * @param stateId - ステートID
3079
- *
3080
- * @public
3081
- */
3082
- function setState(stateId) {
3083
- const stateIds = getStates();
3084
- if (stateIds.includes(stateId))
3085
- return;
3086
- setState$1(stateId);
3087
- }
3088
- /**
3089
- * 現在のステートを取得する
3090
- *
3091
- * @returns ステートID
3092
- *
3093
- * @public
3094
- */
3095
- function getState() {
3096
- return getState$1();
3097
- }
3098
- /**
3099
- * ページ内の変数を設定する
3100
- *
3101
- * @param key - 変数のキー
3102
- * @param value - 変数値
3103
- *
3104
- * @public
3105
- */
3106
- function setMemoryStore(key, value) {
3107
- memoryStore[key] = value;
3108
- }
3109
- /**
3110
- * ページ内の変数を取定する
3111
- *
3112
- * @param key - 変数のキー
3113
- *
3114
- * @returns 変数
3115
- *
3116
- * @public
3117
- */
3118
- function getMemoryStore(key) {
3119
- return memoryStore[key];
3120
- }
3121
- /**
3122
- * ページをまたぐ変数を設定する
3123
- *
3124
- * @param key - 変数のキー
3125
- * @param value - 変数値
3126
- *
3127
- * @public
3128
- */
3129
- function setLocalStore(key, value, options = { expire: false }) {
3130
- const item = {
3131
- val: value,
3132
- last: new Date().getTime(),
3133
- };
3134
- if (options.expire) {
3135
- item.expire = options.expire;
3136
- }
3137
- localStorage.setItem(STORE_LS_KEY_PREFIX + key, JSON.stringify(item));
3138
- }
3139
- /**
3140
- * ページをまたぐ変数を取得設定する
3141
- *
3142
- * @param key - 変数のキー
3143
- *
3144
- * @returns 変数
3145
- *
3146
- * @public
3147
- */
3148
- function getLocalStore(key) {
3149
- const lsKey = STORE_LS_KEY_PREFIX + key;
3150
- const itemJson = localStorage.getItem(lsKey);
3151
- if (!itemJson) {
3152
- return;
3153
- }
3154
- let item;
3155
- try {
3156
- item = JSON.parse(itemJson);
3157
- }
3158
- catch (_) {
3159
- return;
3160
- }
3161
- if (item.val === undefined) {
3162
- return;
3163
- }
3164
- const now = new Date().getTime();
3165
- if (now - item.last > item.expire) {
3166
- localStorage.removeItem(lsKey);
3167
- return;
3168
- }
3169
- return item.val;
3170
- }
3171
- const storage = {
3172
- memory: { store: setMemoryStore, restore: getMemoryStore },
3173
- local: { store: setLocalStore, restore: getLocalStore },
3174
- };
3175
- /**
3176
- * アクションテーブルを操作するオブジェクト
3177
- *
3178
- * @param table - アクションテーブル名
3179
- *
3180
- * @public
3181
- */
3182
- function collection(table) {
3183
- const systemConfig = getSystem();
3184
- const collectionName = table.replace(/^v2\//, '');
3185
- return collection$1({
3186
- api_key: systemConfig.apiKey || 'mock',
3187
- collection_endpoint: systemConfig.collection_endpoint,
3188
- table: collectionName,
3189
- });
3128
+
3129
+ function instance$1u($$self, $$props, $$invalidate) {
3130
+ let { $$slots: slots = {}, $$scope } = $$props;
3131
+ let { customBrandKit = undefined } = $$props;
3132
+ setContext('brandKit', getBrandKit(customBrandKit));
3133
+
3134
+ $$self.$$set = $$props => {
3135
+ if ('customBrandKit' in $$props) $$invalidate(0, customBrandKit = $$props.customBrandKit);
3136
+ if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
3137
+ };
3138
+
3139
+ return [customBrandKit, $$scope, slots];
3190
3140
  }
3191
3141
 
3192
- var widget = /*#__PURE__*/Object.freeze({
3193
- __proto__: null,
3194
- collection: collection,
3195
- getState: getState,
3196
- getVal: getVal,
3197
- hide: closeAction$1,
3198
- method: method,
3199
- on: on,
3200
- onChangeVal: onChangeVal,
3201
- setState: setState,
3202
- setVal: setVal,
3203
- show: showAction$1,
3204
- storage: storage
3205
- });
3142
+ let State$1 = class State extends SvelteComponent {
3143
+ constructor(options) {
3144
+ super();
3145
+ init(this, options, instance$1u, create_fragment$1u, safe_not_equal, { customBrandKit: 0 });
3146
+ }
3147
+ };
3206
3148
 
3207
- /**
3208
- * エレメントをマウントしたときに実行される関数の登録
3209
- *
3210
- * @param fn - マウントしたときに実行される関数
3211
- */
3212
- const onMount = onMount$1;
3213
- /**
3214
- * エレメントを破棄したときに実行される関数の登録
3215
- *
3216
- * @param fn - マウントしたときに実行される関数
3217
- */
3218
- const onDestory = onDestroy$1;
3219
- /**
3220
- * エレメントを更新する前に実行される関数の登録
3221
- *
3222
- * @param fn - マウントしたときに実行される関数
3223
- */
3224
- const beforeUpdate = beforeUpdate$1;
3225
- /**
3226
- * エレメントを更新した後に実行される関数の登録
3227
- *
3228
- * @param fn - マウントしたときに実行される関数
3229
- */
3230
- const afterUpdate = afterUpdate$1;
3231
- /**
3232
- * エレメントのライフサイクルを進める
3233
- *
3234
- * @returns Promise<void>
3235
- */
3236
- const tick = tick$1;
3237
- // @internal
3238
- const LAYOUT_COMPONENT_NAMES = [
3239
- 'BreakPoint',
3240
- 'BreakPointItem',
3241
- 'Grid',
3242
- 'GridItem',
3243
- 'Modal',
3244
- 'State',
3245
- 'StateItem',
3246
- ];
3149
+ /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
3247
3150
 
3248
- /* src/components/Header.svelte generated by Svelte v3.53.1 */
3151
+ function add_css$T(target) {
3152
+ append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
3153
+ }
3249
3154
 
3250
- function create_if_block$j(ctx) {
3251
- let link;
3155
+ // (22:0) {#if $state === path}
3156
+ function create_if_block$i(ctx) {
3157
+ let div;
3158
+ let t;
3159
+ let current;
3160
+ const default_slot_template = /*#slots*/ ctx[3].default;
3161
+ const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
3252
3162
 
3253
3163
  return {
3254
3164
  c() {
3255
- link = element("link");
3256
- attr(link, "href", /*googleFontUrl*/ ctx[0]);
3257
- attr(link, "type", "text/css");
3258
- attr(link, "rel", "stylesheet");
3165
+ div = element("div");
3166
+ t = space();
3167
+ if (default_slot) default_slot.c();
3168
+ attr(div, "data-state-path", /*path*/ ctx[0]);
3169
+ attr(div, "class", "state-item svelte-1amihue");
3259
3170
  },
3260
3171
  m(target, anchor) {
3261
- insert(target, link, anchor);
3172
+ insert(target, div, anchor);
3173
+ insert(target, t, anchor);
3174
+
3175
+ if (default_slot) {
3176
+ default_slot.m(target, anchor);
3177
+ }
3178
+
3179
+ current = true;
3262
3180
  },
3263
3181
  p(ctx, dirty) {
3264
- if (dirty & /*googleFontUrl*/ 1) {
3265
- attr(link, "href", /*googleFontUrl*/ ctx[0]);
3182
+ if (!current || dirty & /*path*/ 1) {
3183
+ attr(div, "data-state-path", /*path*/ ctx[0]);
3184
+ }
3185
+
3186
+ if (default_slot) {
3187
+ if (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {
3188
+ update_slot_base(
3189
+ default_slot,
3190
+ default_slot_template,
3191
+ ctx,
3192
+ /*$$scope*/ ctx[2],
3193
+ !current
3194
+ ? get_all_dirty_from_scope(/*$$scope*/ ctx[2])
3195
+ : get_slot_changes(default_slot_template, /*$$scope*/ ctx[2], dirty, null),
3196
+ null
3197
+ );
3198
+ }
3266
3199
  }
3267
3200
  },
3201
+ i(local) {
3202
+ if (current) return;
3203
+ transition_in(default_slot, local);
3204
+ current = true;
3205
+ },
3206
+ o(local) {
3207
+ transition_out(default_slot, local);
3208
+ current = false;
3209
+ },
3268
3210
  d(detaching) {
3269
- if (detaching) detach(link);
3211
+ if (detaching) detach(div);
3212
+ if (detaching) detach(t);
3213
+ if (default_slot) default_slot.d(detaching);
3270
3214
  }
3271
3215
  };
3272
3216
  }
3273
3217
 
3274
- function create_fragment$1v(ctx) {
3218
+ function create_fragment$1t(ctx) {
3275
3219
  let if_block_anchor;
3276
- let if_block = /*googleFontUrl*/ ctx[0] && create_if_block$j(ctx);
3220
+ let current;
3221
+ let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$i(ctx);
3277
3222
 
3278
3223
  return {
3279
3224
  c() {
@@ -3281,272 +3226,20 @@ function create_fragment$1v(ctx) {
3281
3226
  if_block_anchor = empty();
3282
3227
  },
3283
3228
  m(target, anchor) {
3284
- if (if_block) if_block.m(document.head, null);
3285
- append(document.head, if_block_anchor);
3229
+ if (if_block) if_block.m(target, anchor);
3230
+ insert(target, if_block_anchor, anchor);
3231
+ current = true;
3286
3232
  },
3287
3233
  p(ctx, [dirty]) {
3288
- if (/*googleFontUrl*/ ctx[0]) {
3234
+ if (/*$state*/ ctx[1] === /*path*/ ctx[0]) {
3289
3235
  if (if_block) {
3290
3236
  if_block.p(ctx, dirty);
3237
+
3238
+ if (dirty & /*$state, path*/ 3) {
3239
+ transition_in(if_block, 1);
3240
+ }
3291
3241
  } else {
3292
- if_block = create_if_block$j(ctx);
3293
- if_block.c();
3294
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
3295
- }
3296
- } else if (if_block) {
3297
- if_block.d(1);
3298
- if_block = null;
3299
- }
3300
- },
3301
- i: noop,
3302
- o: noop,
3303
- d(detaching) {
3304
- if (if_block) if_block.d(detaching);
3305
- detach(if_block_anchor);
3306
- }
3307
- };
3308
- }
3309
-
3310
- function instance$1v($$self, $$props, $$invalidate) {
3311
- let $fonts;
3312
- component_subscribe($$self, fonts, $$value => $$invalidate(1, $fonts = $$value));
3313
- let googleFontUrl = '';
3314
-
3315
- $$self.$$.update = () => {
3316
- if ($$self.$$.dirty & /*$fonts*/ 2) {
3317
- {
3318
- if ($fonts.length > 0) {
3319
- $$invalidate(0, googleFontUrl = makeGoogleFontUrl($fonts));
3320
- }
3321
- }
3322
- }
3323
-
3324
- if ($$self.$$.dirty & /*googleFontUrl*/ 1) {
3325
- {
3326
- if (googleFontUrl) {
3327
- loadGlobalStyle(googleFontUrl);
3328
- }
3329
- }
3330
- }
3331
- };
3332
-
3333
- return [googleFontUrl, $fonts];
3334
- }
3335
-
3336
- let Header$1 = class Header extends SvelteComponent {
3337
- constructor(options) {
3338
- super();
3339
- init(this, options, instance$1v, create_fragment$1v, safe_not_equal, {});
3340
- }
3341
- };
3342
-
3343
- const BRAND_KIT_DEFAULT = {
3344
- font_family: 'sans-serif, serif, monospace, system-ui',
3345
- color_text_primary: '#222222',
3346
- color_text_secondary: '#555555',
3347
- color_brand: '#33403e',
3348
- color_link: '#1558d6',
3349
- color_danger: '#f44336',
3350
- color_warning: '#ffa726',
3351
- color_success: '#10b981',
3352
- color_info: '#29b6f6',
3353
- color_white: '#FFFFFF',
3354
- };
3355
- const getBrandKit = (customBrandKit) => {
3356
- return {
3357
- font_family: customBrandKit?.font_family ?? BRAND_KIT_DEFAULT.font_family,
3358
- color_text_primary: customBrandKit?.color_text_primary ?? BRAND_KIT_DEFAULT.color_text_primary,
3359
- color_text_secondary: customBrandKit?.color_text_secondary ?? BRAND_KIT_DEFAULT.color_text_secondary,
3360
- color_brand: customBrandKit?.color_brand ?? BRAND_KIT_DEFAULT.color_brand,
3361
- color_link: customBrandKit?.color_link ?? BRAND_KIT_DEFAULT.color_link,
3362
- color_danger: customBrandKit?.color_danger ?? BRAND_KIT_DEFAULT.color_danger,
3363
- color_warning: customBrandKit?.color_warning ?? BRAND_KIT_DEFAULT.color_warning,
3364
- color_success: customBrandKit?.color_success ?? BRAND_KIT_DEFAULT.color_success,
3365
- color_info: customBrandKit?.color_info ?? BRAND_KIT_DEFAULT.color_info,
3366
- color_white: customBrandKit?.color_white ?? BRAND_KIT_DEFAULT.color_white,
3367
- };
3368
- };
3369
- const useBrandKit = () => {
3370
- return {
3371
- brandKit: (getContext('brandKit') || getBrandKit()),
3372
- };
3373
- };
3374
-
3375
- /* src/components/State.svelte generated by Svelte v3.53.1 */
3376
-
3377
- function create_fragment$1u(ctx) {
3378
- let header;
3379
- let t;
3380
- let current;
3381
- header = new Header$1({});
3382
- const default_slot_template = /*#slots*/ ctx[2].default;
3383
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], null);
3384
-
3385
- return {
3386
- c() {
3387
- create_component(header.$$.fragment);
3388
- t = space();
3389
- if (default_slot) default_slot.c();
3390
- },
3391
- m(target, anchor) {
3392
- mount_component(header, target, anchor);
3393
- insert(target, t, anchor);
3394
-
3395
- if (default_slot) {
3396
- default_slot.m(target, anchor);
3397
- }
3398
-
3399
- current = true;
3400
- },
3401
- p(ctx, [dirty]) {
3402
- if (default_slot) {
3403
- if (default_slot.p && (!current || dirty & /*$$scope*/ 2)) {
3404
- update_slot_base(
3405
- default_slot,
3406
- default_slot_template,
3407
- ctx,
3408
- /*$$scope*/ ctx[1],
3409
- !current
3410
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[1])
3411
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[1], dirty, null),
3412
- null
3413
- );
3414
- }
3415
- }
3416
- },
3417
- i(local) {
3418
- if (current) return;
3419
- transition_in(header.$$.fragment, local);
3420
- transition_in(default_slot, local);
3421
- current = true;
3422
- },
3423
- o(local) {
3424
- transition_out(header.$$.fragment, local);
3425
- transition_out(default_slot, local);
3426
- current = false;
3427
- },
3428
- d(detaching) {
3429
- destroy_component(header, detaching);
3430
- if (detaching) detach(t);
3431
- if (default_slot) default_slot.d(detaching);
3432
- }
3433
- };
3434
- }
3435
-
3436
- function instance$1u($$self, $$props, $$invalidate) {
3437
- let { $$slots: slots = {}, $$scope } = $$props;
3438
- let { customBrandKit = undefined } = $$props;
3439
- setContext('brandKit', getBrandKit(customBrandKit));
3440
-
3441
- $$self.$$set = $$props => {
3442
- if ('customBrandKit' in $$props) $$invalidate(0, customBrandKit = $$props.customBrandKit);
3443
- if ('$$scope' in $$props) $$invalidate(1, $$scope = $$props.$$scope);
3444
- };
3445
-
3446
- return [customBrandKit, $$scope, slots];
3447
- }
3448
-
3449
- let State$1 = class State extends SvelteComponent {
3450
- constructor(options) {
3451
- super();
3452
- init(this, options, instance$1u, create_fragment$1u, safe_not_equal, { customBrandKit: 0 });
3453
- }
3454
- };
3455
-
3456
- /* src/components/StateItem.svelte generated by Svelte v3.53.1 */
3457
-
3458
- function add_css$T(target) {
3459
- append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
3460
- }
3461
-
3462
- // (22:0) {#if $state === path}
3463
- function create_if_block$i(ctx) {
3464
- let div;
3465
- let t;
3466
- let current;
3467
- const default_slot_template = /*#slots*/ ctx[3].default;
3468
- const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[2], null);
3469
-
3470
- return {
3471
- c() {
3472
- div = element("div");
3473
- t = space();
3474
- if (default_slot) default_slot.c();
3475
- attr(div, "data-state-path", /*path*/ ctx[0]);
3476
- attr(div, "class", "state-item svelte-2qb6dm");
3477
- },
3478
- m(target, anchor) {
3479
- insert(target, div, anchor);
3480
- insert(target, t, anchor);
3481
-
3482
- if (default_slot) {
3483
- default_slot.m(target, anchor);
3484
- }
3485
-
3486
- current = true;
3487
- },
3488
- p(ctx, dirty) {
3489
- if (!current || dirty & /*path*/ 1) {
3490
- attr(div, "data-state-path", /*path*/ ctx[0]);
3491
- }
3492
-
3493
- if (default_slot) {
3494
- if (default_slot.p && (!current || dirty & /*$$scope*/ 4)) {
3495
- update_slot_base(
3496
- default_slot,
3497
- default_slot_template,
3498
- ctx,
3499
- /*$$scope*/ ctx[2],
3500
- !current
3501
- ? get_all_dirty_from_scope(/*$$scope*/ ctx[2])
3502
- : get_slot_changes(default_slot_template, /*$$scope*/ ctx[2], dirty, null),
3503
- null
3504
- );
3505
- }
3506
- }
3507
- },
3508
- i(local) {
3509
- if (current) return;
3510
- transition_in(default_slot, local);
3511
- current = true;
3512
- },
3513
- o(local) {
3514
- transition_out(default_slot, local);
3515
- current = false;
3516
- },
3517
- d(detaching) {
3518
- if (detaching) detach(div);
3519
- if (detaching) detach(t);
3520
- if (default_slot) default_slot.d(detaching);
3521
- }
3522
- };
3523
- }
3524
-
3525
- function create_fragment$1t(ctx) {
3526
- let if_block_anchor;
3527
- let current;
3528
- let if_block = /*$state*/ ctx[1] === /*path*/ ctx[0] && create_if_block$i(ctx);
3529
-
3530
- return {
3531
- c() {
3532
- if (if_block) if_block.c();
3533
- if_block_anchor = empty();
3534
- },
3535
- m(target, anchor) {
3536
- if (if_block) if_block.m(target, anchor);
3537
- insert(target, if_block_anchor, anchor);
3538
- current = true;
3539
- },
3540
- p(ctx, [dirty]) {
3541
- if (/*$state*/ ctx[1] === /*path*/ ctx[0]) {
3542
- if (if_block) {
3543
- if_block.p(ctx, dirty);
3544
-
3545
- if (dirty & /*$state, path*/ 3) {
3546
- transition_in(if_block, 1);
3547
- }
3548
- } else {
3549
- if_block = create_if_block$i(ctx);
3242
+ if_block = create_if_block$i(ctx);
3550
3243
  if_block.c();
3551
3244
  transition_in(if_block, 1);
3552
3245
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
@@ -3798,7 +3491,7 @@ function customAnimation(node, { transforms, animationStyle, delay = 0, duration
3798
3491
  /* src/components/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
3799
3492
 
3800
3493
  function add_css$S(target) {
3801
- append_styles(target, "svelte-1d4fta", ".background.svelte-1d4fta{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
3494
+ append_styles(target, "svelte-g6ucc2", ".background.svelte-g6ucc2{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
3802
3495
  }
3803
3496
 
3804
3497
  // (14:0) {#if backgroundOverlay}
@@ -3811,7 +3504,7 @@ function create_if_block$h(ctx) {
3811
3504
  return {
3812
3505
  c() {
3813
3506
  div = element("div");
3814
- attr(div, "class", div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"));
3507
+ attr(div, "class", div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-g6ucc2"));
3815
3508
  },
3816
3509
  m(target, anchor) {
3817
3510
  insert(target, div, anchor);
@@ -3822,7 +3515,7 @@ function create_if_block$h(ctx) {
3822
3515
  }
3823
3516
  },
3824
3517
  p(ctx, dirty) {
3825
- if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-1d4fta"))) {
3518
+ if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-g6ucc2"))) {
3826
3519
  attr(div, "class", div_class_value);
3827
3520
  }
3828
3521
  },
@@ -3928,7 +3621,7 @@ function checkStopPropagation(eventName, handler) {
3928
3621
  /* src/components/Button.svelte generated by Svelte v3.53.1 */
3929
3622
 
3930
3623
  function add_css$R(target) {
3931
- append_styles(target, "svelte-15k4deh", ".button.svelte-15k4deh{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-15k4deh:link,.button.svelte-15k4deh:visited,.button.svelte-15k4deh:active,.button.svelte-15k4deh:hover{color:inherit}");
3624
+ append_styles(target, "svelte-1kmu8zp", ".button.svelte-1kmu8zp{display:block;text-decoration:none;color:inherit;border:none;background:none;margin:0;padding:0}.button.svelte-1kmu8zp:link,.button.svelte-1kmu8zp:visited,.button.svelte-1kmu8zp:active,.button.svelte-1kmu8zp:hover{color:inherit}");
3932
3625
  }
3933
3626
 
3934
3627
  // (53:0) {:else}
@@ -3957,7 +3650,7 @@ function create_else_block$5(ctx) {
3957
3650
  button = element("button");
3958
3651
  if (default_slot) default_slot.c();
3959
3652
  set_attributes(button, button_data);
3960
- toggle_class(button, "svelte-15k4deh", true);
3653
+ toggle_class(button, "svelte-1kmu8zp", true);
3961
3654
  },
3962
3655
  m(target, anchor) {
3963
3656
  insert(target, button, anchor);
@@ -3996,7 +3689,7 @@ function create_else_block$5(ctx) {
3996
3689
  dataAttrStopPropagation('click')
3997
3690
  ]));
3998
3691
 
3999
- toggle_class(button, "svelte-15k4deh", true);
3692
+ toggle_class(button, "svelte-1kmu8zp", true);
4000
3693
  },
4001
3694
  i(local) {
4002
3695
  if (current) return;
@@ -4027,7 +3720,7 @@ function create_if_block_2$2(ctx) {
4027
3720
  c() {
4028
3721
  div = element("div");
4029
3722
  if (default_slot) default_slot.c();
4030
- attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-15k4deh"));
3723
+ attr(div, "class", "" + (null_to_empty(BUTTON_CLASS) + " svelte-1kmu8zp"));
4031
3724
  attr(div, "style", /*style*/ ctx[1]);
4032
3725
  },
4033
3726
  m(target, anchor) {
@@ -4111,7 +3804,7 @@ function create_if_block_1$4(ctx) {
4111
3804
  a = element("a");
4112
3805
  if (default_slot) default_slot.c();
4113
3806
  set_attributes(a, a_data);
4114
- toggle_class(a, "svelte-15k4deh", true);
3807
+ toggle_class(a, "svelte-1kmu8zp", true);
4115
3808
  },
4116
3809
  m(target, anchor) {
4117
3810
  insert(target, a, anchor);
@@ -4153,7 +3846,7 @@ function create_if_block_1$4(ctx) {
4153
3846
  dataAttrStopPropagation('click')
4154
3847
  ]));
4155
3848
 
4156
- toggle_class(a, "svelte-15k4deh", true);
3849
+ toggle_class(a, "svelte-1kmu8zp", true);
4157
3850
  },
4158
3851
  i(local) {
4159
3852
  if (current) return;
@@ -4184,7 +3877,7 @@ function create_if_block$g(ctx) {
4184
3877
  c() {
4185
3878
  div = element("div");
4186
3879
  if (default_slot) default_slot.c();
4187
- attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-15k4deh"));
3880
+ attr(div, "class", "" + (BUTTON_CLASS + " _disabled" + " svelte-1kmu8zp"));
4188
3881
  attr(div, "style", /*style*/ ctx[1]);
4189
3882
  },
4190
3883
  m(target, anchor) {
@@ -4393,7 +4086,7 @@ let Button$1 = class Button extends SvelteComponent {
4393
4086
  /* src/components/Modal.svelte generated by Svelte v3.53.1 */
4394
4087
 
4395
4088
  function add_css$Q(target) {
4396
- append_styles(target, "svelte-1ijkyzl", ".modal.svelte-1ijkyzl{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1ijkyzl > .button{flex:auto;display:flex}.close.svelte-1ijkyzl{position:absolute;top:0;right:0}.close.svelte-1ijkyzl > .button{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-1ijkyzl > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1ijkyzl{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-1ijkyzl{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
4089
+ append_styles(target, "svelte-1i2vo31", ".modal.svelte-1i2vo31{position:fixed;box-sizing:border-box;z-index:2147483647;display:flex}.modal.svelte-1i2vo31 > .button{flex:auto;display:flex}.close.svelte-1i2vo31{position:absolute;top:0;right:0}.close.svelte-1i2vo31 > .button{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all 0.25s}.close.svelte-1i2vo31 > .button:hover{transform:rotate(90deg)}.modal-content.svelte-1i2vo31{flex:auto;display:flex;justify-content:center;align-items:center;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}@media screen and (min-width: 641px){.modal-bp.svelte-1i2vo31{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-1i2vo31{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
4397
4090
  }
4398
4091
 
4399
4092
  // (278:0) {:else}
@@ -4543,7 +4236,7 @@ function create_if_block$f(ctx) {
4543
4236
  c() {
4544
4237
  div = element("div");
4545
4238
  create_component(button.$$.fragment);
4546
- attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1ijkyzl"));
4239
+ attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1i2vo31"));
4547
4240
  attr(div, "role", "dialog");
4548
4241
  attr(div, "aria-modal", "true");
4549
4242
  attr(div, "style", Array.from(/*modalStyles*/ ctx[23]).join(';'));
@@ -4567,7 +4260,7 @@ function create_if_block$f(ctx) {
4567
4260
 
4568
4261
  button.$set(button_changes);
4569
4262
 
4570
- if (!current || dirty[0] & /*useBreakPoint*/ 8 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1ijkyzl"))) {
4263
+ if (!current || dirty[0] & /*useBreakPoint*/ 8 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[3] ? 'modal-bp' : ''].join(' ')) + " svelte-1i2vo31"))) {
4571
4264
  attr(div, "class", div_class_value);
4572
4265
  }
4573
4266
  },
@@ -4622,7 +4315,7 @@ function create_if_block_1$3(ctx) {
4622
4315
  c() {
4623
4316
  div = element("div");
4624
4317
  create_component(button.$$.fragment);
4625
- attr(div, "class", "close svelte-1ijkyzl");
4318
+ attr(div, "class", "close svelte-1i2vo31");
4626
4319
  set_style(div, "z-index", /*$maximumZindex*/ ctx[22] + 1);
4627
4320
  },
4628
4321
  m(target, anchor) {
@@ -4711,7 +4404,7 @@ function create_default_slot$7(ctx) {
4711
4404
  t = space();
4712
4405
  div = element("div");
4713
4406
  if (default_slot) default_slot.c();
4714
- attr(div, "class", "modal-content svelte-1ijkyzl");
4407
+ attr(div, "class", "modal-content svelte-1i2vo31");
4715
4408
  attr(div, "style", /*_style*/ ctx[5]);
4716
4409
  },
4717
4410
  m(target, anchor) {
@@ -5362,7 +5055,7 @@ class Grid extends SvelteComponent {
5362
5055
  /* src/components/GridItem.svelte generated by Svelte v3.53.1 */
5363
5056
 
5364
5057
  function add_css$P(target) {
5365
- append_styles(target, "svelte-n7kdl3", ".grid-item.svelte-n7kdl3{word-break:break-all;position:relative}.grid-item-inner.svelte-n7kdl3{position:absolute;inset:0}");
5058
+ append_styles(target, "svelte-1cryhmb", ".grid-item.svelte-1cryhmb{word-break:break-all;position:relative}.grid-item-inner.svelte-1cryhmb{position:absolute;inset:0}");
5366
5059
  }
5367
5060
 
5368
5061
  function create_fragment$1o(ctx) {
@@ -5377,8 +5070,8 @@ function create_fragment$1o(ctx) {
5377
5070
  div1 = element("div");
5378
5071
  div0 = element("div");
5379
5072
  if (default_slot) default_slot.c();
5380
- attr(div0, "class", "grid-item-inner svelte-n7kdl3");
5381
- attr(div1, "class", "grid-item svelte-n7kdl3");
5073
+ attr(div0, "class", "grid-item-inner svelte-1cryhmb");
5074
+ attr(div1, "class", "grid-item svelte-1cryhmb");
5382
5075
  attr(div1, "data-element-id", /*gridItemId*/ ctx[0]);
5383
5076
  attr(div1, "data-grid-item-id", /*gridItemId*/ ctx[0]);
5384
5077
  attr(div1, "style", /*_style*/ ctx[1]);
@@ -5683,7 +5376,7 @@ class RenderText extends SvelteComponent {
5683
5376
  /* src/components/TextElement.svelte generated by Svelte v3.53.1 */
5684
5377
 
5685
5378
  function add_css$O(target) {
5686
- append_styles(target, "svelte-9ixs0b", ".text-element-wrapper.svelte-9ixs0b.svelte-9ixs0b{position:relative;height:100%}.text-element.svelte-9ixs0b.svelte-9ixs0b{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;margin:0px;padding:0px;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden;font-size:12px;line-height:1.5}.text-link-element.svelte-9ixs0b.svelte-9ixs0b{text-decoration:none;color:inherit}.text-element-inner.svelte-9ixs0b.svelte-9ixs0b{width:100%;height:auto}.text-direction-vertical.svelte-9ixs0b.svelte-9ixs0b{writing-mode:vertical-rl}.text-direction-vertical.svelte-9ixs0b .text-element-inner.svelte-9ixs0b{width:auto;height:100%}.tooltip.svelte-9ixs0b.svelte-9ixs0b{display:none;position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);color:#fff;background-color:#3d4948;white-space:nowrap;padding:4px 8px 4px 8px;border-radius:4px;font-size:12px;z-index:2147483647}.tooltip.svelte-9ixs0b.svelte-9ixs0b:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-9ixs0b.svelte-9ixs0b{display:block}.tooltip-error.svelte-9ixs0b.svelte-9ixs0b{background-color:#c00}.tooltip-error.svelte-9ixs0b.svelte-9ixs0b:before{border-bottom:7px solid #c00}");
5379
+ append_styles(target, "svelte-vz6867", ".text-element-wrapper.svelte-vz6867.svelte-vz6867{position:relative;height:100%}.text-element.svelte-vz6867.svelte-vz6867{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;margin:0px;padding:0px;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden;font-size:12px;line-height:1.5}.text-link-element.svelte-vz6867.svelte-vz6867{text-decoration:none;color:inherit}.text-element-inner.svelte-vz6867.svelte-vz6867{width:100%;height:auto}.text-direction-vertical.svelte-vz6867.svelte-vz6867{writing-mode:vertical-rl}.text-direction-vertical.svelte-vz6867 .text-element-inner.svelte-vz6867{width:auto;height:100%}.tooltip.svelte-vz6867.svelte-vz6867{display:none;position:absolute;bottom:-40px;left:50%;transform:translateX(-50%);color:#fff;background-color:#3d4948;white-space:nowrap;padding:4px 8px 4px 8px;border-radius:4px;font-size:12px;z-index:2147483647}.tooltip.svelte-vz6867.svelte-vz6867:before{content:'';position:absolute;top:-13px;left:50%;margin-left:-7px;border:7px solid transparent;border-bottom:7px solid #3d4948}.tooltip.show.svelte-vz6867.svelte-vz6867{display:block}.tooltip-error.svelte-vz6867.svelte-vz6867{background-color:#c00}.tooltip-error.svelte-vz6867.svelte-vz6867:before{border-bottom:7px solid #c00}");
5687
5380
  }
5688
5381
 
5689
5382
  // (92:2) {:else}
@@ -5700,8 +5393,8 @@ function create_else_block$2(ctx) {
5700
5393
  div1 = element("div");
5701
5394
  div0 = element("div");
5702
5395
  create_component(rendertext.$$.fragment);
5703
- attr(div0, "class", "text-element-inner svelte-9ixs0b");
5704
- attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"));
5396
+ attr(div0, "class", "text-element-inner svelte-vz6867");
5397
+ attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"));
5705
5398
  attr(div1, "style", /*style*/ ctx[5]);
5706
5399
  },
5707
5400
  m(target, anchor) {
@@ -5715,7 +5408,7 @@ function create_else_block$2(ctx) {
5715
5408
  if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
5716
5409
  rendertext.$set(rendertext_changes);
5717
5410
 
5718
- if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"))) {
5411
+ if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"))) {
5719
5412
  attr(div1, "class", div1_class_value);
5720
5413
  }
5721
5414
 
@@ -5765,12 +5458,12 @@ function create_if_block$d(ctx) {
5765
5458
  t2 = space();
5766
5459
  div2 = element("div");
5767
5460
  div2.textContent = "コピーできませんでした";
5768
- attr(div0, "class", "text-element-inner svelte-9ixs0b");
5461
+ attr(div0, "class", "text-element-inner svelte-vz6867");
5769
5462
  attr(a, "href", '');
5770
- attr(a, "class", a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"));
5463
+ attr(a, "class", a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"));
5771
5464
  attr(a, "style", /*style*/ ctx[5]);
5772
- attr(div1, "class", "tooltip svelte-9ixs0b");
5773
- attr(div2, "class", "tooltip tooltip-error svelte-9ixs0b");
5465
+ attr(div1, "class", "tooltip svelte-vz6867");
5466
+ attr(div2, "class", "tooltip tooltip-error svelte-vz6867");
5774
5467
  },
5775
5468
  m(target, anchor) {
5776
5469
  insert(target, a, anchor);
@@ -5794,7 +5487,7 @@ function create_if_block$d(ctx) {
5794
5487
  if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
5795
5488
  rendertext.$set(rendertext_changes);
5796
5489
 
5797
- if (!current || dirty & /*textDirection*/ 2 && a_class_value !== (a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-9ixs0b"))) {
5490
+ if (!current || dirty & /*textDirection*/ 2 && a_class_value !== (a_class_value = "" + (null_to_empty(`text-element text-link-element text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-vz6867"))) {
5798
5491
  attr(a, "class", a_class_value);
5799
5492
  }
5800
5493
 
@@ -5846,7 +5539,7 @@ function create_fragment$1m(ctx) {
5846
5539
  c() {
5847
5540
  div = element("div");
5848
5541
  if_block.c();
5849
- attr(div, "class", "text-element-wrapper svelte-9ixs0b");
5542
+ attr(div, "class", "text-element-wrapper svelte-vz6867");
5850
5543
  },
5851
5544
  m(target, anchor) {
5852
5545
  insert(target, div, anchor);
@@ -6012,7 +5705,7 @@ class TextElement extends SvelteComponent {
6012
5705
  /* src/components/TextButtonElement.svelte generated by Svelte v3.53.1 */
6013
5706
 
6014
5707
  function add_css$N(target) {
6015
- append_styles(target, "svelte-1vg84sc", ".text-button-element.svelte-1vg84sc{width:100%;height:100%}.text-button-element.svelte-1vg84sc > .button{display:flex;width:100%;height:100%;border:none;box-shadow:transparent;box-sizing:border-box;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5;background-color:#33403e;border-radius:4px;cursor:pointer;border-width:0px;border-style:solid;border-color:#000000}.text-button-element.svelte-1vg84sc > .button._disabled{cursor:not-allowed !important;opacity:0.2}.text-button-element.svelte-1vg84sc > .button:not(._disabled):active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button-element.svelte-1vg84sc > .button:not(._disabled):hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
5708
+ append_styles(target, "svelte-ujdxfc", ".text-button-element.svelte-ujdxfc{width:100%;height:100%}.text-button-element.svelte-ujdxfc > .button{display:flex;width:100%;height:100%;border:none;box-shadow:transparent;box-sizing:border-box;transition:box-shadow 0.2s;white-space:pre-wrap;overflow:hidden;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5;background-color:#33403e;border-radius:4px;cursor:pointer;border-width:0px;border-style:solid;border-color:#000000}.text-button-element.svelte-ujdxfc > .button._disabled{cursor:not-allowed !important;opacity:0.2}.text-button-element.svelte-ujdxfc > .button:not(._disabled):active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button-element.svelte-ujdxfc > .button:not(._disabled):hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
6016
5709
  }
6017
5710
 
6018
5711
  // (48:2) <Button {onClick} {style} {eventName}>
@@ -6068,7 +5761,7 @@ function create_fragment$1l(ctx) {
6068
5761
  c() {
6069
5762
  div = element("div");
6070
5763
  create_component(button.$$.fragment);
6071
- attr(div, "class", "text-button-element svelte-1vg84sc");
5764
+ attr(div, "class", "text-button-element svelte-ujdxfc");
6072
5765
  },
6073
5766
  m(target, anchor) {
6074
5767
  insert(target, div, anchor);
@@ -6160,7 +5853,7 @@ class TextButtonElement extends SvelteComponent {
6160
5853
  /* src/components/ImageElement.svelte generated by Svelte v3.53.1 */
6161
5854
 
6162
5855
  function add_css$M(target) {
6163
- append_styles(target, "svelte-t6tu0e", ".image-element.svelte-t6tu0e{width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box}.image-element.svelte-t6tu0e > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image-element.svelte-t6tu0e > .button._disabled{cursor:not-allowed !important;opacity:0.2}.image-element.transport.svelte-t6tu0e > .button:not(._disabled):hover,.image-element.transport.svelte-t6tu0e > .button:not(._disabled):focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}.image.svelte-t6tu0e{width:100%;height:100%}");
5856
+ append_styles(target, "svelte-1alkh1m", ".image-element.svelte-1alkh1m{width:100%;height:100%;max-width:100%;max-height:100%;box-sizing:border-box}.image-element.svelte-1alkh1m > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image-element.svelte-1alkh1m > .button._disabled{cursor:not-allowed !important;opacity:0.2}.image-element.transport.svelte-1alkh1m > .button:not(._disabled):hover,.image-element.transport.svelte-1alkh1m > .button:not(._disabled):focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}.image.svelte-1alkh1m{width:100%;height:100%}");
6164
5857
  }
6165
5858
 
6166
5859
  // (44:2) <Button {onClick} style={_style} {eventName}>
@@ -6172,7 +5865,7 @@ function create_default_slot$5(ctx) {
6172
5865
  return {
6173
5866
  c() {
6174
5867
  img = element("img");
6175
- attr(img, "class", "image svelte-t6tu0e");
5868
+ attr(img, "class", "image svelte-1alkh1m");
6176
5869
  attr(img, "loading", "lazy");
6177
5870
  attr(img, "width", "auto");
6178
5871
  attr(img, "height", "auto");
@@ -6234,7 +5927,7 @@ function create_fragment$1k(ctx) {
6234
5927
  c() {
6235
5928
  div = element("div");
6236
5929
  create_component(button.$$.fragment);
6237
- attr(div, "class", div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-t6tu0e");
5930
+ attr(div, "class", div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1alkh1m");
6238
5931
  },
6239
5932
  m(target, anchor) {
6240
5933
  insert(target, div, anchor);
@@ -6253,7 +5946,7 @@ function create_fragment$1k(ctx) {
6253
5946
 
6254
5947
  button.$set(button_changes);
6255
5948
 
6256
- if (!current || dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-t6tu0e")) {
5949
+ if (!current || dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "image-element " + (/*transport*/ ctx[2] ? ' transport' : '') + " svelte-1alkh1m")) {
6257
5950
  attr(div, "class", div_class_value);
6258
5951
  }
6259
5952
  },
@@ -6325,7 +6018,7 @@ class ImageElement extends SvelteComponent {
6325
6018
  /* src/components/List.svelte generated by Svelte v3.53.1 */
6326
6019
 
6327
6020
  function add_css$L(target) {
6328
- append_styles(target, "svelte-aquv6z", ".list.svelte-aquv6z{display:flex;width:100%;height:100%;overflow:hidden;border-width:0px;border-style:solid;border-color:#000000}");
6021
+ append_styles(target, "svelte-1t8r9z", ".list.svelte-1t8r9z{display:flex;width:100%;height:100%;overflow:hidden;border-width:0px;border-style:solid;border-color:#000000}");
6329
6022
  }
6330
6023
 
6331
6024
  function create_fragment$1j(ctx) {
@@ -6338,7 +6031,7 @@ function create_fragment$1j(ctx) {
6338
6031
  c() {
6339
6032
  div = element("div");
6340
6033
  if (default_slot) default_slot.c();
6341
- attr(div, "class", "list svelte-aquv6z");
6034
+ attr(div, "class", "list svelte-1t8r9z");
6342
6035
  attr(div, "style", /*style*/ ctx[0]);
6343
6036
  },
6344
6037
  m(target, anchor) {
@@ -6472,7 +6165,7 @@ let List$1 = class List extends SvelteComponent {
6472
6165
  /* src/components/ListItem.svelte generated by Svelte v3.53.1 */
6473
6166
 
6474
6167
  function add_css$K(target) {
6475
- append_styles(target, "svelte-9n97pe", ".list-item.svelte-9n97pe{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item.svelte-9n97pe > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6168
+ append_styles(target, "svelte-1lbw8v2", ".list-item.svelte-1lbw8v2{flex:auto;box-sizing:border-box;min-width:0;min-height:0;position:relative}.list-item.svelte-1lbw8v2 > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6476
6169
  }
6477
6170
 
6478
6171
  // (67:2) <Button {onClick} style={_style} eventName={clickEventName}>
@@ -6542,7 +6235,7 @@ function create_fragment$1i(ctx) {
6542
6235
  c() {
6543
6236
  div = element("div");
6544
6237
  create_component(button.$$.fragment);
6545
- attr(div, "class", "list-item svelte-9n97pe");
6238
+ attr(div, "class", "list-item svelte-1lbw8v2");
6546
6239
  attr(div, "style", /*listItemStyle*/ ctx[3]);
6547
6240
  },
6548
6241
  m(target, anchor) {
@@ -6668,7 +6361,7 @@ let ListItem$1 = class ListItem extends SvelteComponent {
6668
6361
  /* src/components/EmbedElement.svelte generated by Svelte v3.53.1 */
6669
6362
 
6670
6363
  function add_css$J(target) {
6671
- append_styles(target, "svelte-wocq4p", ".embed.svelte-wocq4p{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-wocq4p iframe{position:absolute;top:0;left:0;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6364
+ append_styles(target, "svelte-w6jkzh", ".embed.svelte-w6jkzh{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%}.embed.svelte-w6jkzh iframe{position:absolute;top:0;left:0;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
6672
6365
  }
6673
6366
 
6674
6367
  function create_fragment$1h(ctx) {
@@ -6677,7 +6370,7 @@ function create_fragment$1h(ctx) {
6677
6370
  return {
6678
6371
  c() {
6679
6372
  div = element("div");
6680
- attr(div, "class", "embed svelte-wocq4p");
6373
+ attr(div, "class", "embed svelte-w6jkzh");
6681
6374
  attr(div, "style", /*_style*/ ctx[1]);
6682
6375
  },
6683
6376
  m(target, anchor) {
@@ -6720,7 +6413,7 @@ class EmbedElement extends SvelteComponent {
6720
6413
  /* src/components/MovieYouTubeElement.svelte generated by Svelte v3.53.1 */
6721
6414
 
6722
6415
  function add_css$I(target) {
6723
- append_styles(target, "svelte-vikz49", ".embed.svelte-vikz49{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-vikz49 iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
6416
+ append_styles(target, "svelte-ljxq7x", ".embed.svelte-ljxq7x{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-ljxq7x iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
6724
6417
  }
6725
6418
 
6726
6419
  function create_fragment$1g(ctx) {
@@ -6732,7 +6425,7 @@ function create_fragment$1g(ctx) {
6732
6425
  div1 = element("div");
6733
6426
  div0 = element("div");
6734
6427
  attr(div0, "class", "karte-player");
6735
- attr(div1, "class", "embed svelte-vikz49");
6428
+ attr(div1, "class", "embed svelte-ljxq7x");
6736
6429
  attr(div1, "style", /*_style*/ ctx[0]);
6737
6430
  },
6738
6431
  m(target, anchor) {
@@ -7074,7 +6767,7 @@ class MovieYouTubeElement extends SvelteComponent {
7074
6767
  /* src/components/MovieVimeoElement.svelte generated by Svelte v3.53.1 */
7075
6768
 
7076
6769
  function add_css$H(target) {
7077
- append_styles(target, "svelte-vikz49", ".embed.svelte-vikz49{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-vikz49 iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
6770
+ append_styles(target, "svelte-ljxq7x", ".embed.svelte-ljxq7x{box-shadow:0 1px rgba(0, 0, 0, 0.06);overflow:hidden;width:100%;height:100%;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.embed.svelte-ljxq7x iframe{position:absolute;top:0;left:0;width:100%;height:100%}");
7078
6771
  }
7079
6772
 
7080
6773
  function create_fragment$1f(ctx) {
@@ -7086,7 +6779,7 @@ function create_fragment$1f(ctx) {
7086
6779
  div1 = element("div");
7087
6780
  div0 = element("div");
7088
6781
  attr(div0, "class", "karte-player");
7089
- attr(div1, "class", "embed svelte-vikz49");
6782
+ attr(div1, "class", "embed svelte-ljxq7x");
7090
6783
  attr(div1, "style", /*_style*/ ctx[0]);
7091
6784
  },
7092
6785
  m(target, anchor) {
@@ -7270,7 +6963,7 @@ class MovieVimeoElement extends SvelteComponent {
7270
6963
  /* src/components/FormTextarea.svelte generated by Svelte v3.53.1 */
7271
6964
 
7272
6965
  function add_css$G(target) {
7273
- append_styles(target, "svelte-zxvkkc", ".textarea-wrapper.svelte-zxvkkc{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-zxvkkc{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.textarea.svelte-zxvkkc::placeholder{color:var(--placeholder-color)}.textarea.svelte-zxvkkc:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}");
6966
+ append_styles(target, "svelte-1fjy5oo", ".textarea-wrapper.svelte-1fjy5oo{display:flex;align-items:center;width:100%;height:100%}.textarea.svelte-1fjy5oo{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.textarea.svelte-1fjy5oo::placeholder{color:var(--placeholder-color)}.textarea.svelte-1fjy5oo:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}");
7274
6967
  }
7275
6968
 
7276
6969
  function create_fragment$1e(ctx) {
@@ -7283,12 +6976,12 @@ function create_fragment$1e(ctx) {
7283
6976
  c() {
7284
6977
  div = element("div");
7285
6978
  textarea = element("textarea");
7286
- attr(textarea, "class", "textarea svelte-zxvkkc");
6979
+ attr(textarea, "class", "textarea svelte-1fjy5oo");
7287
6980
  textarea.value = /*$value*/ ctx[4];
7288
6981
  textarea.required = /*required*/ ctx[1];
7289
6982
  attr(textarea, "placeholder", /*placeholder*/ ctx[0]);
7290
6983
  attr(textarea, "style", /*style*/ ctx[3]);
7291
- attr(div, "class", "textarea-wrapper svelte-zxvkkc");
6984
+ attr(div, "class", "textarea-wrapper svelte-1fjy5oo");
7292
6985
  attr(div, "style", /*styleVariables*/ ctx[2]);
7293
6986
  },
7294
6987
  m(target, anchor) {
@@ -7440,7 +7133,7 @@ class FormTextarea extends SvelteComponent {
7440
7133
  /* src/components/FormRadioButtons.svelte generated by Svelte v3.53.1 */
7441
7134
 
7442
7135
  function add_css$F(target) {
7443
- append_styles(target, "svelte-17s08g", ".radio-buttons.svelte-17s08g{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-17s08g{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-17s08g{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-17s08g:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-17s08g{margin-left:0.5em}");
7136
+ append_styles(target, "svelte-1ntb6j8", ".radio-buttons.svelte-1ntb6j8{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-1ntb6j8{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-1ntb6j8{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-1ntb6j8:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18,160,160,.08),0px 1px 4px -1px rgba(18,160,160,.24)}.radio-button-text.svelte-1ntb6j8{margin-left:0.5em}");
7444
7137
  }
7445
7138
 
7446
7139
  function get_each_context$7(ctx, list, i) {
@@ -7474,14 +7167,14 @@ function create_each_block$7(ctx) {
7474
7167
  t1 = text(t1_value);
7475
7168
  t2 = space();
7476
7169
  attr(input, "type", "radio");
7477
- attr(input, "class", "radio-button-input svelte-17s08g");
7170
+ attr(input, "class", "radio-button-input svelte-1ntb6j8");
7478
7171
  attr(input, "style", /*buttonStyle*/ ctx[5]);
7479
7172
  attr(input, "name", /*name*/ ctx[0]);
7480
7173
  input.value = input_value_value = /*option*/ ctx[17];
7481
7174
  input.checked = input_checked_value = /*option*/ ctx[17] === /*_value*/ ctx[3];
7482
- attr(span, "class", "radio-button-text svelte-17s08g");
7175
+ attr(span, "class", "radio-button-text svelte-1ntb6j8");
7483
7176
  attr(span, "style", span_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`);
7484
- attr(label, "class", "radio-button svelte-17s08g");
7177
+ attr(label, "class", "radio-button svelte-1ntb6j8");
7485
7178
  },
7486
7179
  m(target, anchor) {
7487
7180
  insert(target, label, anchor);
@@ -7546,7 +7239,7 @@ function create_fragment$1d(ctx) {
7546
7239
  each_blocks[i].c();
7547
7240
  }
7548
7241
 
7549
- attr(div, "class", "radio-buttons svelte-17s08g");
7242
+ attr(div, "class", "radio-buttons svelte-1ntb6j8");
7550
7243
  attr(div, "style", /*_layoutStyle*/ ctx[1]);
7551
7244
  },
7552
7245
  m(target, anchor) {
@@ -7715,7 +7408,7 @@ class FormRadioButtons extends SvelteComponent {
7715
7408
  /* src/components/FormSelect.svelte generated by Svelte v3.53.1 */
7716
7409
 
7717
7410
  function add_css$E(target) {
7718
- append_styles(target, "svelte-t9ynyj", ".select.svelte-t9ynyj{width:100%;height:100%}.select-select.svelte-t9ynyj{position:relative;appearance:none;width:100%;height:100%;cursor:pointer;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:0 0 0 10px;font-size:12px;line-height:1.5}.select-select.svelte-t9ynyj:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.select-icon.svelte-t9ynyj{position:absolute;width:calc(var(--icon-size) / 1.41);height:calc(var(--icon-size) / 1.41);top:calc(50% - calc(var(--icon-size) / 4));right:calc(var(--icon-size) * 1.2);box-sizing:border-box;border-right:solid 2px var(--icon-color);border-top:solid 2px var(--icon-color);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
7411
+ append_styles(target, "svelte-iejizj", ".select.svelte-iejizj{width:100%;height:100%}.select-select.svelte-iejizj{position:relative;appearance:none;width:100%;height:100%;cursor:pointer;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:0 0 0 10px;font-size:12px;line-height:1.5}.select-select.svelte-iejizj:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.select-icon.svelte-iejizj{position:absolute;width:calc(var(--icon-size) / 1.41);height:calc(var(--icon-size) / 1.41);top:calc(50% - calc(var(--icon-size) / 4));right:calc(var(--icon-size) * 1.2);box-sizing:border-box;border-right:solid 2px var(--icon-color);border-top:solid 2px var(--icon-color);transform:translateY(-35.4%) rotate(135deg);pointer-events:none}");
7719
7412
  }
7720
7413
 
7721
7414
  function get_each_context$6(ctx, list, i) {
@@ -7849,10 +7542,10 @@ function create_fragment$1c(ctx) {
7849
7542
 
7850
7543
  t = space();
7851
7544
  div0 = element("div");
7852
- attr(select, "class", "select-select svelte-t9ynyj");
7545
+ attr(select, "class", "select-select svelte-iejizj");
7853
7546
  attr(select, "style", /*style*/ ctx[3]);
7854
- attr(div0, "class", "select-icon svelte-t9ynyj");
7855
- attr(div1, "class", "select svelte-t9ynyj");
7547
+ attr(div0, "class", "select-icon svelte-iejizj");
7548
+ attr(div1, "class", "select svelte-iejizj");
7856
7549
  attr(div1, "style", /*styleVariables*/ ctx[2]);
7857
7550
  },
7858
7551
  m(target, anchor) {
@@ -8054,7 +7747,7 @@ class FormSelect extends SvelteComponent {
8054
7747
  /* src/components/FormCheckBoxes.svelte generated by Svelte v3.53.1 */
8055
7748
 
8056
7749
  function add_css$D(target) {
8057
- append_styles(target, "svelte-1p65cg8", ".check-boxes.svelte-1p65cg8.svelte-1p65cg8{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%;gap:0px}.check-box.svelte-1p65cg8.svelte-1p65cg8{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-1p65cg8.svelte-1p65cg8{width:var(--size);height:var(--size);margin:0;position:absolute;appearance:none;cursor:pointer}.check-box-check.svelte-1p65cg8.svelte-1p65cg8{display:inline-flex;background-color:var(--color-main);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center;flex:none}.check-box-icon.svelte-1p65cg8.svelte-1p65cg8{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-1p65cg8.svelte-1p65cg8:after{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:var(--color-sub)}.check-box-check._checked.svelte-1p65cg8.svelte-1p65cg8{background-color:var(--color-main-active)}.check-box-check._checked.svelte-1p65cg8 .check-box-icon.svelte-1p65cg8:after{border-color:var(--color-sub-active)}.check-box-text.svelte-1p65cg8.svelte-1p65cg8{margin-left:0.5em;color:#333;font-size:12px;line-height:1.5}");
7750
+ append_styles(target, "svelte-2pz1us", ".check-boxes.svelte-2pz1us.svelte-2pz1us{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%;gap:0px}.check-box.svelte-2pz1us.svelte-2pz1us{display:flex;align-items:center;position:relative;cursor:pointer}.check-box-input.svelte-2pz1us.svelte-2pz1us{width:var(--size);height:var(--size);margin:0;position:absolute;appearance:none;cursor:pointer}.check-box-check.svelte-2pz1us.svelte-2pz1us{display:inline-flex;background-color:var(--color-main);width:var(--size);height:var(--size);border-radius:calc(var(--size) / 4);justify-content:center;align-items:center;flex:none}.check-box-icon.svelte-2pz1us.svelte-2pz1us{display:inline-block;--icon-size:calc(var(--size) * 3 / 4);width:var(--icon-size);height:var(--icon-size)}.check-box-icon.svelte-2pz1us.svelte-2pz1us:after{content:'';display:block;box-sizing:border-box;width:45%;height:91%;transform:translate(60%, -8%) rotate(45deg);border-style:none solid solid none;border-width:2px;border-color:var(--color-sub)}.check-box-check._checked.svelte-2pz1us.svelte-2pz1us{background-color:var(--color-main-active)}.check-box-check._checked.svelte-2pz1us .check-box-icon.svelte-2pz1us:after{border-color:var(--color-sub-active)}.check-box-text.svelte-2pz1us.svelte-2pz1us{margin-left:0.5em;color:#333;font-size:12px;line-height:1.5}");
8058
7751
  }
8059
7752
 
8060
7753
  function get_each_context$5(ctx, list, i) {
@@ -8093,19 +7786,19 @@ function create_each_block$5(ctx) {
8093
7786
  span2 = element("span");
8094
7787
  t2 = text(t2_value);
8095
7788
  t3 = space();
8096
- attr(input, "class", "check-box-input svelte-1p65cg8");
7789
+ attr(input, "class", "check-box-input svelte-2pz1us");
8097
7790
  attr(input, "type", "checkbox");
8098
7791
  attr(input, "name", /*name*/ ctx[0]);
8099
7792
  input.checked = input_checked_value = /*isCheckedArray*/ ctx[4][/*i*/ ctx[19]];
8100
- attr(span0, "class", "check-box-icon svelte-1p65cg8");
7793
+ attr(span0, "class", "check-box-icon svelte-2pz1us");
8101
7794
 
8102
7795
  attr(span1, "class", span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
8103
7796
  ? ' _checked'
8104
- : ''}`) + " svelte-1p65cg8"));
7797
+ : ''}`) + " svelte-2pz1us"));
8105
7798
 
8106
- attr(span2, "class", "check-box-text svelte-1p65cg8");
7799
+ attr(span2, "class", "check-box-text svelte-2pz1us");
8107
7800
  attr(span2, "style", span2_style_value = `${/*_textStyle*/ ctx[2]} ${/*fontCss*/ ctx[6]}`);
8108
- attr(label, "class", "check-box svelte-1p65cg8");
7801
+ attr(label, "class", "check-box svelte-2pz1us");
8109
7802
  attr(label, "style", /*styleVariables*/ ctx[5]);
8110
7803
  },
8111
7804
  m(target, anchor) {
@@ -8137,7 +7830,7 @@ function create_each_block$5(ctx) {
8137
7830
 
8138
7831
  if (dirty & /*isCheckedArray*/ 16 && span1_class_value !== (span1_class_value = "" + (null_to_empty(`check-box-check${/*isCheckedArray*/ ctx[4][/*i*/ ctx[19]]
8139
7832
  ? ' _checked'
8140
- : ''}`) + " svelte-1p65cg8"))) {
7833
+ : ''}`) + " svelte-2pz1us"))) {
8141
7834
  attr(span1, "class", span1_class_value);
8142
7835
  }
8143
7836
 
@@ -8176,7 +7869,7 @@ function create_fragment$1b(ctx) {
8176
7869
  each_blocks[i].c();
8177
7870
  }
8178
7871
 
8179
- attr(div, "class", "check-boxes svelte-1p65cg8");
7872
+ attr(div, "class", "check-boxes svelte-2pz1us");
8180
7873
  attr(div, "style", /*_layoutStyle*/ ctx[1]);
8181
7874
  },
8182
7875
  m(target, anchor) {
@@ -8351,7 +8044,7 @@ class FormCheckBoxes extends SvelteComponent {
8351
8044
  /* src/components/FormRatingButtonsNumber.svelte generated by Svelte v3.53.1 */
8352
8045
 
8353
8046
  function add_css$C(target) {
8354
- append_styles(target, "svelte-1iqf36p", ".rating-buttons.svelte-1iqf36p{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-1iqf36p{cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s, box-shadow 0.2s;appearance:none;background:none;border:none;margin:0;padding:0}");
8047
+ append_styles(target, "svelte-9idbf1", ".rating-buttons.svelte-9idbf1{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-9idbf1{cursor:pointer;display:flex;justify-content:center;align-items:center;transition:background-color 0.2s, box-shadow 0.2s;appearance:none;background:none;border:none;margin:0;padding:0}");
8355
8048
  }
8356
8049
 
8357
8050
  function get_each_context$4(ctx, list, i) {
@@ -8375,7 +8068,7 @@ function create_each_block$4(ctx) {
8375
8068
  button = element("button");
8376
8069
  t0 = text(t0_value);
8377
8070
  t1 = space();
8378
- attr(button, "class", "rating-button svelte-1iqf36p");
8071
+ attr(button, "class", "rating-button svelte-9idbf1");
8379
8072
  attr(button, "style", button_style_value = /*getTextButtonStyle*/ ctx[5](/*i*/ ctx[14] === /*_value*/ ctx[2]));
8380
8073
  },
8381
8074
  m(target, anchor) {
@@ -8424,7 +8117,7 @@ function create_fragment$1a(ctx) {
8424
8117
  each_blocks[i].c();
8425
8118
  }
8426
8119
 
8427
- attr(div, "class", "rating-buttons svelte-1iqf36p");
8120
+ attr(div, "class", "rating-buttons svelte-9idbf1");
8428
8121
  },
8429
8122
  m(target, anchor) {
8430
8123
  insert(target, div, anchor);
@@ -8568,7 +8261,7 @@ class FormRatingButtonsNumber extends SvelteComponent {
8568
8261
  /* src/components/FormRatingButtonsFace.svelte generated by Svelte v3.53.1 */
8569
8262
 
8570
8263
  function add_css$B(target) {
8571
- append_styles(target, "svelte-tbunko", ".rating-buttons.svelte-tbunko{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-tbunko{appearance:none;background:none;border:none;margin:0;padding:0}.rating-button-image.svelte-tbunko{cursor:pointer;user-select:none;-webkit-user-drag:none;width:100%;height:100%}.rating-button-image.svelte-tbunko:not(._active){filter:grayscale(100%)}");
8264
+ append_styles(target, "svelte-1b5dvzw", ".rating-buttons.svelte-1b5dvzw{display:flex;justify-content:space-between;align-items:center;width:100%;height:100%}.rating-button.svelte-1b5dvzw{appearance:none;background:none;border:none;margin:0;padding:0}.rating-button-image.svelte-1b5dvzw{cursor:pointer;user-select:none;-webkit-user-drag:none;width:100%;height:100%}.rating-button-image.svelte-1b5dvzw:not(._active){filter:grayscale(100%)}");
8572
8265
  }
8573
8266
 
8574
8267
  function get_each_context$3(ctx, list, i) {
@@ -8593,9 +8286,9 @@ function create_each_block$3(ctx) {
8593
8286
  img = element("img");
8594
8287
  t = space();
8595
8288
  if (!src_url_equal(img.src, img_src_value = /*ICONS*/ ctx[2][/*i*/ ctx[10]])) attr(img, "src", img_src_value);
8596
- attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-tbunko"));
8289
+ attr(img, "class", img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-1b5dvzw"));
8597
8290
  attr(img, "alt", "rate" + /*i*/ ctx[10]);
8598
- attr(button, "class", "rating-button svelte-tbunko");
8291
+ attr(button, "class", "rating-button svelte-1b5dvzw");
8599
8292
  attr(button, "style", /*buttonStyle*/ ctx[0]);
8600
8293
  },
8601
8294
  m(target, anchor) {
@@ -8611,7 +8304,7 @@ function create_each_block$3(ctx) {
8611
8304
  p(new_ctx, dirty) {
8612
8305
  ctx = new_ctx;
8613
8306
 
8614
- if (dirty & /*_value*/ 2 && img_class_value !== (img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-tbunko"))) {
8307
+ if (dirty & /*_value*/ 2 && img_class_value !== (img_class_value = "" + (null_to_empty(`rating-button-image${/*i*/ ctx[10] === /*_value*/ ctx[1] ? ' _active' : ''}`) + " svelte-1b5dvzw"))) {
8615
8308
  attr(img, "class", img_class_value);
8616
8309
  }
8617
8310
 
@@ -8644,7 +8337,7 @@ function create_fragment$19(ctx) {
8644
8337
  each_blocks[i].c();
8645
8338
  }
8646
8339
 
8647
- attr(div, "class", "rating-buttons svelte-tbunko");
8340
+ attr(div, "class", "rating-buttons svelte-1b5dvzw");
8648
8341
  },
8649
8342
  m(target, anchor) {
8650
8343
  insert(target, div, anchor);
@@ -8752,7 +8445,7 @@ class FormRatingButtonsFace extends SvelteComponent {
8752
8445
  /* src/components/FormIdentifyInput.svelte generated by Svelte v3.53.1 */
8753
8446
 
8754
8447
  function add_css$A(target) {
8755
- append_styles(target, "svelte-h8fqwx", ".input-wrapper.svelte-h8fqwx{display:flex;align-items:center;width:100%;height:100%}.input.svelte-h8fqwx{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.input.svelte-h8fqwx::placeholder{color:var(--placeholder-color)}.input.svelte-h8fqwx:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.input._error.svelte-h8fqwx{outline:none;border-width:var(--error-border-width) !important;border-color:var(--error-border-color) !important;border-style:var(--error-border-style) !important}");
8448
+ append_styles(target, "svelte-f14zo5", ".input-wrapper.svelte-f14zo5{display:flex;align-items:center;width:100%;height:100%}.input.svelte-f14zo5{width:100%;height:100%;box-sizing:border-box;resize:none;appearance:none;background-color:#fff;border:solid 2px #ccc;border-radius:6px;padding:6px 10px 6px 10px;font-size:12px;line-height:1.5}.input.svelte-f14zo5::placeholder{color:var(--placeholder-color)}.input.svelte-f14zo5:focus{outline:none;border-width:var(--focus-border-width) !important;border-color:var(--focus-border-color) !important;border-style:var(--focus-border-style) !important}.input._error.svelte-f14zo5{outline:none;border-width:var(--error-border-width) !important;border-color:var(--error-border-color) !important;border-style:var(--error-border-style) !important}");
8756
8449
  }
8757
8450
 
8758
8451
  function create_fragment$18(ctx) {
@@ -8766,13 +8459,13 @@ function create_fragment$18(ctx) {
8766
8459
  c() {
8767
8460
  div = element("div");
8768
8461
  input = element("input");
8769
- attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-h8fqwx"));
8462
+ attr(input, "class", input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-f14zo5"));
8770
8463
  attr(input, "type", "text");
8771
8464
  input.value = /*$value*/ ctx[2];
8772
8465
  input.required = /*required*/ ctx[0];
8773
8466
  attr(input, "placeholder", /*placeholder*/ ctx[1]);
8774
8467
  attr(input, "style", /*style*/ ctx[5]);
8775
- attr(div, "class", "input-wrapper svelte-h8fqwx");
8468
+ attr(div, "class", "input-wrapper svelte-f14zo5");
8776
8469
  attr(div, "style", /*styleVariables*/ ctx[4]);
8777
8470
  },
8778
8471
  m(target, anchor) {
@@ -8785,7 +8478,7 @@ function create_fragment$18(ctx) {
8785
8478
  }
8786
8479
  },
8787
8480
  p(ctx, [dirty]) {
8788
- if (dirty & /*isValidForUI*/ 8 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-h8fqwx"))) {
8481
+ if (dirty & /*isValidForUI*/ 8 && input_class_value !== (input_class_value = "" + (null_to_empty(['input', /*isValidForUI*/ ctx[3] ? '' : '_error'].join(' ')) + " svelte-f14zo5"))) {
8789
8482
  attr(input, "class", input_class_value);
8790
8483
  }
8791
8484
 
@@ -8973,7 +8666,7 @@ class FormIdentifyInput extends SvelteComponent {
8973
8666
  /* src/components/FormIdentifyChoices.svelte generated by Svelte v3.53.1 */
8974
8667
 
8975
8668
  function add_css$z(target) {
8976
- append_styles(target, "svelte-8zbmyo", ".radio-buttons.svelte-8zbmyo{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-8zbmyo{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-8zbmyo{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-8zbmyo:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18, 160, 160, 0.08), 0px 1px 4px -1px rgba(18, 160, 160, 0.24)}.radio-button-text.svelte-8zbmyo{margin-left:0.5em}");
8669
+ append_styles(target, "svelte-pzrwlo", ".radio-buttons.svelte-pzrwlo{display:flex;justify-content:space-between;flex-direction:column;width:100%;height:100%}.radio-button.svelte-pzrwlo{cursor:pointer;display:flex;align-items:center}.radio-button-input.svelte-pzrwlo{appearance:none;margin:0;box-sizing:border-box;border-radius:var(--size);position:relative;width:var(--size);height:var(--size);border:solid calc(var(--size) / 3) var(--color-main);background-color:var(--color-sub);cursor:pointer;flex:none}.radio-button-input.svelte-pzrwlo:checked{border:solid calc(var(--size) / 3) var(--color-main-active);background-color:var(--color-sub-active);box-shadow:0px 1px 8px 2px rgba(18, 160, 160, 0.08), 0px 1px 4px -1px rgba(18, 160, 160, 0.24)}.radio-button-text.svelte-pzrwlo{margin-left:0.5em}");
8977
8670
  }
8978
8671
 
8979
8672
  function create_fragment$17(ctx) {
@@ -9011,20 +8704,20 @@ function create_fragment$17(ctx) {
9011
8704
  span1 = element("span");
9012
8705
  t4 = text("いいえ");
9013
8706
  attr(input0, "type", "radio");
9014
- attr(input0, "class", "radio-button-input svelte-8zbmyo");
8707
+ attr(input0, "class", "radio-button-input svelte-pzrwlo");
9015
8708
  attr(input0, "style", /*buttonStyle*/ ctx[2]);
9016
8709
  input0.checked = input0_checked_value = /*$value*/ ctx[3] === true;
9017
- attr(span0, "class", "radio-button-text svelte-8zbmyo");
8710
+ attr(span0, "class", "radio-button-text svelte-pzrwlo");
9018
8711
  attr(span0, "style", span0_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
9019
- attr(label0, "class", "radio-button svelte-8zbmyo");
8712
+ attr(label0, "class", "radio-button svelte-pzrwlo");
9020
8713
  attr(input1, "type", "radio");
9021
- attr(input1, "class", "radio-button-input svelte-8zbmyo");
8714
+ attr(input1, "class", "radio-button-input svelte-pzrwlo");
9022
8715
  attr(input1, "style", /*buttonStyle*/ ctx[2]);
9023
8716
  input1.checked = input1_checked_value = /*$value*/ ctx[3] === false;
9024
- attr(span1, "class", "radio-button-text svelte-8zbmyo");
8717
+ attr(span1, "class", "radio-button-text svelte-pzrwlo");
9025
8718
  attr(span1, "style", span1_style_value = `${/*_textStyle*/ ctx[1]} ${/*fontCss*/ ctx[4]}`);
9026
- attr(label1, "class", "radio-button svelte-8zbmyo");
9027
- attr(div, "class", "radio-buttons svelte-8zbmyo");
8719
+ attr(label1, "class", "radio-button svelte-pzrwlo");
8720
+ attr(div, "class", "radio-buttons svelte-pzrwlo");
9028
8721
  attr(div, "style", /*_layoutStyle*/ ctx[0]);
9029
8722
  },
9030
8723
  m(target, anchor) {
@@ -9192,7 +8885,7 @@ class FormIdentifyChoices extends SvelteComponent {
9192
8885
  /* src/components/Slide.svelte generated by Svelte v3.53.1 */
9193
8886
 
9194
8887
  function add_css$y(target) {
9195
- append_styles(target, "svelte-ji1fh", ".root.svelte-ji1fh{width:100%;height:100%;position:relative}.container.svelte-ji1fh{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000}.slide.svelte-ji1fh{height:100%;position:absolute;display:flex}.transition.svelte-ji1fh{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-ji1fh{height:100%;flex:none}.prev-button-container.svelte-ji1fh,.next-button-container.svelte-ji1fh{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button-container.svelte-ji1fh{left:0}.next-button-container.svelte-ji1fh{right:0}.move-button.svelte-ji1fh{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;border:none;background:none;margin:0;padding:0}.navigation.svelte-ji1fh{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-ji1fh{flex-shrink:0;cursor:pointer;border:none;background:none;margin:0;padding:0;appearance:none}.navigation-item-inner.circle.svelte-ji1fh{border-radius:51%}");
8888
+ append_styles(target, "svelte-1qfq79t", ".root.svelte-1qfq79t{width:100%;height:100%;position:relative}.container.svelte-1qfq79t{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000}.slide.svelte-1qfq79t{height:100%;position:absolute;display:flex}.transition.svelte-1qfq79t{transition:left 0.2s cubic-bezier(.04,.67,.53,.96)}.item.svelte-1qfq79t{height:100%;flex:none}.prev-button-container.svelte-1qfq79t,.next-button-container.svelte-1qfq79t{top:50%;height:0;position:absolute;display:flex;overflow:visible;align-items:center}.prev-button-container.svelte-1qfq79t{left:0}.next-button-container.svelte-1qfq79t{right:0}.move-button.svelte-1qfq79t{display:flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;border:none;background:none;margin:0;padding:0}.navigation.svelte-1qfq79t{position:absolute;width:0;left:50%;bottom:0;display:flex;justify-content:center;overflow:visible}.navigation-item.svelte-1qfq79t{flex-shrink:0;cursor:pointer;border:none;background:none;margin:0;padding:0;appearance:none}.navigation-item-inner.circle.svelte-1qfq79t{border-radius:51%}");
9196
8889
  }
9197
8890
 
9198
8891
  function get_each_context$2(ctx, list, i) {
@@ -9221,9 +8914,9 @@ function create_if_block_1$2(ctx) {
9221
8914
  attr(svg, "viewBox", "0 0 10 16");
9222
8915
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9223
8916
  attr(svg, "style", /*prevIconStyle*/ ctx[10]);
9224
- attr(button, "class", "move-button svelte-ji1fh");
8917
+ attr(button, "class", "move-button svelte-1qfq79t");
9225
8918
  attr(button, "style", /*_prevButtonContainerStyle*/ ctx[9]);
9226
- attr(div, "class", "prev-button-container svelte-ji1fh");
8919
+ attr(div, "class", "prev-button-container svelte-1qfq79t");
9227
8920
  },
9228
8921
  m(target, anchor) {
9229
8922
  insert(target, div, anchor);
@@ -9272,9 +8965,9 @@ function create_if_block$b(ctx) {
9272
8965
  attr(svg, "viewBox", "0 0 10 16");
9273
8966
  attr(svg, "xmlns", "http://www.w3.org/2000/svg");
9274
8967
  attr(svg, "style", /*nextIconStyle*/ ctx[8]);
9275
- attr(button, "class", "move-button svelte-ji1fh");
8968
+ attr(button, "class", "move-button svelte-1qfq79t");
9276
8969
  attr(button, "style", /*_nextButtonContainerStyle*/ ctx[7]);
9277
- attr(div, "class", "next-button-container svelte-ji1fh");
8970
+ attr(div, "class", "next-button-container svelte-1qfq79t");
9278
8971
  },
9279
8972
  m(target, anchor) {
9280
8973
  insert(target, div, anchor);
@@ -9322,9 +9015,9 @@ function create_each_block$2(ctx) {
9322
9015
  button = element("button");
9323
9016
  div = element("div");
9324
9017
  t = space();
9325
- attr(div, "class", "navigation-item-inner circle svelte-ji1fh");
9018
+ attr(div, "class", "navigation-item-inner circle svelte-1qfq79t");
9326
9019
  attr(div, "style", div_style_value = /*getNavigationItemInnerStyle*/ ctx[5](/*i*/ ctx[63]));
9327
- attr(button, "class", "navigation-item svelte-ji1fh");
9020
+ attr(button, "class", "navigation-item svelte-1qfq79t");
9328
9021
  attr(button, "style", /*navigationItemStyle*/ ctx[6]);
9329
9022
  },
9330
9023
  m(target, anchor) {
@@ -9401,14 +9094,14 @@ function create_fragment$16(ctx) {
9401
9094
  each_blocks[i].c();
9402
9095
  }
9403
9096
 
9404
- attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-ji1fh"));
9097
+ attr(div0, "class", div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-1qfq79t"));
9405
9098
  attr(div0, "style", /*slideStyle*/ ctx[14]);
9406
- attr(div1, "class", "container svelte-ji1fh");
9099
+ attr(div1, "class", "container svelte-1qfq79t");
9407
9100
  attr(div1, "style", /*_style*/ ctx[0]);
9408
- attr(div2, "class", "navigation svelte-ji1fh");
9101
+ attr(div2, "class", "navigation svelte-1qfq79t");
9409
9102
  attr(div2, "style", /*navigationStyle*/ ctx[4]);
9410
9103
  set_attributes(div3, div3_data);
9411
- toggle_class(div3, "svelte-ji1fh", true);
9104
+ toggle_class(div3, "svelte-1qfq79t", true);
9412
9105
  },
9413
9106
  m(target, anchor) {
9414
9107
  insert(target, div3, anchor);
@@ -9450,7 +9143,7 @@ function create_fragment$16(ctx) {
9450
9143
  }
9451
9144
  }
9452
9145
 
9453
- if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-ji1fh"))) {
9146
+ if (!current || dirty[0] & /*slideClass*/ 8192 && div0_class_value !== (div0_class_value = "" + (null_to_empty(/*slideClass*/ ctx[13]) + " svelte-1qfq79t"))) {
9454
9147
  attr(div0, "class", div0_class_value);
9455
9148
  }
9456
9149
 
@@ -9516,7 +9209,7 @@ function create_fragment$16(ctx) {
9516
9209
  }
9517
9210
 
9518
9211
  set_attributes(div3, div3_data = get_spread_update(div3_levels, [{ class: "root" }, dataAttrStopPropagation('click')]));
9519
- toggle_class(div3, "svelte-ji1fh", true);
9212
+ toggle_class(div3, "svelte-1qfq79t", true);
9520
9213
  },
9521
9214
  i(local) {
9522
9215
  if (current) return;
@@ -10028,7 +9721,7 @@ class Slide extends SvelteComponent {
10028
9721
  /* src/components/SlideItem.svelte generated by Svelte v3.53.1 */
10029
9722
 
10030
9723
  function add_css$x(target) {
10031
- append_styles(target, "svelte-9ygf1w", ".item.svelte-9ygf1w{height:100%;flex:none;position:relative}.item.svelte-9ygf1w img{user-select:none;-webkit-user-drag:none}.item-inner.svelte-9ygf1w{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;cursor:default;overflow:hidden}");
9724
+ append_styles(target, "svelte-1rv0qgo", ".item.svelte-1rv0qgo{height:100%;flex:none;position:relative}.item.svelte-1rv0qgo img{user-select:none;-webkit-user-drag:none}.item-inner.svelte-1rv0qgo{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;cursor:default;overflow:hidden}");
10032
9725
  }
10033
9726
 
10034
9727
  function create_fragment$15(ctx) {
@@ -10043,9 +9736,9 @@ function create_fragment$15(ctx) {
10043
9736
  div1 = element("div");
10044
9737
  div0 = element("div");
10045
9738
  if (default_slot) default_slot.c();
10046
- attr(div0, "class", "item-inner svelte-9ygf1w");
9739
+ attr(div0, "class", "item-inner svelte-1rv0qgo");
10047
9740
  attr(div0, "style", /*_style*/ ctx[0]);
10048
- attr(div1, "class", "item svelte-9ygf1w");
9741
+ attr(div1, "class", "item svelte-1rv0qgo");
10049
9742
  attr(div1, "style", /*itemStyle*/ ctx[1]);
10050
9743
  },
10051
9744
  m(target, anchor) {
@@ -10171,7 +9864,7 @@ class SlideItem extends SvelteComponent {
10171
9864
  /* src/components/Countdown.svelte generated by Svelte v3.53.1 */
10172
9865
 
10173
9866
  function add_css$w(target) {
10174
- append_styles(target, "svelte-rroxiz", ".countdown.svelte-rroxiz{position:relative;width:100%;height:100%}.countdown-inner.svelte-rroxiz{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
9867
+ append_styles(target, "svelte-t87l6f", ".countdown.svelte-t87l6f{position:relative;width:100%;height:100%}.countdown-inner.svelte-t87l6f{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
10175
9868
  }
10176
9869
 
10177
9870
  const get_default_slot_changes$1 = dirty => ({ countdown: dirty & /*countdown*/ 2 });
@@ -10189,9 +9882,9 @@ function create_fragment$14(ctx) {
10189
9882
  div1 = element("div");
10190
9883
  div0 = element("div");
10191
9884
  if (default_slot) default_slot.c();
10192
- attr(div0, "class", "countdown-inner svelte-rroxiz");
9885
+ attr(div0, "class", "countdown-inner svelte-t87l6f");
10193
9886
  attr(div0, "style", /*_style*/ ctx[0]);
10194
- attr(div1, "class", "countdown svelte-rroxiz");
9887
+ attr(div1, "class", "countdown svelte-t87l6f");
10195
9888
  },
10196
9889
  m(target, anchor) {
10197
9890
  insert(target, div1, anchor);
@@ -10325,7 +10018,7 @@ class Countdown extends SvelteComponent {
10325
10018
  /* src/components/Box.svelte generated by Svelte v3.53.1 */
10326
10019
 
10327
10020
  function add_css$v(target) {
10328
- append_styles(target, "svelte-1ccydfy", ".box.svelte-1ccydfy{position:relative;width:100%;height:100%}.box.svelte-1ccydfy > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
10021
+ append_styles(target, "svelte-1c91vpe", ".box.svelte-1c91vpe{position:relative;width:100%;height:100%}.box.svelte-1c91vpe > .button{position:absolute;inset:0;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}");
10329
10022
  }
10330
10023
 
10331
10024
  // (24:2) <Button {onClick} style={_style} {eventName}>
@@ -10395,7 +10088,7 @@ function create_fragment$13(ctx) {
10395
10088
  c() {
10396
10089
  div = element("div");
10397
10090
  create_component(button.$$.fragment);
10398
- attr(div, "class", "box svelte-1ccydfy");
10091
+ attr(div, "class", "box svelte-1c91vpe");
10399
10092
  },
10400
10093
  m(target, anchor) {
10401
10094
  insert(target, div, anchor);
@@ -10456,7 +10149,7 @@ class Box extends SvelteComponent {
10456
10149
  /* src/components/IconElement.svelte generated by Svelte v3.53.1 */
10457
10150
 
10458
10151
  function add_css$u(target) {
10459
- append_styles(target, "svelte-1mkvcuo", ".icon.svelte-1mkvcuo{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1mkvcuo > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.icon.svelte-1mkvcuo > .button._disabled{cursor:not-allowed !important;opacity:0.2}.icon.svelte-1mkvcuo svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
10152
+ append_styles(target, "svelte-1mk6wi4", ".icon.svelte-1mk6wi4{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.icon.svelte-1mk6wi4 > .button{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;overflow:hidden}.icon.svelte-1mk6wi4 > .button._disabled{cursor:not-allowed !important;opacity:0.2}.icon.svelte-1mk6wi4 svg{width:var(--width);height:var(--height);color:var(--color);stroke:var(--stroke);fill:var(--fill)}");
10460
10153
  }
10461
10154
 
10462
10155
  // (56:4) {#if svg}
@@ -10538,7 +10231,7 @@ function create_fragment$12(ctx) {
10538
10231
  c() {
10539
10232
  div = element("div");
10540
10233
  create_component(button.$$.fragment);
10541
- attr(div, "class", "icon svelte-1mkvcuo");
10234
+ attr(div, "class", "icon svelte-1mk6wi4");
10542
10235
  },
10543
10236
  m(target, anchor) {
10544
10237
  insert(target, div, anchor);
@@ -10647,7 +10340,7 @@ class IconElement extends SvelteComponent {
10647
10340
  /* src/components/CodeElement.svelte generated by Svelte v3.53.1 */
10648
10341
 
10649
10342
  function add_css$t(target) {
10650
- append_styles(target, "svelte-ymsb9l", ".codeElement.svelte-ymsb9l{box-sizing:border-box;margin:0px;padding:0px;width:100%;height:100%}");
10343
+ append_styles(target, "svelte-1ng2n51", ".codeElement.svelte-1ng2n51{box-sizing:border-box;margin:0px;padding:0px;width:100%;height:100%}");
10651
10344
  }
10652
10345
 
10653
10346
  function create_fragment$11(ctx) {
@@ -10673,7 +10366,7 @@ function create_fragment$11(ctx) {
10673
10366
  c() {
10674
10367
  div = element("div");
10675
10368
  if (switch_instance) create_component(switch_instance.$$.fragment);
10676
- attr(div, "class", "codeElement svelte-ymsb9l");
10369
+ attr(div, "class", "codeElement svelte-1ng2n51");
10677
10370
  attr(div, "style", /*style*/ ctx[3]);
10678
10371
  },
10679
10372
  m(target, anchor) {
@@ -10762,7 +10455,7 @@ class CodeElement extends SvelteComponent {
10762
10455
  /* src/components/Flex.svelte generated by Svelte v3.53.1 */
10763
10456
 
10764
10457
  function add_css$s(target) {
10765
- append_styles(target, "svelte-1e71ejc", ".flex.svelte-1e71ejc{display:flex}");
10458
+ append_styles(target, "svelte-9v2qdg", ".flex.svelte-9v2qdg{display:flex}");
10766
10459
  }
10767
10460
 
10768
10461
  function create_fragment$10(ctx) {
@@ -10776,7 +10469,7 @@ function create_fragment$10(ctx) {
10776
10469
  c() {
10777
10470
  div = element("div");
10778
10471
  if (default_slot) default_slot.c();
10779
- attr(div, "class", "flex svelte-1e71ejc");
10472
+ attr(div, "class", "flex svelte-9v2qdg");
10780
10473
  attr(div, "style", div_style_value = "width:" + /*width*/ ctx[1] + "; height:" + /*height*/ ctx[2] + "; flex-direction:" + /*direction*/ ctx[0] + "; " + /*_style*/ ctx[3]);
10781
10474
  },
10782
10475
  m(target, anchor) {
@@ -10873,7 +10566,7 @@ class Flex extends SvelteComponent {
10873
10566
  /* src/components/FlexItem.svelte generated by Svelte v3.53.1 */
10874
10567
 
10875
10568
  function add_css$r(target) {
10876
- append_styles(target, "svelte-1p0bk1x", ".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
10569
+ append_styles(target, "svelte-164ah5d", ".flex-item.svelte-164ah5d{max-width:100%;max-height:100%;position:relative;isolation:isolate}");
10877
10570
  }
10878
10571
 
10879
10572
  function create_fragment$$(ctx) {
@@ -10886,7 +10579,7 @@ function create_fragment$$(ctx) {
10886
10579
  c() {
10887
10580
  div = element("div");
10888
10581
  if (default_slot) default_slot.c();
10889
- attr(div, "class", "flex-item svelte-1p0bk1x");
10582
+ attr(div, "class", "flex-item svelte-164ah5d");
10890
10583
  attr(div, "style", /*style*/ ctx[0]);
10891
10584
  },
10892
10585
  m(target, anchor) {
@@ -11294,7 +10987,7 @@ class GridModalState extends SvelteComponent {
11294
10987
  /* src/components/TextBlock.svelte generated by Svelte v3.53.1 */
11295
10988
 
11296
10989
  function add_css$q(target) {
11297
- append_styles(target, "svelte-15pej1m", ".text-block.svelte-15pej1m.svelte-15pej1m{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:hidden}.text-block-inner.svelte-15pej1m.svelte-15pej1m{width:100%;height:auto}.text-direction-vertical.svelte-15pej1m.svelte-15pej1m{writing-mode:vertical-rl}.text-direction-vertical.svelte-15pej1m .text-block-inner.svelte-15pej1m{width:auto;height:100%}");
10990
+ append_styles(target, "svelte-akic2e", ".text-block.svelte-akic2e.svelte-akic2e{display:flex;position:relative;width:100%;height:100%;box-sizing:border-box;white-space:pre-wrap;overflow:hidden}.text-block-inner.svelte-akic2e.svelte-akic2e{width:100%;height:auto}.text-direction-vertical.svelte-akic2e.svelte-akic2e{writing-mode:vertical-rl}.text-direction-vertical.svelte-akic2e .text-block-inner.svelte-akic2e{width:auto;height:100%}");
11298
10991
  }
11299
10992
 
11300
10993
  function create_fragment$Z(ctx) {
@@ -11310,8 +11003,8 @@ function create_fragment$Z(ctx) {
11310
11003
  div1 = element("div");
11311
11004
  div0 = element("div");
11312
11005
  create_component(rendertext.$$.fragment);
11313
- attr(div0, "class", "text-block-inner svelte-15pej1m");
11314
- attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-15pej1m"));
11006
+ attr(div0, "class", "text-block-inner svelte-akic2e");
11007
+ attr(div1, "class", div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-akic2e"));
11315
11008
  attr(div1, "style", /*style*/ ctx[2]);
11316
11009
  },
11317
11010
  m(target, anchor) {
@@ -11325,7 +11018,7 @@ function create_fragment$Z(ctx) {
11325
11018
  if (dirty & /*text*/ 1) rendertext_changes.text = /*text*/ ctx[0];
11326
11019
  rendertext.$set(rendertext_changes);
11327
11020
 
11328
- if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-15pej1m"))) {
11021
+ if (!current || dirty & /*textDirection*/ 2 && div1_class_value !== (div1_class_value = "" + (null_to_empty(`text-block text-direction-${/*textDirection*/ ctx[1]}`) + " svelte-akic2e"))) {
11329
11022
  attr(div1, "class", div1_class_value);
11330
11023
  }
11331
11024
 
@@ -11403,7 +11096,7 @@ class TextBlock extends SvelteComponent {
11403
11096
  /* src/components/TextButtonBlock.svelte generated by Svelte v3.53.1 */
11404
11097
 
11405
11098
  function add_css$p(target) {
11406
- append_styles(target, "svelte-ff0k6r", ".text-button-block.svelte-ff0k6r{width:100%;height:100%;background-color:#000000;border-radius:4px}.text-button.svelte-ff0k6r{display:flex;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5}.text-button.svelte-ff0k6r:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-ff0k6r:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
11099
+ append_styles(target, "svelte-1c34p4n", ".text-button-block.svelte-1c34p4n{width:100%;height:100%;background-color:#000000;border-radius:4px}.text-button.svelte-1c34p4n{display:flex;width:100%;height:100%;background-color:transparent;border:none;box-shadow:transparent;box-sizing:border-box;cursor:pointer;transition:box-shadow 0.2s;color:#ffffff;font-size:14px;font-weight:bold;justify-content:center;align-items:center;padding:1px 6px 1px 6px;line-height:1.5}.text-button.svelte-1c34p4n:active{box-shadow:inset 0 0 100px 100px rgba(0, 0, 0, 0.3)}.text-button.svelte-1c34p4n:hover{box-shadow:inset 0 0 100px 100px rgba(255, 255, 255, 0.3)}");
11407
11100
  }
11408
11101
 
11409
11102
  function create_fragment$Y(ctx) {
@@ -11420,9 +11113,9 @@ function create_fragment$Y(ctx) {
11420
11113
  div = element("div");
11421
11114
  button = element("button");
11422
11115
  create_component(rendertext.$$.fragment);
11423
- attr(button, "class", "text-button svelte-ff0k6r");
11116
+ attr(button, "class", "text-button svelte-1c34p4n");
11424
11117
  attr(button, "style", /*_buttonStyle*/ ctx[1]);
11425
- attr(div, "class", "text-button-block svelte-ff0k6r");
11118
+ attr(div, "class", "text-button-block svelte-1c34p4n");
11426
11119
  attr(div, "style", /*_style*/ ctx[2]);
11427
11120
  },
11428
11121
  m(target, anchor) {
@@ -11528,7 +11221,7 @@ class TextButtonBlock extends SvelteComponent {
11528
11221
  /* src/components/ImageBlock.svelte generated by Svelte v3.53.1 */
11529
11222
 
11530
11223
  function add_css$o(target) {
11531
- append_styles(target, "svelte-1pdw891", ".image-block.svelte-1pdw891{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image.svelte-1pdw891{width:100%;height:100%}.transport.svelte-1pdw891:hover,.transport.svelte-1pdw891:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
11224
+ append_styles(target, "svelte-1jus6sx", ".image-block.svelte-1jus6sx{display:flex;position:relative;width:100%;height:100%;max-width:100%;max-height:100%;justify-content:center;align-items:center;white-space:nowrap;box-sizing:border-box;border-width:0px;border-style:solid;border-color:#000000;overflow:hidden}.image.svelte-1jus6sx{width:100%;height:100%}.transport.svelte-1jus6sx:hover,.transport.svelte-1jus6sx:focus{opacity:0.75;box-shadow:0 5px 16px rgba(0, 0, 0, 0.1), 0 8px 28px rgba(0, 0, 0, 0.16)}");
11532
11225
  }
11533
11226
 
11534
11227
  function create_fragment$X(ctx) {
@@ -11544,14 +11237,14 @@ function create_fragment$X(ctx) {
11544
11237
  c() {
11545
11238
  div = element("div");
11546
11239
  img = element("img");
11547
- attr(img, "class", "image svelte-1pdw891");
11240
+ attr(img, "class", "image svelte-1jus6sx");
11548
11241
  attr(img, "loading", "lazy");
11549
11242
  attr(img, "width", "auto");
11550
11243
  attr(img, "height", "auto");
11551
11244
  attr(img, "style", img_style_value = `${/*_imageStyle*/ ctx[4]} object-fit: ${/*objectFit*/ ctx[3]};`);
11552
11245
  if (!src_url_equal(img.src, img_src_value = /*src*/ ctx[0])) attr(img, "src", img_src_value);
11553
11246
  attr(img, "alt", /*alt*/ ctx[1]);
11554
- attr(div, "class", div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1pdw891"));
11247
+ attr(div, "class", div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1jus6sx"));
11555
11248
  attr(div, "style", /*_style*/ ctx[5]);
11556
11249
  },
11557
11250
  m(target, anchor) {
@@ -11576,7 +11269,7 @@ function create_fragment$X(ctx) {
11576
11269
  attr(img, "alt", /*alt*/ ctx[1]);
11577
11270
  }
11578
11271
 
11579
- if (dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1pdw891"))) {
11272
+ if (dirty & /*transport*/ 4 && div_class_value !== (div_class_value = "" + (null_to_empty('image-block' + (/*transport*/ ctx[2] ? ' transport' : '')) + " svelte-1jus6sx"))) {
11580
11273
  attr(div, "class", div_class_value);
11581
11274
  }
11582
11275
 
@@ -12028,7 +11721,7 @@ const AVATAR_SIZE_STYLES = {
12028
11721
  /* src/components-flex/avatar/Avatar.svelte generated by Svelte v3.53.1 */
12029
11722
 
12030
11723
  function add_css$n(target) {
12031
- append_styles(target, "svelte-1krsdyx", ".avatar.svelte-1krsdyx{display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:0}");
11724
+ append_styles(target, "svelte-apww0t", ".avatar.svelte-apww0t{display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:0}");
12032
11725
  }
12033
11726
 
12034
11727
  // (42:0) <svelte:element {...attributes} this={element} class="avatar" style={style} data-layer-id={layerId} on:click={handleClick} >
@@ -12058,7 +11751,7 @@ function create_dynamic_element$b(ctx) {
12058
11751
  svelte_element = element(/*element*/ ctx[5]);
12059
11752
  img = element("img");
12060
11753
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
12061
- attr(img, "class", "avatar-image svelte-1krsdyx");
11754
+ attr(img, "class", "avatar-image svelte-apww0t");
12062
11755
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
12063
11756
  attr(img, "style", /*imgStyle*/ ctx[2]);
12064
11757
 
@@ -12068,7 +11761,7 @@ function create_dynamic_element$b(ctx) {
12068
11761
  set_attributes(svelte_element, svelte_element_data);
12069
11762
  }
12070
11763
 
12071
- toggle_class(svelte_element, "svelte-1krsdyx", true);
11764
+ toggle_class(svelte_element, "svelte-apww0t", true);
12072
11765
  },
12073
11766
  m(target, anchor) {
12074
11767
  insert(target, svelte_element, anchor);
@@ -12105,7 +11798,7 @@ function create_dynamic_element$b(ctx) {
12105
11798
  set_attributes(svelte_element, svelte_element_data);
12106
11799
  }
12107
11800
 
12108
- toggle_class(svelte_element, "svelte-1krsdyx", true);
11801
+ toggle_class(svelte_element, "svelte-apww0t", true);
12109
11802
  },
12110
11803
  d(detaching) {
12111
11804
  if (detaching) detach(svelte_element);
@@ -13910,7 +13603,7 @@ const ICON_VARIANTS = {
13910
13603
  /* src/components-flex/icon/Icon.svelte generated by Svelte v3.53.1 */
13911
13604
 
13912
13605
  function add_css$m(target) {
13913
- append_styles(target, "svelte-19rssou", ".icon.svelte-19rssou{display:flex;align-items:center;overflow:hidden;width:auto;cursor:pointer;text-decoration:none}");
13606
+ append_styles(target, "svelte-mut6o2", ".icon.svelte-mut6o2{display:flex;align-items:center;overflow:hidden;width:auto;cursor:pointer;text-decoration:none}");
13914
13607
  }
13915
13608
 
13916
13609
  // (24:0) <svelte:element {...attributes} this={element} class="icon" style={style} data-layer-id={layerId} on:click={handleClick} >
@@ -13958,7 +13651,7 @@ function create_dynamic_element$a(ctx) {
13958
13651
  set_attributes(svelte_element, svelte_element_data);
13959
13652
  }
13960
13653
 
13961
- toggle_class(svelte_element, "svelte-19rssou", true);
13654
+ toggle_class(svelte_element, "svelte-mut6o2", true);
13962
13655
  },
13963
13656
  m(target, anchor) {
13964
13657
  insert(target, svelte_element, anchor);
@@ -14011,7 +13704,7 @@ function create_dynamic_element$a(ctx) {
14011
13704
  set_attributes(svelte_element, svelte_element_data);
14012
13705
  }
14013
13706
 
14014
- toggle_class(svelte_element, "svelte-19rssou", true);
13707
+ toggle_class(svelte_element, "svelte-mut6o2", true);
14015
13708
  },
14016
13709
  i(local) {
14017
13710
  if (current) return;
@@ -14309,7 +14002,7 @@ function darkenColor(color, percent) {
14309
14002
  /* src/components-flex/button/Button.svelte generated by Svelte v3.53.1 */
14310
14003
 
14311
14004
  function add_css$l(target) {
14312
- append_styles(target, "svelte-o2gomt", ".button.svelte-o2gomt{display:inline-flex;gap:0.8em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;color:var(--color);border-color:var(--border-color);background-color:var(--bg-color)}.button.svelte-o2gomt:hover{background-color:var(--hover-bg-color);border-color:var(--hover-border-color)}.button-icon.svelte-o2gomt{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
14005
+ append_styles(target, "svelte-brd6e9", ".button.svelte-brd6e9{display:inline-flex;gap:0.8em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;color:var(--color);border-color:var(--border-color);background-color:var(--bg-color)}.button.svelte-brd6e9:hover{background-color:var(--hover-bg-color);border-color:var(--hover-border-color)}.button-icon.svelte-brd6e9{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
14313
14006
  }
14314
14007
 
14315
14008
  // (91:2) {#if props.isIcon && props.iconVariant}
@@ -14333,7 +14026,7 @@ function create_if_block$9(ctx) {
14333
14026
  c() {
14334
14027
  div = element("div");
14335
14028
  create_component(icon.$$.fragment);
14336
- attr(div, "class", "button-icon svelte-o2gomt");
14029
+ attr(div, "class", "button-icon svelte-brd6e9");
14337
14030
  },
14338
14031
  m(target, anchor) {
14339
14032
  insert(target, div, anchor);
@@ -14409,7 +14102,7 @@ function create_dynamic_element$9(ctx) {
14409
14102
  set_attributes(svelte_element, svelte_element_data);
14410
14103
  }
14411
14104
 
14412
- toggle_class(svelte_element, "svelte-o2gomt", true);
14105
+ toggle_class(svelte_element, "svelte-brd6e9", true);
14413
14106
  },
14414
14107
  m(target, anchor) {
14415
14108
  insert(target, svelte_element, anchor);
@@ -14464,7 +14157,7 @@ function create_dynamic_element$9(ctx) {
14464
14157
  set_attributes(svelte_element, svelte_element_data);
14465
14158
  }
14466
14159
 
14467
- toggle_class(svelte_element, "svelte-o2gomt", true);
14160
+ toggle_class(svelte_element, "svelte-brd6e9", true);
14468
14161
  },
14469
14162
  i(local) {
14470
14163
  if (current) return;
@@ -14739,7 +14432,7 @@ const BUTTON_OUTLINED_WRAP_STYLES = {
14739
14432
  /* src/components-flex/button-outlined/ButtonOutlined.svelte generated by Svelte v3.53.1 */
14740
14433
 
14741
14434
  function add_css$k(target) {
14742
- append_styles(target, "svelte-38fju1", ".button-outlined.svelte-38fju1{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:var(--bg-color)}.button-outlined.svelte-38fju1:hover{background-color:var(--hover-bg-color)}.button-outlined-icon.svelte-38fju1{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
14435
+ append_styles(target, "svelte-ypshn1", ".button-outlined.svelte-ypshn1{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:var(--bg-color)}.button-outlined.svelte-ypshn1:hover{background-color:var(--hover-bg-color)}.button-outlined-icon.svelte-ypshn1{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em;margin-bottom:0.1em}");
14743
14436
  }
14744
14437
 
14745
14438
  // (53:2) {#if props.isIcon && props.iconVariant}
@@ -14763,7 +14456,7 @@ function create_if_block$8(ctx) {
14763
14456
  c() {
14764
14457
  div = element("div");
14765
14458
  create_component(icon.$$.fragment);
14766
- attr(div, "class", "button-outlined-icon svelte-38fju1");
14459
+ attr(div, "class", "button-outlined-icon svelte-ypshn1");
14767
14460
  },
14768
14461
  m(target, anchor) {
14769
14462
  insert(target, div, anchor);
@@ -14830,7 +14523,7 @@ function create_dynamic_element$8(ctx) {
14830
14523
  t0 = space();
14831
14524
  span = element("span");
14832
14525
  t1 = text(t1_value);
14833
- attr(span, "class", "button-outlined-label svelte-38fju1");
14526
+ attr(span, "class", "button-outlined-label svelte-ypshn1");
14834
14527
 
14835
14528
  if ((/-/).test(/*element*/ ctx[4])) {
14836
14529
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -14838,7 +14531,7 @@ function create_dynamic_element$8(ctx) {
14838
14531
  set_attributes(svelte_element, svelte_element_data);
14839
14532
  }
14840
14533
 
14841
- toggle_class(svelte_element, "svelte-38fju1", true);
14534
+ toggle_class(svelte_element, "svelte-ypshn1", true);
14842
14535
  },
14843
14536
  m(target, anchor) {
14844
14537
  insert(target, svelte_element, anchor);
@@ -14892,7 +14585,7 @@ function create_dynamic_element$8(ctx) {
14892
14585
  set_attributes(svelte_element, svelte_element_data);
14893
14586
  }
14894
14587
 
14895
- toggle_class(svelte_element, "svelte-38fju1", true);
14588
+ toggle_class(svelte_element, "svelte-ypshn1", true);
14896
14589
  },
14897
14590
  i(local) {
14898
14591
  if (current) return;
@@ -15084,7 +14777,7 @@ const getButtonTextThemeStyles = getPropStyles(callback$2);
15084
14777
  /* src/components-flex/button-text/ButtonText.svelte generated by Svelte v3.53.1 */
15085
14778
 
15086
14779
  function add_css$j(target) {
15087
- append_styles(target, "svelte-1xgvp8r", ".button-text.svelte-1xgvp8r{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:rgba(255, 255, 255, 0)}.button-text.svelte-1xgvp8r:hover{background-color:var(--hover-bg-color)}.button-text-icon.svelte-1xgvp8r{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
14780
+ append_styles(target, "svelte-lted9r", ".button-text.svelte-lted9r{display:inline-flex;gap:0.65em;align-items:center;justify-content:center;text-decoration:none;outline:0;border:0;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;background-color:rgba(255, 255, 255, 0)}.button-text.svelte-lted9r:hover{background-color:var(--hover-bg-color)}.button-text-icon.svelte-lted9r{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
15088
14781
  }
15089
14782
 
15090
14783
  // (49:2) {#if props.isIcon && props.iconVariant}
@@ -15108,7 +14801,7 @@ function create_if_block$7(ctx) {
15108
14801
  c() {
15109
14802
  div = element("div");
15110
14803
  create_component(icon.$$.fragment);
15111
- attr(div, "class", "button-text-icon svelte-1xgvp8r");
14804
+ attr(div, "class", "button-text-icon svelte-lted9r");
15112
14805
  },
15113
14806
  m(target, anchor) {
15114
14807
  insert(target, div, anchor);
@@ -15175,7 +14868,7 @@ function create_dynamic_element$7(ctx) {
15175
14868
  t0 = space();
15176
14869
  span = element("span");
15177
14870
  t1 = text(t1_value);
15178
- attr(span, "class", "button-text-label svelte-1xgvp8r");
14871
+ attr(span, "class", "button-text-label svelte-lted9r");
15179
14872
 
15180
14873
  if ((/-/).test(/*element*/ ctx[4])) {
15181
14874
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -15183,7 +14876,7 @@ function create_dynamic_element$7(ctx) {
15183
14876
  set_attributes(svelte_element, svelte_element_data);
15184
14877
  }
15185
14878
 
15186
- toggle_class(svelte_element, "svelte-1xgvp8r", true);
14879
+ toggle_class(svelte_element, "svelte-lted9r", true);
15187
14880
  },
15188
14881
  m(target, anchor) {
15189
14882
  insert(target, svelte_element, anchor);
@@ -15237,7 +14930,7 @@ function create_dynamic_element$7(ctx) {
15237
14930
  set_attributes(svelte_element, svelte_element_data);
15238
14931
  }
15239
14932
 
15240
- toggle_class(svelte_element, "svelte-1xgvp8r", true);
14933
+ toggle_class(svelte_element, "svelte-lted9r", true);
15241
14934
  },
15242
14935
  i(local) {
15243
14936
  if (current) return;
@@ -15385,7 +15078,7 @@ const BUTTON_TEXT_THEME = {
15385
15078
  /* src/components-flex/close-button/CloseButton.svelte generated by Svelte v3.53.1 */
15386
15079
 
15387
15080
  function add_css$i(target) {
15388
- append_styles(target, "svelte-3mvsv6", ".close-button.svelte-3mvsv6.svelte-3mvsv6{display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.close-button.svelte-3mvsv6 svg.svelte-3mvsv6{transition:transform 0.12s}.close-button.svelte-3mvsv6:hover svg.svelte-3mvsv6{transform:rotate(90deg)}.close-button-order-one.svelte-3mvsv6.svelte-3mvsv6{order:1}.close-button-order-two.svelte-3mvsv6.svelte-3mvsv6{order:2}");
15081
+ append_styles(target, "svelte-3133h2", ".close-button.svelte-3133h2.svelte-3133h2{display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.close-button.svelte-3133h2 svg.svelte-3133h2{transition:transform 0.12s}.close-button.svelte-3133h2:hover svg.svelte-3133h2{transform:rotate(90deg)}.close-button-order-one.svelte-3133h2.svelte-3133h2{order:1}.close-button-order-two.svelte-3133h2.svelte-3133h2{order:2}");
15389
15082
  }
15390
15083
 
15391
15084
  // (90:2) {#if hasLabel}
@@ -15401,7 +15094,7 @@ function create_if_block$6(ctx) {
15401
15094
 
15402
15095
  attr(span, "class", "close-button-label " + (/*isLeftLabelPlacement*/ ctx[10]
15403
15096
  ? 'close-button-order-one'
15404
- : '') + " svelte-3mvsv6");
15097
+ : '') + " svelte-3133h2");
15405
15098
  },
15406
15099
  m(target, anchor) {
15407
15100
  insert(target, span, anchor);
@@ -15461,7 +15154,7 @@ function create_dynamic_element$6(ctx) {
15461
15154
  set_style(svg, "width", "100%");
15462
15155
  set_style(svg, "height", "100%");
15463
15156
  attr(svg, "fill", /*color*/ ctx[8]);
15464
- attr(svg, "class", "svelte-3mvsv6");
15157
+ attr(svg, "class", "svelte-3133h2");
15465
15158
  attr(span, "style", /*iconStyle*/ ctx[1]);
15466
15159
 
15467
15160
  if ((/-/).test(/*element*/ ctx[6])) {
@@ -15470,7 +15163,7 @@ function create_dynamic_element$6(ctx) {
15470
15163
  set_attributes(svelte_element, svelte_element_data);
15471
15164
  }
15472
15165
 
15473
- toggle_class(svelte_element, "svelte-3mvsv6", true);
15166
+ toggle_class(svelte_element, "svelte-3133h2", true);
15474
15167
  },
15475
15168
  m(target, anchor) {
15476
15169
  insert(target, svelte_element, anchor);
@@ -15516,7 +15209,7 @@ function create_dynamic_element$6(ctx) {
15516
15209
  set_attributes(svelte_element, svelte_element_data);
15517
15210
  }
15518
15211
 
15519
- toggle_class(svelte_element, "svelte-3mvsv6", true);
15212
+ toggle_class(svelte_element, "svelte-3133h2", true);
15520
15213
  },
15521
15214
  d(detaching) {
15522
15215
  if (detaching) detach(svelte_element);
@@ -15753,7 +15446,7 @@ const IMAGE_ROUND_STYLES = {
15753
15446
  /* src/components-flex/image/Image.svelte generated by Svelte v3.53.1 */
15754
15447
 
15755
15448
  function add_css$h(target) {
15756
- append_styles(target, "svelte-rewdem", ".image.svelte-rewdem{max-width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.image-img.svelte-rewdem{vertical-align:top;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}");
15449
+ append_styles(target, "svelte-1xwoqy", ".image.svelte-1xwoqy{max-width:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}.image-img.svelte-1xwoqy{vertical-align:top;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}");
15757
15450
  }
15758
15451
 
15759
15452
  // (26:0) <svelte:element this={element} {...attributes} class="image" {style} data-layer-id={layerId} on:click={handleClick} >
@@ -15784,7 +15477,7 @@ function create_dynamic_element$5(ctx) {
15784
15477
  img = element("img");
15785
15478
  if (!src_url_equal(img.src, img_src_value = /*props*/ ctx[0].image)) attr(img, "src", img_src_value);
15786
15479
  attr(img, "alt", img_alt_value = /*props*/ ctx[0].alt);
15787
- attr(img, "class", "image-img svelte-rewdem");
15480
+ attr(img, "class", "image-img svelte-1xwoqy");
15788
15481
 
15789
15482
  if ((/-/).test(/*element*/ ctx[4])) {
15790
15483
  set_custom_element_data_map(svelte_element, svelte_element_data);
@@ -15792,7 +15485,7 @@ function create_dynamic_element$5(ctx) {
15792
15485
  set_attributes(svelte_element, svelte_element_data);
15793
15486
  }
15794
15487
 
15795
- toggle_class(svelte_element, "svelte-rewdem", true);
15488
+ toggle_class(svelte_element, "svelte-1xwoqy", true);
15796
15489
  },
15797
15490
  m(target, anchor) {
15798
15491
  insert(target, svelte_element, anchor);
@@ -15825,7 +15518,7 @@ function create_dynamic_element$5(ctx) {
15825
15518
  set_attributes(svelte_element, svelte_element_data);
15826
15519
  }
15827
15520
 
15828
- toggle_class(svelte_element, "svelte-rewdem", true);
15521
+ toggle_class(svelte_element, "svelte-1xwoqy", true);
15829
15522
  },
15830
15523
  d(detaching) {
15831
15524
  if (detaching) detach(svelte_element);
@@ -15940,7 +15633,7 @@ const IMAGE_ASPECT_VARIANTS = {
15940
15633
  /* src/components-flex/layout/Layout.svelte generated by Svelte v3.53.1 */
15941
15634
 
15942
15635
  function add_css$g(target) {
15943
- append_styles(target, "svelte-139vx15", ".layout.svelte-139vx15{text-decoration:none;color:inherit}.layout[data-clickable=true].svelte-139vx15{cursor:pointer}.layout[data-clickable=true].svelte-139vx15:hover{opacity:0.8}");
15636
+ append_styles(target, "svelte-1tjo4al", ".layout.svelte-1tjo4al{text-decoration:none;color:inherit}.layout[data-clickable=true].svelte-1tjo4al{cursor:pointer}.layout[data-clickable=true].svelte-1tjo4al:hover{opacity:0.8}");
15944
15637
  }
15945
15638
 
15946
15639
  // (28:0) <svelte:element {...attributes} this="div" class="layout" style={style} data-layer-id={layerId} on:click={handleClick} >
@@ -15976,7 +15669,7 @@ function create_dynamic_element$4(ctx) {
15976
15669
  set_attributes(svelte_element, svelte_element_data);
15977
15670
  }
15978
15671
 
15979
- toggle_class(svelte_element, "svelte-139vx15", true);
15672
+ toggle_class(svelte_element, "svelte-1tjo4al", true);
15980
15673
  },
15981
15674
  m(target, anchor) {
15982
15675
  insert(target, svelte_element, anchor);
@@ -16021,7 +15714,7 @@ function create_dynamic_element$4(ctx) {
16021
15714
  set_attributes(svelte_element, svelte_element_data);
16022
15715
  }
16023
15716
 
16024
- toggle_class(svelte_element, "svelte-139vx15", true);
15717
+ toggle_class(svelte_element, "svelte-1tjo4al", true);
16025
15718
  },
16026
15719
  i(local) {
16027
15720
  if (current) return;
@@ -16145,7 +15838,7 @@ const LAYOUT_JUSTIFY = ['flex-start', 'center', 'flex-end', 'space-between'];
16145
15838
  /* src/components-flex/slider/Slider.svelte generated by Svelte v3.53.1 */
16146
15839
 
16147
15840
  function add_css$f(target) {
16148
- append_styles(target, "svelte-1slel1d", ".slider-list.svelte-1slel1d{-webkit-user-drag:none;margin:0;padding:0;list-style:none}");
15841
+ append_styles(target, "svelte-1k4xkut", ".slider-list.svelte-1k4xkut{-webkit-user-drag:none;margin:0;padding:0;list-style:none}");
16149
15842
  }
16150
15843
 
16151
15844
  function get_each_context$1(ctx, list, i) {
@@ -16247,12 +15940,12 @@ function create_fragment$j(ctx) {
16247
15940
  each_blocks[i].c();
16248
15941
  }
16249
15942
 
16250
- attr(ul, "class", "slider-list svelte-1slel1d");
15943
+ attr(ul, "class", "slider-list svelte-1k4xkut");
16251
15944
  attr(ul, "style", ul_style_value = [/*containerStyle*/ ctx[5], /*overrideStyle*/ ctx[1]].join(' '));
16252
15945
  attr(div0, "style", /*indicatorListStyle*/ ctx[4]);
16253
15946
  attr(div1, "data-layer-id", /*layerId*/ ctx[0]);
16254
15947
  attr(div1, "style", /*style*/ ctx[6]);
16255
- attr(div1, "class", "slider svelte-1slel1d");
15948
+ attr(div1, "class", "slider svelte-1k4xkut");
16256
15949
  },
16257
15950
  m(target, anchor) {
16258
15951
  insert(target, div1, anchor);
@@ -16601,7 +16294,7 @@ class Slider extends SvelteComponent {
16601
16294
  /* src/components-flex/slider/SliderItem.svelte generated by Svelte v3.53.1 */
16602
16295
 
16603
16296
  function add_css$e(target) {
16604
- append_styles(target, "svelte-1amglxo", ".slider-item.svelte-1amglxo{overflow:hidden}.slider-item-inner.svelte-1amglxo{text-decoration:none;background:none;border:0;margin:0;padding:0;color:inherit;-webkit-user-drag:none;user-select:none}");
16297
+ append_styles(target, "svelte-j5pon4", ".slider-item.svelte-j5pon4{overflow:hidden}.slider-item-inner.svelte-j5pon4{text-decoration:none;background:none;border:0;margin:0;padding:0;color:inherit;-webkit-user-drag:none;user-select:none}");
16605
16298
  }
16606
16299
 
16607
16300
  // (10:2) <svelte:element {...attributes} this={element} class="slider-item-inner" on:click={handleClick} >
@@ -16630,7 +16323,7 @@ function create_dynamic_element$3(ctx) {
16630
16323
  set_attributes(svelte_element, svelte_element_data);
16631
16324
  }
16632
16325
 
16633
- toggle_class(svelte_element, "svelte-1amglxo", true);
16326
+ toggle_class(svelte_element, "svelte-j5pon4", true);
16634
16327
  },
16635
16328
  m(target, anchor) {
16636
16329
  insert(target, svelte_element, anchor);
@@ -16670,7 +16363,7 @@ function create_dynamic_element$3(ctx) {
16670
16363
  set_attributes(svelte_element, svelte_element_data);
16671
16364
  }
16672
16365
 
16673
- toggle_class(svelte_element, "svelte-1amglxo", true);
16366
+ toggle_class(svelte_element, "svelte-j5pon4", true);
16674
16367
  },
16675
16368
  i(local) {
16676
16369
  if (current) return;
@@ -16701,7 +16394,7 @@ function create_fragment$i(ctx) {
16701
16394
  li = element("li");
16702
16395
  if (svelte_element) svelte_element.c();
16703
16396
  attr(li, "data-layer-id", /*layerId*/ ctx[0]);
16704
- attr(li, "class", "slider-item svelte-1amglxo");
16397
+ attr(li, "class", "slider-item svelte-j5pon4");
16705
16398
  },
16706
16399
  m(target, anchor) {
16707
16400
  insert(target, li, anchor);
@@ -16858,7 +16551,7 @@ const TEXT_VARIANTS = {
16858
16551
  /* src/components-flex/text/Text.svelte generated by Svelte v3.53.1 */
16859
16552
 
16860
16553
  function add_css$d(target) {
16861
- append_styles(target, "svelte-vifn7y", ".text.svelte-vifn7y{margin:0;word-break:break-all;text-decoration:none}");
16554
+ append_styles(target, "svelte-14kt34i", ".text.svelte-14kt34i{margin:0;word-break:break-all;text-decoration:none}");
16862
16555
  }
16863
16556
 
16864
16557
  function create_fragment$h(ctx) {
@@ -16867,7 +16560,7 @@ function create_fragment$h(ctx) {
16867
16560
  return {
16868
16561
  c() {
16869
16562
  p = element("p");
16870
- attr(p, "class", "text svelte-vifn7y");
16563
+ attr(p, "class", "text svelte-14kt34i");
16871
16564
  attr(p, "data-layer-id", /*layerId*/ ctx[0]);
16872
16565
  attr(p, "style", /*style*/ ctx[1]);
16873
16566
  },
@@ -16985,7 +16678,7 @@ class Text extends SvelteComponent {
16985
16678
  /* src/components-flex/rich-text/RichText.svelte generated by Svelte v3.53.1 */
16986
16679
 
16987
16680
  function add_css$c(target) {
16988
- append_styles(target, "svelte-dxr423", ".rich-text.svelte-dxr423 p{margin:0;word-break:break-all;text-decoration:none}.rich-text.svelte-dxr423 p + p{margin-top:0.75em}");
16681
+ append_styles(target, "svelte-mq7h73", ".rich-text.svelte-mq7h73 p{margin:0;word-break:break-all;text-decoration:none}.rich-text.svelte-mq7h73 p + p{margin-top:0.75em}");
16989
16682
  }
16990
16683
 
16991
16684
  function create_fragment$g(ctx) {
@@ -16995,7 +16688,7 @@ function create_fragment$g(ctx) {
16995
16688
  return {
16996
16689
  c() {
16997
16690
  div = element("div");
16998
- attr(div, "class", "rich-text svelte-dxr423");
16691
+ attr(div, "class", "rich-text svelte-mq7h73");
16999
16692
  attr(div, "style", /*style*/ ctx[2]);
17000
16693
  attr(div, "data-layer-id", /*layerId*/ ctx[1]);
17001
16694
  },
@@ -17168,7 +16861,7 @@ const getTextLinkThemeStyles = getPropStyles(callback);
17168
16861
  /* src/components-flex/text-link/TextLink.svelte generated by Svelte v3.53.1 */
17169
16862
 
17170
16863
  function add_css$b(target) {
17171
- append_styles(target, "svelte-dc9m5n", ".link.svelte-dc9m5n{-webkit-appearance:none;border:0;background:none;padding:0;display:inline-flex}.link.svelte-dc9m5n,.link.svelte-dc9m5n:visited,.link.svelte-dc9m5n:link{color:var(--color)}.link.svelte-dc9m5n:hover{color:var(--hover-color)}.link.svelte-dc9m5n:active{color:var(--active-color)}.link.underline-hover-on.svelte-dc9m5n{text-decoration:none}.link.underline-hover-on.svelte-dc9m5n:hover{text-decoration:underline}.link.underline-hover-off.svelte-dc9m5n{text-decoration:underline}.link.underline-hover-off.svelte-dc9m5n:hover{text-decoration:none}.link.underline-on.svelte-dc9m5n{text-decoration:underline}.link.underline-off.svelte-dc9m5n{text-decoration:none}");
16864
+ append_styles(target, "svelte-1qyhpm7", ".link.svelte-1qyhpm7{-webkit-appearance:none;border:0;background:none;padding:0;display:inline-flex}.link.svelte-1qyhpm7,.link.svelte-1qyhpm7:visited,.link.svelte-1qyhpm7:link{color:var(--color)}.link.svelte-1qyhpm7:hover{color:var(--hover-color)}.link.svelte-1qyhpm7:active{color:var(--active-color)}.link.underline-hover-on.svelte-1qyhpm7{text-decoration:none}.link.underline-hover-on.svelte-1qyhpm7:hover{text-decoration:underline}.link.underline-hover-off.svelte-1qyhpm7{text-decoration:underline}.link.underline-hover-off.svelte-1qyhpm7:hover{text-decoration:none}.link.underline-on.svelte-1qyhpm7{text-decoration:underline}.link.underline-off.svelte-1qyhpm7{text-decoration:none}");
17172
16865
  }
17173
16866
 
17174
16867
  // (81:2) {#if props.isIcon && props.iconVariant}
@@ -17261,7 +16954,7 @@ function create_dynamic_element$2(ctx) {
17261
16954
  set_attributes(svelte_element, svelte_element_data);
17262
16955
  }
17263
16956
 
17264
- toggle_class(svelte_element, "svelte-dc9m5n", true);
16957
+ toggle_class(svelte_element, "svelte-1qyhpm7", true);
17265
16958
  },
17266
16959
  m(target, anchor) {
17267
16960
  insert(target, svelte_element, anchor);
@@ -17314,7 +17007,7 @@ function create_dynamic_element$2(ctx) {
17314
17007
  set_attributes(svelte_element, svelte_element_data);
17315
17008
  }
17316
17009
 
17317
- toggle_class(svelte_element, "svelte-dc9m5n", true);
17010
+ toggle_class(svelte_element, "svelte-1qyhpm7", true);
17318
17011
  },
17319
17012
  i(local) {
17320
17013
  if (current) return;
@@ -17497,7 +17190,7 @@ const TEXT_LINK_UNDERLINE = {
17497
17190
  /* src/components-flex/background-overlay/BackgroundOverlay.svelte generated by Svelte v3.53.1 */
17498
17191
 
17499
17192
  function add_css$a(target) {
17500
- append_styles(target, "svelte-18nkdjz", ".v2-background.svelte-18nkdjz{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
17193
+ append_styles(target, "svelte-ed4ktn", ".v2-background.svelte-ed4ktn{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3);z-index:2147483646}");
17501
17194
  }
17502
17195
 
17503
17196
  // (14:0) {#if backgroundOverlay}
@@ -17510,7 +17203,7 @@ function create_if_block$4(ctx) {
17510
17203
  return {
17511
17204
  c() {
17512
17205
  div = element("div");
17513
- attr(div, "class", div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-18nkdjz"));
17206
+ attr(div, "class", div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-ed4ktn"));
17514
17207
  },
17515
17208
  m(target, anchor) {
17516
17209
  insert(target, div, anchor);
@@ -17521,7 +17214,7 @@ function create_if_block$4(ctx) {
17521
17214
  }
17522
17215
  },
17523
17216
  p(ctx, dirty) {
17524
- if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-18nkdjz"))) {
17217
+ if (dirty & /*className*/ 2 && div_class_value !== (div_class_value = "" + (null_to_empty(['v2-background', /*className*/ ctx[1] || ''].join(' ')) + " svelte-ed4ktn"))) {
17525
17218
  attr(div, "class", div_class_value);
17526
17219
  }
17527
17220
  },
@@ -17593,7 +17286,7 @@ class BackgroundOverlay extends SvelteComponent {
17593
17286
  /* src/components-flex/modal/Modal.svelte generated by Svelte v3.53.1 */
17594
17287
 
17595
17288
  function add_css$9(target) {
17596
- append_styles(target, "svelte-45ue06", "*{box-sizing:border-box}.modal.svelte-45ue06{position:fixed;z-index:2147483647;display:flex}.modal.svelte-45ue06 > .button{flex:auto;display:flex}@media screen and (min-width: 641px){.modal-bp.svelte-45ue06{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-45ue06{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
17289
+ append_styles(target, "svelte-15b58xm", "*{box-sizing:border-box}.modal.svelte-15b58xm{position:fixed;z-index:2147483647;display:flex}.modal.svelte-15b58xm > .button{flex:auto;display:flex}@media screen and (min-width: 641px){.modal-bp.svelte-15b58xm{height:var(--modal-bp-height-pc) !important;width:var(--modal-bp-width-pc) !important;top:var(--modal-bp-top-pc) !important;left:var(--modal-bp-left-pc) !important;bottom:var(--modal-bp-bottom-pc) !important;right:var(--modal-bp-right-pc) !important;transform:var(--modal-bp-transform-pc);margin:var(--modal-bp-margin-pc) !important}.background-bp-pc{display:block}.background-bp-sp{display:none}}@media screen and (max-width: 640px){.modal-bp.svelte-15b58xm{height:var(--modal-bp-height-sp) !important;width:var(--modal-bp-width-sp) !important;top:var(--modal-bp-top-sp) !important;left:var(--modal-bp-left-sp) !important;bottom:var(--modal-bp-bottom-sp) !important;right:var(--modal-bp-right-sp) !important;transform:var(--modal-bp-transform-sp);margin:var(--modal-bp-margin-sp) !important}.background-bp-pc{display:none}.background-bp-sp{display:block}}");
17597
17290
  }
17598
17291
 
17599
17292
  // (219:0) {:else}
@@ -17734,7 +17427,7 @@ function create_if_block$3(ctx) {
17734
17427
  c() {
17735
17428
  div = element("div");
17736
17429
  if (default_slot) default_slot.c();
17737
- attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-45ue06"));
17430
+ attr(div, "class", div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"));
17738
17431
  attr(div, "role", "dialog");
17739
17432
  attr(div, "aria-modal", "true");
17740
17433
  attr(div, "data-layer-id", /*layerId*/ ctx[2]);
@@ -17768,7 +17461,7 @@ function create_if_block$3(ctx) {
17768
17461
  }
17769
17462
  }
17770
17463
 
17771
- if (!current || dirty & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-45ue06"))) {
17464
+ if (!current || dirty & /*useBreakPoint*/ 1 && div_class_value !== (div_class_value = "" + (null_to_empty(['modal', /*useBreakPoint*/ ctx[0] ? 'modal-bp' : ''].join(' ')) + " svelte-15b58xm"))) {
17772
17465
  attr(div, "class", div_class_value);
17773
17466
  }
17774
17467
 
@@ -18226,7 +17919,7 @@ class Modal extends SvelteComponent {
18226
17919
  /* src/components-flex/code/Code.svelte generated by Svelte v3.53.1 */
18227
17920
 
18228
17921
  function add_css$8(target) {
18229
- append_styles(target, "svelte-igivoz", ".code.svelte-igivoz{flex-grow:1;flex-shrink:0;align-self:stretch}");
17922
+ append_styles(target, "svelte-jviwnb", ".code.svelte-jviwnb{flex-grow:1;flex-shrink:0;align-self:stretch}");
18230
17923
  }
18231
17924
 
18232
17925
  function create_fragment$c(ctx) {
@@ -18236,7 +17929,7 @@ function create_fragment$c(ctx) {
18236
17929
  return {
18237
17930
  c() {
18238
17931
  div = element("div");
18239
- attr(div, "class", "code svelte-igivoz");
17932
+ attr(div, "class", "code svelte-jviwnb");
18240
17933
  attr(div, "data-layer-id", /*layerId*/ ctx[1]);
18241
17934
  },
18242
17935
  m(target, anchor) {
@@ -18318,7 +18011,7 @@ const LIST_ITEM_CONTEXT_KEY = 'ListItemContext';
18318
18011
  /* src/components-flex/list/List.svelte generated by Svelte v3.53.1 */
18319
18012
 
18320
18013
  function add_css$7(target) {
18321
- append_styles(target, "svelte-v2vy6p", ".list.svelte-v2vy6p{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width:0;--border-style:solit;--border-color:rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color)}");
18014
+ append_styles(target, "svelte-5g0mcl", ".list.svelte-5g0mcl{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;--border-width:0;--border-style:solit;--border-color:rgba(255, 255, 255, 0);border-top-width:var(--border-width);border-top-style:var(--border-style);border-top-color:var(--border-color);border-bottom-width:var(--border-width);border-bottom-style:var(--border-style);border-bottom-color:var(--border-color)}");
18322
18015
  }
18323
18016
 
18324
18017
  function create_fragment$b(ctx) {
@@ -18332,7 +18025,7 @@ function create_fragment$b(ctx) {
18332
18025
  ul = element("ul");
18333
18026
  if (default_slot) default_slot.c();
18334
18027
  attr(ul, "data-layer-id", /*layerId*/ ctx[0]);
18335
- attr(ul, "class", "list svelte-v2vy6p");
18028
+ attr(ul, "class", "list svelte-5g0mcl");
18336
18029
  attr(ul, "style", /*style*/ ctx[1]);
18337
18030
  },
18338
18031
  m(target, anchor) {
@@ -18455,7 +18148,7 @@ class List extends SvelteComponent {
18455
18148
  /* src/components-flex/list/ListItem.svelte generated by Svelte v3.53.1 */
18456
18149
 
18457
18150
  function add_css$6(target) {
18458
- append_styles(target, "svelte-1223veg", ".list-item.svelte-1223veg{margin:0;padding:0}.list-item-inner.svelte-1223veg{display:flex;align-items:center;width:100%;text-decoration:none;color:inherit}.list-item-inner.svelte-1223veg:hover{opacity:0.8}.list-item.svelte-1223veg:not(:first-child){border-top-width:var(--list-item-border-width);border-top-style:var(--list-item-border-style);border-top-color:var(--list-item-border-color)}");
18151
+ append_styles(target, "svelte-1e6dn58", ".list-item.svelte-1e6dn58{margin:0;padding:0}.list-item-inner.svelte-1e6dn58{display:flex;align-items:center;width:100%;text-decoration:none;color:inherit}.list-item-inner.svelte-1e6dn58:hover{opacity:0.8}.list-item.svelte-1e6dn58:not(:first-child){border-top-width:var(--list-item-border-width);border-top-style:var(--list-item-border-style);border-top-color:var(--list-item-border-color)}");
18459
18152
  }
18460
18153
 
18461
18154
  // (30:2) <svelte:element {...attributes} this={element} class="list-item-inner" style={innerStyle} on:click={handleClick} >
@@ -18490,7 +18183,7 @@ function create_dynamic_element$1(ctx) {
18490
18183
  set_attributes(svelte_element, svelte_element_data);
18491
18184
  }
18492
18185
 
18493
- toggle_class(svelte_element, "svelte-1223veg", true);
18186
+ toggle_class(svelte_element, "svelte-1e6dn58", true);
18494
18187
  },
18495
18188
  m(target, anchor) {
18496
18189
  insert(target, svelte_element, anchor);
@@ -18534,7 +18227,7 @@ function create_dynamic_element$1(ctx) {
18534
18227
  set_attributes(svelte_element, svelte_element_data);
18535
18228
  }
18536
18229
 
18537
- toggle_class(svelte_element, "svelte-1223veg", true);
18230
+ toggle_class(svelte_element, "svelte-1e6dn58", true);
18538
18231
  },
18539
18232
  i(local) {
18540
18233
  if (current) return;
@@ -18564,7 +18257,7 @@ function create_fragment$a(ctx) {
18564
18257
  c() {
18565
18258
  li = element("li");
18566
18259
  if (svelte_element) svelte_element.c();
18567
- attr(li, "class", "list-item svelte-1223veg");
18260
+ attr(li, "class", "list-item svelte-1e6dn58");
18568
18261
  attr(li, "data-layer-id", /*layerId*/ ctx[0]);
18569
18262
  attr(li, "style", /*style*/ ctx[2]);
18570
18263
  },
@@ -18710,7 +18403,7 @@ function splitNumberAndUnit(value) {
18710
18403
  /* src/components-flex/multi-column/MultiColumn.svelte generated by Svelte v3.53.1 */
18711
18404
 
18712
18405
  function add_css$5(target) {
18713
- append_styles(target, "svelte-aoppwp", ".list.svelte-aoppwp{padding:0;margin:0;list-style:none;display:flex;flex-direction:row}");
18406
+ append_styles(target, "svelte-1csavnh", ".list.svelte-1csavnh{padding:0;margin:0;list-style:none;display:flex;flex-direction:row}");
18714
18407
  }
18715
18408
 
18716
18409
  function create_fragment$9(ctx) {
@@ -18724,7 +18417,7 @@ function create_fragment$9(ctx) {
18724
18417
  ul = element("ul");
18725
18418
  if (default_slot) default_slot.c();
18726
18419
  attr(ul, "data-layer-id", /*layerId*/ ctx[0]);
18727
- attr(ul, "class", "list svelte-aoppwp");
18420
+ attr(ul, "class", "list svelte-1csavnh");
18728
18421
  attr(ul, "style", /*style*/ ctx[1]);
18729
18422
  },
18730
18423
  m(target, anchor) {
@@ -18836,7 +18529,7 @@ class MultiColumn extends SvelteComponent {
18836
18529
  /* src/components-flex/multi-column/MultiColumnItem.svelte generated by Svelte v3.53.1 */
18837
18530
 
18838
18531
  function add_css$4(target) {
18839
- append_styles(target, "svelte-1blzs1a", ".multi-column-item.svelte-1blzs1a{margin:0;width:100%;padding-top:0;padding-bottom:0;padding-left:var(--multi-column-item-padding);padding-right:var(--multi-column-item-padding)}.multi-column-item-inner.svelte-1blzs1a{display:flex;flex-direction:column;align-items:center;gap:var(--multi-column-item-gap);width:100%;text-decoration:none;color:inherit;padding-top:var(--multi-column-item-padding-top);padding-left:var(--multi-column-item-padding-left);padding-right:var(--multi-column-item-padding-right);padding-bottom:var(--multi-column-item-padding-bottom)}.multi-column-item-inner.svelte-1blzs1a:hover{opacity:0.8}.multi-column-item.svelte-1blzs1a:not(:first-child){border-left-width:var(--multi-column-item-border-width);border-left-style:var(--multi-column-item-border-style);border-left-color:var(--multi-column-item-border-color)}");
18532
+ append_styles(target, "svelte-1mk0qj6", ".multi-column-item.svelte-1mk0qj6{margin:0;width:100%;padding-top:0;padding-bottom:0;padding-left:var(--multi-column-item-padding);padding-right:var(--multi-column-item-padding)}.multi-column-item-inner.svelte-1mk0qj6{display:flex;flex-direction:column;align-items:center;gap:var(--multi-column-item-gap);width:100%;text-decoration:none;color:inherit;padding-top:var(--multi-column-item-padding-top);padding-left:var(--multi-column-item-padding-left);padding-right:var(--multi-column-item-padding-right);padding-bottom:var(--multi-column-item-padding-bottom)}.multi-column-item-inner.svelte-1mk0qj6:hover{opacity:0.8}.multi-column-item.svelte-1mk0qj6:not(:first-child){border-left-width:var(--multi-column-item-border-width);border-left-style:var(--multi-column-item-border-style);border-left-color:var(--multi-column-item-border-color)}");
18840
18533
  }
18841
18534
 
18842
18535
  // (28:2) <svelte:element {...attributes} this={element} class="multi-column-item-inner" on:click={handleClick} >
@@ -18865,7 +18558,7 @@ function create_dynamic_element(ctx) {
18865
18558
  set_attributes(svelte_element, svelte_element_data);
18866
18559
  }
18867
18560
 
18868
- toggle_class(svelte_element, "svelte-1blzs1a", true);
18561
+ toggle_class(svelte_element, "svelte-1mk0qj6", true);
18869
18562
  },
18870
18563
  m(target, anchor) {
18871
18564
  insert(target, svelte_element, anchor);
@@ -18905,7 +18598,7 @@ function create_dynamic_element(ctx) {
18905
18598
  set_attributes(svelte_element, svelte_element_data);
18906
18599
  }
18907
18600
 
18908
- toggle_class(svelte_element, "svelte-1blzs1a", true);
18601
+ toggle_class(svelte_element, "svelte-1mk0qj6", true);
18909
18602
  },
18910
18603
  i(local) {
18911
18604
  if (current) return;
@@ -18935,7 +18628,7 @@ function create_fragment$8(ctx) {
18935
18628
  c() {
18936
18629
  li = element("li");
18937
18630
  if (svelte_element) svelte_element.c();
18938
- attr(li, "class", "multi-column-item svelte-1blzs1a");
18631
+ attr(li, "class", "multi-column-item svelte-1mk0qj6");
18939
18632
  attr(li, "data-layer-id", /*layerId*/ ctx[0]);
18940
18633
  attr(li, "style", /*style*/ ctx[1]);
18941
18634
  },
@@ -19050,7 +18743,7 @@ class MultiColumnItem extends SvelteComponent {
19050
18743
  /* src/components-flex/youtube/Youtube.svelte generated by Svelte v3.53.1 */
19051
18744
 
19052
18745
  function add_css$3(target) {
19053
- append_styles(target, "svelte-odfkc2", ".youtube.svelte-odfkc2{position:relative;aspect-ratio:16 / 9;width:100%;border-radius:3px}.youtube.svelte-odfkc2 iframe{position:absolute;width:100%;height:100%;object-fit:cover}");
18746
+ append_styles(target, "svelte-1bgnrue", ".youtube.svelte-1bgnrue{position:relative;aspect-ratio:16 / 9;width:100%;border-radius:3px}.youtube.svelte-1bgnrue iframe{position:absolute;width:100%;height:100%;object-fit:cover}");
19054
18747
  }
19055
18748
 
19056
18749
  function create_fragment$7(ctx) {
@@ -19062,7 +18755,7 @@ function create_fragment$7(ctx) {
19062
18755
  div1 = element("div");
19063
18756
  div0 = element("div");
19064
18757
  attr(div0, "class", "youtube-player");
19065
- attr(div1, "class", "youtube svelte-odfkc2");
18758
+ attr(div1, "class", "youtube svelte-1bgnrue");
19066
18759
  attr(div1, "style", /*style*/ ctx[2]);
19067
18760
  attr(div1, "data-layer-id", /*layerId*/ ctx[0]);
19068
18761
  },
@@ -19209,7 +18902,7 @@ class Youtube extends SvelteComponent {
19209
18902
  /* src/components-flex/count-down/CountDown.svelte generated by Svelte v3.53.1 */
19210
18903
 
19211
18904
  function add_css$2(target) {
19212
- append_styles(target, "svelte-1n395il", ".countdown.svelte-1n395il{display:flex;align-items:center;gap:4px}");
18905
+ append_styles(target, "svelte-1eft5i1", ".countdown.svelte-1eft5i1{display:flex;align-items:center;gap:4px}");
19213
18906
  }
19214
18907
 
19215
18908
  const get_default_slot_changes = dirty => ({
@@ -19236,7 +18929,7 @@ function create_fragment$6(ctx) {
19236
18929
  c() {
19237
18930
  div = element("div");
19238
18931
  if (default_slot) default_slot.c();
19239
- attr(div, "class", "countdown svelte-1n395il");
18932
+ attr(div, "class", "countdown svelte-1eft5i1");
19240
18933
  attr(div, "data-layer-id", /*layerId*/ ctx[0]);
19241
18934
  },
19242
18935
  m(target, anchor) {
@@ -19531,7 +19224,7 @@ class CountDownValue extends SvelteComponent {
19531
19224
  /* src/components-flex/clip-copy/ClipCopy.svelte generated by Svelte v3.53.1 */
19532
19225
 
19533
19226
  function add_css$1(target) {
19534
- append_styles(target, "svelte-30zd8m", ".clipboard.svelte-30zd8m{position:relative;display:inline-flex}.clipboard-button.svelte-30zd8m{position:relative;display:inline-flex;align-items:center;white-space:nowrap;gap:12px;background:none;border:0;transition:0.12s;cursor:pointer}.clipboard-button.svelte-30zd8m:hover{opacity:0.8}.clipboard-button.svelte-30zd8m:active{opacity:0.6}.clipboard-tooltip.svelte-30zd8m{position:absolute;top:-8px;left:50%;display:block;transform:translate(-50%, -100%);padding:4px 10px;background-color:#333333;color:#ffffff;font-size:11px;font-weight:bold;border-radius:4px;transition:transform 0.2s ease-out;white-space:nowrap;pointer-events:none}.clipboard-tooltip.svelte-30zd8m:after{content:'';display:block;position:absolute;bottom:0;left:50%;width:8px;height:8px;background-color:#333333;border-radius:1px;transform:translate(-50%, 40%) rotate(45deg)}.clipboard-tooltip[aria-hidden=\"true\"].svelte-30zd8m{opacity:0;transform:translate(-50%, -80%)}");
19227
+ append_styles(target, "svelte-1z01gne", ".clipboard.svelte-1z01gne{position:relative;display:inline-flex}.clipboard-button.svelte-1z01gne{position:relative;display:inline-flex;align-items:center;white-space:nowrap;gap:12px;background:none;border:0;transition:0.12s;cursor:pointer}.clipboard-button.svelte-1z01gne:hover{opacity:0.8}.clipboard-button.svelte-1z01gne:active{opacity:0.6}.clipboard-tooltip.svelte-1z01gne{position:absolute;top:-8px;left:50%;display:block;transform:translate(-50%, -100%);padding:4px 10px;background-color:#333333;color:#ffffff;font-size:11px;font-weight:bold;border-radius:4px;transition:transform 0.2s ease-out;white-space:nowrap;pointer-events:none}.clipboard-tooltip.svelte-1z01gne:after{content:'';display:block;position:absolute;bottom:0;left:50%;width:8px;height:8px;background-color:#333333;border-radius:1px;transform:translate(-50%, 40%) rotate(45deg)}.clipboard-tooltip[aria-hidden=\"true\"].svelte-1z01gne{opacity:0;transform:translate(-50%, -80%)}");
19535
19228
  }
19536
19229
 
19537
19230
  function create_fragment$4(ctx) {
@@ -19555,10 +19248,10 @@ function create_fragment$4(ctx) {
19555
19248
  t0 = space();
19556
19249
  span = element("span");
19557
19250
  t1 = text("コピーしました");
19558
- attr(button, "class", "clipboard-button svelte-30zd8m");
19251
+ attr(button, "class", "clipboard-button svelte-1z01gne");
19559
19252
  attr(span, "aria-hidden", span_aria_hidden_value = !/*showTooltip*/ ctx[2]);
19560
- attr(span, "class", "clipboard-tooltip svelte-30zd8m");
19561
- attr(div, "class", "clipboard svelte-30zd8m");
19253
+ attr(span, "class", "clipboard-tooltip svelte-1z01gne");
19254
+ attr(div, "class", "clipboard svelte-1z01gne");
19562
19255
  attr(div, "data-layer-id", /*layerId*/ ctx[0]);
19563
19256
  },
19564
19257
  m(target, anchor) {
@@ -19683,6 +19376,312 @@ class ClipCopy extends SvelteComponent {
19683
19376
  }
19684
19377
  }
19685
19378
 
19379
+ /**
19380
+ * モーダル(ポップアップ)に関連するコードの管理
19381
+ *
19382
+ * アクションのShow, Close, ChangeStateの状態はここで管理する。
19383
+ */
19384
+ /**
19385
+ * アクションが表示 (show) された後にフックする関数
19386
+ *
19387
+ * @param fn - 呼び出されるフック関数
19388
+ *
19389
+ * @public
19390
+ */
19391
+ function onShow(fn) {
19392
+ let { onShowHandlers } = getInternalHandlers();
19393
+ if (!onShowHandlers) {
19394
+ onShowHandlers = [];
19395
+ }
19396
+ onShowHandlers.push(fn);
19397
+ setInternalHandlers({ onShowHandlers });
19398
+ }
19399
+ /**
19400
+ * アクションがクローズ (close) される前にフックする関数
19401
+ *
19402
+ * @param fn - 呼び出されるフック関数
19403
+ *
19404
+ * @public
19405
+ */
19406
+ function onClose(fn) {
19407
+ let { onCloseHandlers } = getInternalHandlers();
19408
+ if (!onCloseHandlers) {
19409
+ onCloseHandlers = [];
19410
+ }
19411
+ onCloseHandlers.push(fn);
19412
+ setInternalHandlers({ onCloseHandlers });
19413
+ }
19414
+ /**
19415
+ * アクションのステートが変更された (changeState) 後にフックする関数
19416
+ *
19417
+ * @param fn - 呼び出されるフック関数
19418
+ *
19419
+ * @public
19420
+ */
19421
+ function onChangeState(fn) {
19422
+ let { onChangeStateHandlers } = getInternalHandlers();
19423
+ if (!onChangeStateHandlers) {
19424
+ onChangeStateHandlers = [];
19425
+ }
19426
+ onChangeStateHandlers.push(fn);
19427
+ setInternalHandlers({ onChangeStateHandlers });
19428
+ }
19429
+ /**
19430
+ * アクションを表示する
19431
+ *
19432
+ * @public
19433
+ */
19434
+ function showAction() {
19435
+ const event = new CustomEvent(ACTION_SHOW_EVENT, { detail: { trigger: 'custom' } });
19436
+ window.dispatchEvent(event);
19437
+ }
19438
+ /**
19439
+ * アクションを閉じる
19440
+ *
19441
+ * @param trigger - 閉じた時のトリガー。デフォルト `'none'`
19442
+ *
19443
+ * @public
19444
+ */
19445
+ function closeAction(trigger = 'none') {
19446
+ const event = new CustomEvent(ACTION_CLOSE_EVENT, { detail: { trigger } });
19447
+ window.dispatchEvent(event);
19448
+ }
19449
+ /**
19450
+ * アクションに CSS を適用する
19451
+ *
19452
+ * @param css - 適用する CSS
19453
+ *
19454
+ * @returns 適用された style 要素を返す Promise
19455
+ *
19456
+ * @public
19457
+ */
19458
+ async function applyCss(css) {
19459
+ return new Promise((resolve, reject) => {
19460
+ const style = document.createElement('style');
19461
+ style.textContent = css;
19462
+ const shadowRoot = getActionRoot();
19463
+ if (!shadowRoot)
19464
+ return;
19465
+ shadowRoot.append(style);
19466
+ style.addEventListener('load', () => resolve(style));
19467
+ style.addEventListener('error', () => reject(style));
19468
+ });
19469
+ }
19470
+ async function fixFontFaceIssue(href, cssRules) {
19471
+ const css = new CSSStyleSheet();
19472
+ // @ts-ignore
19473
+ await css.replace(cssRules);
19474
+ const rules = [];
19475
+ const fixedRules = [];
19476
+ Array.from(css.cssRules).forEach(cssRule => {
19477
+ if (cssRule.type !== 5) {
19478
+ rules.push(cssRule.cssText);
19479
+ }
19480
+ // type 5 is @font-face
19481
+ const split = href.split('/');
19482
+ const stylePath = split.slice(0, split.length - 1).join('/');
19483
+ const cssText = cssRule.cssText;
19484
+ const newCssText = cssText.replace(
19485
+ // relative paths
19486
+ /url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g, `url("${stylePath}/$4")`);
19487
+ if (cssText === newCssText)
19488
+ return;
19489
+ fixedRules.push(newCssText);
19490
+ });
19491
+ return [rules.join('\n'), fixedRules.join('\n')];
19492
+ }
19493
+ /**
19494
+ * アクションにグローバルなスタイルを読み込む
19495
+ *
19496
+ * @param href - style ファイルのリンク URL
19497
+ *
19498
+ * @public
19499
+ */
19500
+ async function loadStyle(href) {
19501
+ const sr = getActionRoot();
19502
+ if (!sr)
19503
+ return;
19504
+ let cssRules = '';
19505
+ try {
19506
+ const res = await fetch(href);
19507
+ cssRules = await res.text();
19508
+ }
19509
+ catch (_) {
19510
+ // pass
19511
+ }
19512
+ if (!cssRules)
19513
+ return;
19514
+ // Chromeのバグで、Shadow Rootの@font-faceを絶対パスで指定する必要がある
19515
+ // @see https://stackoverflow.com/a/63717709
19516
+ const [rules, fontFaceRules] = await fixFontFaceIssue(href, cssRules);
19517
+ const css = new CSSStyleSheet();
19518
+ // @ts-ignore
19519
+ await css.replace(rules);
19520
+ const fontFaceCss = new CSSStyleSheet();
19521
+ // @ts-ignore
19522
+ await fontFaceCss.replace(fontFaceRules);
19523
+ // @ts-ignore
19524
+ sr.adoptedStyleSheets = [...sr.adoptedStyleSheets, css, fontFaceCss];
19525
+ // Chromeのバグで、ページとShadow Rootの両方に、@font-faceを設定する必要がある
19526
+ // @see https://stackoverflow.com/a/63717709
19527
+ // @ts-ignore
19528
+ document.adoptedStyleSheets = [...document.adoptedStyleSheets, css, fontFaceCss];
19529
+ }
19530
+ // @internal
19531
+ function getCssVariables(data) {
19532
+ return Object.entries(data)
19533
+ .filter(([key, value]) => {
19534
+ return ['string', 'number'].includes(typeof value) && key.startsWith('--');
19535
+ })
19536
+ .map(([key, value]) => `${key}:${value}`)
19537
+ .join(';');
19538
+ }
19539
+ /**
19540
+ * アクションのルートの DOM 要素を取得する
19541
+ *
19542
+ * @returns アクションがルートの DOM 要素 を持つ場合は DOM 要素を返します。ない場合は `null` を返します
19543
+ *
19544
+ * @public
19545
+ */
19546
+ function getActionRoot() {
19547
+ const root = document.querySelector(`.${KARTE_ACTION_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
19548
+ if (!root?.shadowRoot) {
19549
+ return null;
19550
+ }
19551
+ return root.shadowRoot;
19552
+ }
19553
+ /** @internal */
19554
+ function ensureActionRoot(useShadow = true) {
19555
+ const systemConfig = getSystem();
19556
+ const rootAttrs = {
19557
+ class: `${KARTE_ACTION_ROOT} ${KARTE_MODAL_ROOT}`,
19558
+ [`data-${KARTE_ACTION_RID}`]: actionId,
19559
+ [`data-${KARTE_ACTION_SHORTEN_ID}`]: systemConfig.shortenId
19560
+ ? systemConfig.shortenId
19561
+ : ALL_ACTION_SHORTEN_ID,
19562
+ style: { display: 'block' },
19563
+ };
19564
+ let el = document.querySelector(`.${KARTE_MODAL_ROOT}[data-${KARTE_ACTION_RID}='${actionId}']`);
19565
+ if (el == null) {
19566
+ el = h('div', rootAttrs);
19567
+ document.body.appendChild(el);
19568
+ }
19569
+ const isShadow = !!document.body.attachShadow && useShadow;
19570
+ if (isShadow) {
19571
+ return el.shadowRoot ?? el.attachShadow({ mode: 'open' });
19572
+ }
19573
+ else {
19574
+ return el;
19575
+ }
19576
+ }
19577
+ /**
19578
+ * 非推奨
19579
+ *
19580
+ * @deprecated 非推奨
19581
+ *
19582
+ * @internal
19583
+ */
19584
+ const show = showAction;
19585
+ /**
19586
+ * 非推奨
19587
+ *
19588
+ * @deprecated 非推奨
19589
+ *
19590
+ * @internal
19591
+ */
19592
+ const close = closeAction;
19593
+ /**
19594
+ * 非推奨
19595
+ *
19596
+ * @deprecated 非推奨
19597
+ *
19598
+ * @internal
19599
+ */
19600
+ const ensureModalRoot = ensureActionRoot;
19601
+ /**
19602
+ * 非推奨
19603
+ *
19604
+ * @deprecated 非推奨
19605
+ *
19606
+ * @internal
19607
+ */
19608
+ function createApp(App, options = {
19609
+ send: () => { },
19610
+ publish: () => { },
19611
+ props: {},
19612
+ variables: {},
19613
+ localVariablesQuery: undefined,
19614
+ context: { api_key: '' },
19615
+ }) {
19616
+ let app = null;
19617
+ const close = () => {
19618
+ if (app) {
19619
+ {
19620
+ // @ts-ignore -- Svelte5 では $destroy は存在しない
19621
+ app.$destroy();
19622
+ }
19623
+ app = null;
19624
+ }
19625
+ };
19626
+ const appArgs = {
19627
+ target: null,
19628
+ props: {
19629
+ send: options.send,
19630
+ publish: options.publish,
19631
+ close,
19632
+ data: {
19633
+ ...options.props,
19634
+ ...options.variables,
19635
+ },
19636
+ },
19637
+ };
19638
+ const win = ensureModalRoot(true);
19639
+ appArgs.target = win;
19640
+ return {
19641
+ close,
19642
+ show: () => {
19643
+ if (app) {
19644
+ return;
19645
+ }
19646
+ options.send('message_open');
19647
+ app = // @ts-ignore -- Svelte5 では `App` はクラスではない
19648
+ new App(appArgs);
19649
+ },
19650
+ };
19651
+ }
19652
+ /**
19653
+ * 非推奨
19654
+ *
19655
+ * @deprecated 非推奨
19656
+ *
19657
+ * @internal
19658
+ */
19659
+ function createFog({ color = '#000', opacity = '50%', zIndex = 999, onclick, }) {
19660
+ const root = ensureModalRoot();
19661
+ if (root.querySelector('.__krt-fog')) {
19662
+ return { fog: null, close: () => { } };
19663
+ }
19664
+ const fog = document.createElement('div');
19665
+ fog.className = '__krt-fog';
19666
+ Object.assign(fog.style, {
19667
+ position: 'fixed',
19668
+ left: 0,
19669
+ top: 0,
19670
+ width: '100%',
19671
+ height: '100%',
19672
+ 'z-index': zIndex,
19673
+ 'background-color': color,
19674
+ opacity,
19675
+ });
19676
+ const close = () => {
19677
+ onclick();
19678
+ fog.remove();
19679
+ };
19680
+ fog.onclick = close;
19681
+ root.appendChild(fog);
19682
+ return { fog, close };
19683
+ }
19684
+
19686
19685
  /* src/components-flex/state/Header.svelte generated by Svelte v3.53.1 */
19687
19686
 
19688
19687
  function create_if_block$2(ctx) {
@@ -19862,7 +19861,7 @@ class State extends SvelteComponent {
19862
19861
  /* src/components-flex/state/StateItem.svelte generated by Svelte v3.53.1 */
19863
19862
 
19864
19863
  function add_css(target) {
19865
- append_styles(target, "svelte-2qb6dm", ".state-item.svelte-2qb6dm{position:absolute;display:none}");
19864
+ append_styles(target, "svelte-1amihue", ".state-item.svelte-1amihue{position:absolute;display:none}");
19866
19865
  }
19867
19866
 
19868
19867
  // (22:0) {#if $state === path}
@@ -19879,7 +19878,7 @@ function create_if_block$1(ctx) {
19879
19878
  t = space();
19880
19879
  if (default_slot) default_slot.c();
19881
19880
  attr(div, "data-state-path", /*path*/ ctx[0]);
19882
- attr(div, "class", "state-item svelte-2qb6dm");
19881
+ attr(div, "class", "state-item svelte-1amihue");
19883
19882
  },
19884
19883
  m(target, anchor) {
19885
19884
  insert(target, div, anchor);